From Small Moth, 1 Month ago, written in JavaScript.
This paste will die in 1 Second.
Embed
  1. http -v post http://localhost:3000/api/v1/org/OrgA/repos\?access_token\=147985ab9438398c5f3719c3307b72a9fb57323c auto_init:=true description=test gitignores="" name=test2 private:=false readme="Default"
  2. /usr/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  3.  RequestsDependencyWarning)
  4. POST /api/v1/org/OrgA/repos?access_token=147985ab9438398c5f3719c3307b72a9fb57323c HTTP/1.1
  5. Accept: application/json, */*
  6. Accept-Encoding: gzip, deflate
  7. Connection: keep-alive
  8. Content-Length: 116
  9. Content-Type: application/json
  10. Host: localhost:3000
  11. User-Agent: HTTPie/1.0.2
  12.  
  13. {
  14.    "auto_init": true,
  15.    "description": "test",
  16.    "gitignores": "",
  17.    "name": "test2",
  18.    "private": false,
  19.    "readme": "Default"
  20. }
  21.  
  22. HTTP/1.1 201 Created
  23. Content-Length: 690
  24. Content-Type: application/json; charset=UTF-8
  25. Date: Sun, 19 May 2019 22:36:11 GMT
  26. Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647
  27. Set-Cookie: i_like_gitea=793830ff752ffab2; Path=/; HttpOnly
  28. Set-Cookie: _csrf=gjRJW0kQKrOIeuTFlJwCYXy15mc6MTU1ODMwNTM3MDkxMDk0MTkwMQ%3D%3D; Path=/; Expires=Mon, 20 May 2019 22:36:10 GMT; HttpOnly
  29. X-Content-Type-Options: nosniff
  30. X-Frame-Options: SAMEORIGIN
  31.  
  32. {
  33.    "archived": false,
  34.    "clone_url": "http://localhost:3000/OrgA/test2.git",
  35.    "created_at": "2019-05-19T22:36:10Z",
  36.    "default_branch": "",
  37.    "description": "test",
  38.    "empty": false,
  39.    "fork": false,
  40.    "forks_count": 0,
  41.    "full_name": "OrgA/test2",
  42.    "html_url": "http://localhost:3000/OrgA/test2",
  43.    "id": 5,
  44.    "mirror": false,
  45.    "name": "test2",
  46.    "open_issues_count": 0,
  47.    "owner": {
  48.        "avatar_url": "http://localhost:3000/avatars/2",
  49.        "email": "",
  50.        "full_name": "",
  51.        "id": 2,
  52.        "is_admin": false,
  53.        "language": "",
  54.        "login": "OrgA",
  55.        "username": "OrgA"
  56.    },
  57.    "parent": null,
  58.    "permissions": {
  59.        "admin": true,
  60.        "pull": true,
  61.        "push": true
  62.    },
  63.    "private": false,
  64.    "size": 0,
  65.    "ssh_url": "[email protected]:OrgA/test2.git",
  66.    "stars_count": 0,
  67.    "updated_at": "2019-05-19T22:36:10Z",
  68.    "watchers_count": 0,
  69.    "website": ""
  70. }