Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin http://localhost:8080/api/v1/users
  2. * Trying ::1...
  3. * TCP_NODELAY set
  4. * Connected to localhost (::1) port 8080 (#0)
  5. * Server auth using Basic with user 'admin'
  6. > GET /api/v1/users HTTP/1.1
  7. > Host: localhost:8080
  8. > Authorization: Basic YWRtaW46YWRtaW4=
  9. > User-Agent: curl/7.60.0
  10. > Accept: */*
  11. >
  12. * HTTP 1.0, assume close after body
  13. < HTTP/1.0 200 OK
  14. < Content-Type: application/json
  15. < Content-Length: 193
  16. < Access-Control-Allow-Origin: *
  17. < Server: Werkzeug/0.14.1 Python/3.6.8
  18. < Date: Thu, 24 Jan 2019 13:59:21 GMT
  19. <
  20. [
  21. {
  22. "id": "5c49c43f8a227c001a085975",
  23. "is_admin": true,
  24. "username": "admin"
  25. },
  26. {
  27. "id": "5c49c4b68a227c001a085977",
  28. "is_admin": false,
  29. "username": "nonadmin"
  30. }
  31. ]
  32. * Closing connection 0
  33. ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin -X DELETE http://localhost:8080/api/v1/users/5c49c4b68a227c001a085977
  34. * Trying ::1...
  35. * TCP_NODELAY set
  36. * Connected to localhost (::1) port 8080 (#0)
  37. * Server auth using Basic with user 'admin'
  38. > DELETE /api/v1/users/5c49c4b68a227c001a085977 HTTP/1.1
  39. > Host: localhost:8080
  40. > Authorization: Basic YWRtaW46YWRtaW4=
  41. > User-Agent: curl/7.60.0
  42. > Accept: */*
  43. >
  44. * HTTP 1.0, assume close after body
  45. < HTTP/1.0 200 OK
  46. < Content-Type: application/json
  47. < Access-Control-Allow-Origin: *
  48. < Content-Length: 0
  49. < Server: Werkzeug/0.14.1 Python/3.6.8
  50. < Date: Thu, 24 Jan 2019 13:59:42 GMT
  51. <
  52. * Closing connection 0
  53. ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin http://localhost:8080/api/v1/users
  54. * Trying ::1...
  55. * TCP_NODELAY set
  56. * Connected to localhost (::1) port 8080 (#0)
  57. * Server auth using Basic with user 'admin'
  58. > GET /api/v1/users HTTP/1.1
  59. > Host: localhost:8080
  60. > Authorization: Basic YWRtaW46YWRtaW4=
  61. > User-Agent: curl/7.60.0
  62. > Accept: */*
  63. >
  64. * HTTP 1.0, assume close after body
  65. < HTTP/1.0 200 OK
  66. < Content-Type: application/json
  67. < Content-Length: 96
  68. < Access-Control-Allow-Origin: *
  69. < Server: Werkzeug/0.14.1 Python/3.6.8
  70. < Date: Thu, 24 Jan 2019 13:59:48 GMT
  71. <
  72. [
  73. {
  74. "id": "5c49c43f8a227c001a085975",
  75. "is_admin": true,
  76. "username": "admin"
  77. }
  78. ]
  79. * Closing connection 0
  80. ricky@modoetia:subsidieservice-frontend__[master !]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement