Skip to content

Commit b823327

Browse files
committed
update
1 parent afcea90 commit b823327

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

web/swagger.json

+45-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@
456456
],
457457
"responses": {
458458
"200": {
459-
"description": "The user signed in successfully.",
459+
"description": "List of user stories",
460460
"content": {
461461
"application/json": {
462462
"schema": {
@@ -612,6 +612,45 @@
612612
}
613613
}
614614
}
615+
},
616+
"/feed": {
617+
"get": {
618+
"operationId": "feed",
619+
"description": "Index the feed stories",
620+
"tags": [
621+
"Stories"
622+
],
623+
"responses": {
624+
"200": {
625+
"description": "list of stories in user's feed",
626+
"content": {
627+
"application/json": {
628+
"schema": {
629+
"type": "object",
630+
"properties": {
631+
"stories": {
632+
"type": "array",
633+
"items": {
634+
"$ref": "#/components/schemas/Story"
635+
}
636+
}
637+
}
638+
}
639+
}
640+
}
641+
},
642+
"default": {
643+
"description": "Error!",
644+
"content": {
645+
"application/json": {
646+
"schema": {
647+
"$ref": "#/components/schemas/Error"
648+
}
649+
}
650+
}
651+
}
652+
}
653+
}
615654
}
616655
},
617656
"security": [
@@ -654,6 +693,11 @@
654693
"example": 13,
655694
"description": "Unique id of user (uint64)"
656695
},
696+
"name": {
697+
"type": "string",
698+
"example": "Milad",
699+
"description": "The user's name (full name or nickname)"
700+
},
657701
"username": {
658702
"type": "string",
659703
"example": "username_1691_4b3a_847f_76b2ed0f00ec",

0 commit comments

Comments
 (0)