You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/schemas/swagger.yaml
+134-1Lines changed: 134 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ tags:
20
20
- name: Messages
21
21
description: Send and receive messages
22
22
- name: Recommendations
23
+
- name: Search
23
24
- name: User
24
25
description: Get user info
25
26
- name: Debug
@@ -1204,6 +1205,36 @@ paths:
1204
1205
message:
1205
1206
type: string
1206
1207
example: Image successfully deleted.
1208
+
/search:
1209
+
post:
1210
+
summary: Search users
1211
+
operationId: searchUsers
1212
+
security:
1213
+
- bearerAuth: [ ]
1214
+
tags:
1215
+
- Search
1216
+
responses:
1217
+
"400":
1218
+
$ref: '#/components/responses/BadRequest'
1219
+
"200":
1220
+
description: Returns a list of users based on the search
1221
+
content:
1222
+
application/json:
1223
+
schema:
1224
+
type: object
1225
+
properties:
1226
+
success:
1227
+
type: boolean
1228
+
description: If the request is a success
1229
+
example: true
1230
+
code:
1231
+
type: integer
1232
+
description: The status code
1233
+
example: 200
1234
+
search_results:
1235
+
type: array
1236
+
items:
1237
+
$ref: '#/components/schemas/SearchResult'
1207
1238
1208
1239
1209
1240
servers:
@@ -1894,4 +1925,106 @@ components:
1894
1925
is_primary:
1895
1926
type: boolean
1896
1927
description: Is this image the profile picture of the user
1897
-
example: true
1928
+
example: true
1929
+
SearchResult:
1930
+
type: object
1931
+
properties:
1932
+
common_tags:
1933
+
type: array
1934
+
example: [ "friends", "drinks", "sun" ]
1935
+
distance:
1936
+
type: integer
1937
+
example: 50
1938
+
description: The distance between two users
1939
+
id:
1940
+
type: integer
1941
+
example: 1
1942
+
first_name:
1943
+
type: string
1944
+
example: Foo
1945
+
last_name:
1946
+
type: string
1947
+
example: Bar
1948
+
username:
1949
+
type: string
1950
+
example: FooBar
1951
+
email:
1952
+
type: string
1953
+
example: foo@example.org
1954
+
bio:
1955
+
type: string
1956
+
example: Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen. Does everybody know that pig named Lorem Ipsum? An ‘extremely credible source’ has called my office and told me that Barack Obama’s placeholder text is a fraud.
0 commit comments