-
Notifications
You must be signed in to change notification settings - Fork 1
/
swagger.json
210 lines (209 loc) · 4.67 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"swagger": "2.0",
"info": {
"title": "Sample API",
"description": "API description in Markdown.",
"version": "1.0.0"
},
"schemes": [
"http"
],
"basePath": "/",
"definitions": {
"Movie": {
"type": "object",
"properties": {
"movieName": {
"type": "string"
},
"title": {
"type": "string"
},
"_year_data": {
"type": "string"
},
"year": {
"type": "number"
},
"rated": {
"type": "string"
},
"released": {
"type": "string"
},
"runtime": {
"type": "string"
},
"genres": {
"type": "string"
},
"director": {
"type": "string"
},
"writer": {
"type": "string"
},
"actors": {
"type": "string"
},
"plot": {
"type": "string"
},
"languages": {
"type": "string"
},
"country": {
"type": "string"
},
"awards": {
"type": "string"
},
"poster": {
"type": "string"
},
"originalPoster": {
"type": "string"
},
"ratings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Source": {
"type": "string"
},
"Value": {
"type": "string"
}
}
}
},
"metascore": {
"type": "string"
},
"rating": {
"type": "string"
},
"votes": {
"type": "string"
},
"imdbid": {
"type": "string"
},
"type": {
"type": "string"
},
"boxoffice": {
"type": "string"
},
"production": {
"type": "string"
},
"website": {
"type": "string"
},
"series": {
"type": "string"
},
"imdburl": {
"type": "string"
}
},
"example": {
"ratings": [
{
"Source": "Internet Movie Database",
"Value": "8.8/10"
},
{
"Source": "Rotten Tomatoes",
"Value": "86%"
},
{
"Source": "Metacritic",
"Value": "74/100"
}
],
"title": "Inception",
"_year_data": "2010",
"actors": "Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page, Tom Hardy",
"awards": "Won 4 Oscars. Another 152 wins & 204 nominations.",
"boxoffice": "$292,568,851",
"country": "USA, UK",
"director": "Christopher Nolan",
"genres": "Action, Adventure, Sci-Fi, Thriller",
"imdbid": "tt1375666",
"imdburl": "https://www.imdb.com/title/tt1375666",
"languages": "English, Japanese, French",
"metascore": "74",
"plot": "Dom Cobb is a skilled thief, the absolute best in the dangerous art of extraction, stealing valuable secrets from deep within the subconscious during the dream state, when the mind is at its most vulnerable. Cobb's rare ability has made him a coveted player in this treacherous new world of corporate espionage, but it has also made him an international fugitive and cost him everything he has ever loved. Now Cobb is being offered a chance at redemption. One last job could give him his life back but only if he can accomplish the impossible - inception. Instead of the perfect heist, Cobb and his team of specialists have to pull off the reverse: their task is not to steal an idea but to plant one. If they succeed, it could be the perfect crime. But no amount of careful planning or expertise can prepare the team for the dangerous enemy that seems to predict their every move. An enemy that only Cobb could have seen coming.",
"poster": "https://m.media-amazon.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_SX300.jpg",
"production": "Warner Bros. Pictures",
"rated": "PG-13",
"rating": "8.8",
"released": "Fri Jul 16 2010 00:00:00 GMT+0430 (+0430)",
"runtime": "148 min",
"series": "false",
"type": "movie",
"votes": "1,766,435",
"website": "http://inceptionmovie.warnerbros.com/",
"writer": "Christopher Nolan",
"year": 2010
}
}
},
"paths": {
"/movies": {
"get": {
"summary": "Get Movie info ",
"description": "For getting a movie info send the movie's name",
"produces": [
"application/json"
],
"parameters": [
{
"in": "query",
"name": "title",
"type": "string",
"required": true,
"default": "inception"
},
{
"in": "query",
"name": "year",
"type": "string",
"required": false,
"default": "2010"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Movie"
}
}
}
}
},
"/movies/poster": {
"get": {
"summary": "Get a picture content of an image link",
"description": "The basic usage of this end point is to download image from filterred sites, this service works as a proxy",
"parameters": [
{
"in": "query",
"name": "imageLink",
"required": "true",
"default": "http://images-na.ssl-images-amazon.com/images/M/MV5BMzFjMWNhYzQtYTIxNC00ZWQ1LThiOTItNWQyZmMxNDYyMjA5XkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_SX300.jpg"
}
],
"responses": {
"200": {
"description": ""
}
}
}
}
}
}