-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.http
87 lines (67 loc) · 1.21 KB
/
api.http
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# MyForum
# Some brief description.
###
# List all articles
#
# none
GET {{host}}/forum/article
###
# Create an article
#
# none
POST {{host}}/forum/article
Content-Type: application/json
{
"body": {
"id": 0,
"authorId": 0,
"publicationDate": "",
"topic": "body.topic"
}
}
###
# Search article by Id
#
# none
GET {{host}}/forum/article/{{param_articleId}}
###
# Create an routes.author
#
# none
POST {{host}}/routes.author
Content-Type: application/json
{
"body": {
"id": 0,
"username": "body.username",
"firstName": "body.firstName",
"lastName": "body.lastName",
"email": "body.email"
}
}
###
# Logs routes.author into the system
GET {{host}}/routes.author/login
###
# Get routes.author by user name
GET {{host}}/routes.author/{{param_authorId}}
###
# Updated routes.author
#
# none
PUT {{host}}/routes.author/{{param_authorId}}
Content-Type: application/json
{
"body": {
"id": 0,
"username": "body.username",
"firstName": "body.firstName",
"lastName": "body.lastName",
"email": "body.email"
}
}
###
# Delete routes.author
#
# none
DELETE {{host}}/routes.author/{{param_authorId}}