diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 654d62b..483906c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -10,13 +10,15 @@ info: license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0 -host: localhost:8080 +host: localhost:8090 basePath: / tags: - name: auth-controller description: Auth Controller - name: transaction-controller description: Transaction Controller + - name: type-controller + description: Type Controller - name: user-controller description: User Controller paths: @@ -385,6 +387,85 @@ paths: '403': description: Forbidden deprecated: false + /api/v1/type: + get: + tags: + - type-controller + summary: getAllTypes + operationId: getAllTypesUsingGET + produces: + - '*/*' + responses: + '200': + description: OK + schema: + type: array + items: + $ref: '#/definitions/Type' + '401': + description: Unauthorized + '403': + description: Forbidden + '404': + description: Not Found + deprecated: false + post: + tags: + - type-controller + summary: addType + operationId: addTypeUsingPOST + consumes: + - application/json + produces: + - '*/*' + parameters: + - in: body + name: type + description: type + required: true + schema: + $ref: '#/definitions/Type' + responses: + '200': + description: OK + schema: + $ref: '#/definitions/Type' + '201': + description: Created + '401': + description: Unauthorized + '403': + description: Forbidden + '404': + description: Not Found + deprecated: false + /api/v1/type/{id}: + delete: + tags: + - type-controller + summary: deleteType + operationId: deleteTypeUsingDELETE + produces: + - '*/*' + parameters: + - name: id + in: path + description: id + required: true + type: integer + format: int64 + responses: + '200': + description: OK + schema: + type: object + '204': + description: No Content + '401': + description: Unauthorized + '403': + description: Forbidden + deprecated: false /api/v1/user: get: tags: @@ -745,4 +826,20 @@ definitions: format: int64 source: type: string + type: + $ref: '#/definitions/Type' + type_id: + type: integer + format: int64 title: TransactionDto + Type: + type: object + properties: + icon_name: + type: string + id: + type: integer + format: int64 + name: + type: string + title: Type