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
+129-2Lines changed: 129 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -762,6 +762,34 @@ paths:
762
762
type: array
763
763
items:
764
764
$ref: '#/components/schemas/UnseenMessage'
765
+
/recommendations:
766
+
get:
767
+
summary: Get user recommendations
768
+
operationId: getRecommendations
769
+
tags:
770
+
- Recommendations
771
+
responses:
772
+
"404":
773
+
$ref: '#/components/responses/NotFound'
774
+
"200":
775
+
description: Returns a list of recommendations
776
+
content:
777
+
application/json:
778
+
schema:
779
+
type: object
780
+
properties:
781
+
success:
782
+
type: boolean
783
+
description: If the request is a success
784
+
example: true
785
+
code:
786
+
type: integer
787
+
description: The status code
788
+
example: 200
789
+
recommendations:
790
+
type: array
791
+
items:
792
+
$ref: '#/components/schemas/Recommendation'
765
793
766
794
767
795
servers:
@@ -997,7 +1025,7 @@ components:
997
1025
type: object
998
1026
properties:
999
1027
id:
1000
-
type: integeer
1028
+
type: integer
1001
1029
example: 1
1002
1030
first_name:
1003
1031
type: string
@@ -1305,4 +1333,103 @@ components:
1305
1333
to_user:
1306
1334
type: string
1307
1335
example: 1
1308
-
description: The user id who received the message
1336
+
description: The user id who received the message
1337
+
# TODO: Add descriptions
1338
+
Recommendation:
1339
+
type: object
1340
+
properties:
1341
+
score:
1342
+
type: integer
1343
+
example: 10
1344
+
description: A score to sort the recommendations by. The higher the closest the match. Score can be negative
1345
+
common_tags:
1346
+
type: array
1347
+
example: [ "friends", "drinks", "sun" ]
1348
+
distance:
1349
+
type: integer
1350
+
example: 50
1351
+
description: The distance between two users
1352
+
id:
1353
+
type: integer
1354
+
example: 1
1355
+
first_name:
1356
+
type: string
1357
+
example: Foo
1358
+
last_name:
1359
+
type: string
1360
+
example: Bar
1361
+
username:
1362
+
type: string
1363
+
example: FooBar
1364
+
email:
1365
+
type: string
1366
+
example: foo@example.org
1367
+
bio:
1368
+
type: string
1369
+
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