-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Ramesh syangtan edited this page Dec 12, 2017
·
2 revisions
API allowing consumers to view users, articles.
-
Response 200 (application/json)
[ { "_id": "12334ertt", "author": "userid" "published_at": "2015-08-05T08:40:51.620Z", "title": "Coding tips and tricks", "story": "The Story" }, { "_id": "34rf566", "author": "userid" "published_at": "2015-08-05T08:40:51.620Z", "title": "Coding ", "story": "Story bla bla bla" } ]
-
Response 200 (application/json)
{ "_id": "12334ertt", "author": "userid", "published_at": "2015-08-05T08:40:51.620Z", "title": "Coding tips and tricks", "story": "The Story" }
It takes a JSON object containing a title and the content of the story. Returns an object containing id, title, story, time of creation, author
-
Request (application/json)
{ "title": "Coding tips and tricks", "story": "The Story" }
-
Response 201 (application/json)
-
Headers
Location: /story/2
-
Body
{ "_id": "12334ertt", "author": "userid", "published_at": "2015-08-05T08:40:51.620Z", "title": "Coding tips and tricks", "story": "The Story" }
-