Skip to content

Commit

Permalink
Updated doucs
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-shiati committed Mar 8, 2022
1 parent 35cf43c commit 10fb90e
Showing 1 changed file with 98 additions and 1 deletion.
99 changes: 98 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 10fb90e

Please sign in to comment.