Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin http://localhost:8080/api/v1/users
- * Trying ::1...
- * TCP_NODELAY set
- * Connected to localhost (::1) port 8080 (#0)
- * Server auth using Basic with user 'admin'
- > GET /api/v1/users HTTP/1.1
- > Host: localhost:8080
- > Authorization: Basic YWRtaW46YWRtaW4=
- > User-Agent: curl/7.60.0
- > Accept: */*
- >
- * HTTP 1.0, assume close after body
- < HTTP/1.0 200 OK
- < Content-Type: application/json
- < Content-Length: 193
- < Access-Control-Allow-Origin: *
- < Server: Werkzeug/0.14.1 Python/3.6.8
- < Date: Thu, 24 Jan 2019 13:59:21 GMT
- <
- [
- {
- "id": "5c49c43f8a227c001a085975",
- "is_admin": true,
- "username": "admin"
- },
- {
- "id": "5c49c4b68a227c001a085977",
- "is_admin": false,
- "username": "nonadmin"
- }
- ]
- * Closing connection 0
- ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin -X DELETE http://localhost:8080/api/v1/users/5c49c4b68a227c001a085977
- * Trying ::1...
- * TCP_NODELAY set
- * Connected to localhost (::1) port 8080 (#0)
- * Server auth using Basic with user 'admin'
- > DELETE /api/v1/users/5c49c4b68a227c001a085977 HTTP/1.1
- > Host: localhost:8080
- > Authorization: Basic YWRtaW46YWRtaW4=
- > User-Agent: curl/7.60.0
- > Accept: */*
- >
- * HTTP 1.0, assume close after body
- < HTTP/1.0 200 OK
- < Content-Type: application/json
- < Access-Control-Allow-Origin: *
- < Content-Length: 0
- < Server: Werkzeug/0.14.1 Python/3.6.8
- < Date: Thu, 24 Jan 2019 13:59:42 GMT
- <
- * Closing connection 0
- ricky@modoetia:subsidieservice-frontend__[master !] curl -v -u admin:admin http://localhost:8080/api/v1/users
- * Trying ::1...
- * TCP_NODELAY set
- * Connected to localhost (::1) port 8080 (#0)
- * Server auth using Basic with user 'admin'
- > GET /api/v1/users HTTP/1.1
- > Host: localhost:8080
- > Authorization: Basic YWRtaW46YWRtaW4=
- > User-Agent: curl/7.60.0
- > Accept: */*
- >
- * HTTP 1.0, assume close after body
- < HTTP/1.0 200 OK
- < Content-Type: application/json
- < Content-Length: 96
- < Access-Control-Allow-Origin: *
- < Server: Werkzeug/0.14.1 Python/3.6.8
- < Date: Thu, 24 Jan 2019 13:59:48 GMT
- <
- [
- {
- "id": "5c49c43f8a227c001a085975",
- "is_admin": true,
- "username": "admin"
- }
- ]
- * Closing connection 0
- ricky@modoetia:subsidieservice-frontend__[master !]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement