docs(project): 🧑‍💻 update swagger

master
Xeronith 2022-10-10 18:33:44 +03:30
rodzic e5fc8ee066
commit 8e55c8e72a
3 zmienionych plików z 33 dodań i 6 usunięć

Wyświetl plik

@ -65,7 +65,10 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"type": "string"
"type": "array",
"items": {
"type": "string"
}
}
}
}
@ -162,7 +165,7 @@ const docTemplate = `{
}
}
},
"/api/v1/users/{username}/feed": {
"/api/v1/users/{username}/feed/{type}": {
"get": {
"security": [
{
@ -185,6 +188,13 @@ const docTemplate = `{
"name": "username",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Type",
"name": "type",
"in": "path",
"required": true
}
],
"responses": {

Wyświetl plik

@ -57,7 +57,10 @@
"schema": {
"type": "array",
"items": {
"type": "string"
"type": "array",
"items": {
"type": "string"
}
}
}
}
@ -154,7 +157,7 @@
}
}
},
"/api/v1/users/{username}/feed": {
"/api/v1/users/{username}/feed/{type}": {
"get": {
"security": [
{
@ -177,6 +180,13 @@
"name": "username",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Type",
"name": "type",
"in": "path",
"required": true
}
],
"responses": {

Wyświetl plik

@ -126,7 +126,9 @@ paths:
description: OK
schema:
items:
type: string
items:
type: string
type: array
type: array
tags:
- Feed
@ -185,7 +187,7 @@ paths:
$ref: '#/definitions/SignupResponse'
tags:
- Authentication
/api/v1/users/{username}/feed:
/api/v1/users/{username}/feed/{type}:
get:
consumes:
- application/json
@ -195,6 +197,11 @@ paths:
name: username
required: true
type: string
- description: Type
in: path
name: type
required: true
type: string
produces:
- application/json
responses: