-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60f7c82
commit a7c352c
Showing
14 changed files
with
308 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
type: object | ||
title: BudgetEntity | ||
required: | ||
- id | ||
- accountId | ||
- name | ||
- description | ||
properties: | ||
id: | ||
description: Budget ID | ||
type: string | ||
format: uuid | ||
accountId: | ||
description: User ID | ||
type: string | ||
format: uuid | ||
name: | ||
$ref: ../fields/name.yaml | ||
description: | ||
$ref: ../fields/description.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
description: | | ||
User's must sign in before use this route | ||
User must sign in before use this route |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
post: | ||
tags: | ||
- Transaction | ||
summary: Create the user's salary | ||
description: | | ||
Create the user's salary | ||
operationId: transaction-salary | ||
security: | ||
- bearer: [] | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
title: Create the user's salary | ||
required: | ||
- budgetId | ||
- categoryId | ||
- bankAccountId | ||
- amount | ||
- installments | ||
properties: | ||
budgetId: | ||
description: Budget ID | ||
type: string | ||
format: uuid | ||
categoryId: | ||
description: Category ID | ||
type: string | ||
format: uuid | ||
bankAccountId: | ||
description: Bank Account ID where the salary will be deposited | ||
type: string | ||
format: uuid | ||
amount: | ||
$ref: ../../components/fields/amount.yaml | ||
installments: | ||
type: array | ||
items: | ||
type: object | ||
description: Config of all the salary installments | ||
required: | ||
- dayOfTheMonth | ||
- percentage | ||
properties: | ||
dayOfTheMonth: | ||
description: Day of the month that this installment of the salary is deposited | ||
type: integer | ||
minimum: 1 | ||
maximum: 31 | ||
percentage: | ||
description: Percentage of the salary that it's deposited | ||
type: integer | ||
minimum: 1 | ||
maximum: 100 | ||
required: true | ||
responses: | ||
'201': | ||
description: | | ||
Salary created | ||
'400': | ||
$ref: ../../components/responses/bad-request.yaml | ||
'401': | ||
$ref: ../../components/responses/unauthorized.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.