This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (Login as poweruser) | |
| GET /widget/5 | |
| { | |
| "links": [ | |
| { | |
| "rel": "Create", | |
| "title": "Cog", | |
| "verb": "POST", | |
| "href": "/widget/5/cogs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (Login as ViewOnlyUser) | |
| GET /widget/5 | |
| { | |
| "links": [ | |
| { | |
| "rel": "List", | |
| "title": "Cog", | |
| "verb": "GET", | |
| "href": "/widget/5/cogs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /users/321 | |
| 200 OK | |
| { | |
| "id": 321, | |
| "username": "jhrmn", | |
| "firstName": "Jason", | |
| "lastName": "Harmon", | |
| "userType": "read-only", | |
| "status": "active" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT /users/321 | |
| { | |
| "id": 321, | |
| "username": "jason.harmon", | |
| "firstName": "Jason", | |
| "lastName": "Harmon", | |
| "userType": "read-only", | |
| "status": "active" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /users/321/profile | |
| 200 OK | |
| { | |
| "feedback": 0 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT /users/321/profile | |
| { | |
| "feedback": 0, | |
| "photo": "https://en.gravatar.com/userimage/11130470/deba6005e5c4709589c33fdfdd5cc6b5.jpg", | |
| "preferredShippingCarrier": "FedEx", | |
| "nickName": "El Gran Bigote" | |
| } | |
| 204 No Content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /users/321/profile | |
| { | |
| "photo": "https://en.gravatar.com/userimage/11130470/deba6005e5c4709589c33fdfdd5cc6b5.jpg", | |
| "preferredShippingCarrier": "FedEx", | |
| "nickName": "The Professor" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --data "grant_type=password&client_id=biglongtokengoeshere&username=YOURUSER&password=YOURPASSWORD" https://api.example.com/oauth/token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u charlie:brown https://snoopy.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "access_token": "b77yz37w7kzy8v5fuga6zz93", | |
| "token_type": "bearer", | |
| "expires_in": 2629743 | |
| } |