Let's practice using some HTTP methods on some public REST API's. When accessing these API's, take note of the request and response headers being sent, as well as the response codes.
Use one of the following:
- https://www.hurl.it
- Download a REST client of your choice (e.g. https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo )
Create a new object:
POST http://jsonplaceholder.typicode.com/posts
Request Parameters:
- body
- title
Retrieve an existing object
GET http://jsonplaceholder.typicode.com/posts/1
Retrieve multiple objects
GET http://jsonplaceholder.typicode.com/posts
Update an existing object
PUT http://jsonplaceholder.typicode.com/posts/1
Request Parameters:
- body
- title
Delete an existing object
DELETE http://jsonplaceholder.typicode.com/posts/1