Feat: add more tests
This commit is contained in:
25
docs/docs.go
25
docs/docs.go
@@ -86,7 +86,10 @@ const docTemplate = `{
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.postImageOutput"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized"
|
||||
@@ -264,6 +267,9 @@ const docTemplate = `{
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -275,6 +281,23 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.postImageOutput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"extension": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"uploadedAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"uploadedUserId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.putImageAliasesInput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -78,7 +78,10 @@
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.postImageOutput"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized"
|
||||
@@ -256,6 +259,9 @@
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -267,6 +273,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.postImageOutput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"extension": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"uploadedAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"uploadedUserId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.putImageAliasesInput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -13,6 +13,8 @@ definitions:
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
extension:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
uploadedAt:
|
||||
@@ -20,6 +22,17 @@ definitions:
|
||||
uploadedUserId:
|
||||
type: string
|
||||
type: object
|
||||
api.postImageOutput:
|
||||
properties:
|
||||
extension:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
uploadedAt:
|
||||
type: string
|
||||
uploadedUserId:
|
||||
type: string
|
||||
type: object
|
||||
api.putImageAliasesInput:
|
||||
properties:
|
||||
aliases:
|
||||
@@ -97,6 +110,8 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/api.postImageOutput'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
/api/image/{id}:
|
||||
|
||||
Reference in New Issue
Block a user