-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
103 lines (103 loc) · 3.95 KB
/
swagger.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "SocialSquare-Backend",
"description": "The backend API for SocialSquare. The private and secure social media platform that doesn't mine your data.",
"license": {
"name": "TO-BE-DECIDED",
"url": "example.com"
}
},
"host": "it-solutions.homedns.org:9443",
"basePath": "/",
"tags": [
{
"name": "Public APIs",
"description": "APIs made available to the public for use in applications other than SocialSquare."
},
{
"name": "Messages",
"description": "The messages API for SocialSquare."
}
],
"schemes": ["http"],
"consumes": ["application/json"],
"produces": ["application/json"],
"paths": {
"/publicApis/userAPI/{name}": {
"get": {
"tags": [
"Public APIs"
],
"summary": "Get publicly available user data.",
"parameters": [
{
"name": "name",
"in": "path",
"description": "The username of the user."
}
],
"responses": {
"200": {
"description": "The server accepted the response and has successfully completed the request."
},
"400": {
"description": "Username has not been provided."
},
"404": {
"description": "User with the specified username could not be found."
},
"500": {
"description": "The server encountered an error processing the request. Check result.message for more information."
}
}
}
},
"/publicApis/postAPI/{name}/{postname}/{postformat}": {
"get": {
"tags": [
"Public APIs"
],
"summary": "Get a list of posts from a specific user.",
"parameters": [
{
"name": "name",
"in": "path",
"description": "The username of the user."
},
{
"name": "postname",
"in": "path",
"description": "The post title. If you want to get all posts and not just posts with a specific title, set this parameter to 'None'."
},
{
"name": "postformat",
"in": "path",
"description": "The post format. Currently you can only get image posts from this API. The only option is 'Image'."
}
],
"responses": {
"200": {
"description": "The server accepted the response and has successfully completed the request."
},
"400": {
"description": "Username or Post Name are empty or invalid."
},
"404": {
"description": "User with the specified username could not be found."
},
"500": {
"description": "The server encountered an error processing the request. Check result.message for more details."
},
"501": {
"description": "The option you have selected is coming soon."
},
"511": {
"description": "Authentication is required to access this resource as the account is private."
}
}
}
}
}
}