Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 681 Bytes

fake-rest-api.md

File metadata and controls

18 lines (13 loc) · 681 Bytes

Fake REST API

This can be run with cotton -u https://jsonplaceholder.typicode.com fake-rest-api.md or cotton -d -u https://jsonplaceholder.typicode.com fake-rest-api.md to get more detail.

GET /posts/1

Get a single post with ID 1.

Expectation

Assert Expected
StatusCode 200
Header.Content-Type application/json; charset=utf-8
Data.userId 1
Data.id 1
Data.title sunt aut facere repellat provident occaecati excepturi optio reprehenderit
Data.body /^quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto$/