This repository has been archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoints.json
67 lines (53 loc) · 1.84 KB
/
endpoints.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"GET /api": {
"description": "serves up a json representation of all the available endpoints of the api"
},
"GET /api/topics": {
"description": "serves an array of all topics",
"queries": [],
"exampleResponse": {
"topics": [{ "slug": "football", "description": "Footie!" }]
}
},
"GET /api/articles": {
"description": "serves an array of all topics",
"queries": ["author", "topic", "sort_by", "order"],
"exampleResponse": {
"articles": [
{
"title": "Seafood substitutions are increasing",
"topic": "cooking",
"author": "weegembump",
"body": "Text from the article..",
"created_at": "2018-05-30T15:59:13.341Z"
}
]
}
},
"GET /api/users/username": {
"description": "serves an object username",
"username": "grumpy19",
"avatar_url": "https://www.tumbit.com/profile-image/4/original/mr-grumpy.jpg",
"name": "Paul Grump"
},
"GET /api/articles/1": {
"description": "serves an object for article id",
"article_id": 1,
"title": "Running a Node App",
"body": "This is part two of a series on how to get up and running with Systemd and Node.js. This part dives deeper into how to successfully run your app with systemd long-term, and how to set it up in a production environment.",
"votes": 0,
"topic": "coding",
"author": "jessjelly",
"created_at": "2016-08-18T12:07:52.389Z",
"comment_count": "8"
},
"GET /api/articles/1/comments" : {
"description": "serves an object of comments for article id",
"comment_id": 44,
"author": "grumpy19",
"article_id": 1,
"votes": 4,
"created_at": "2017-11-20T08:58:48.322Z",
"body": "Error est qui id corrupti et quod enim accusantium minus. Deleniti quae ea magni officiis et qui suscipit non."
}
}