Skip to content

Commit

Permalink
docs: atualização do endpoint de cadastro do usuário (#42)
Browse files Browse the repository at this point in the history
* docs: atualização do endpoint de cadastro do usuário

* docs: adicionei o name,reapeatPassowrd,username em req

* docs: "corrigir erros de cody style"
  • Loading branch information
Frompaje authored Apr 30, 2024
1 parent c1efcb6 commit 3b424a9
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 8 deletions.
56 changes: 56 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Closes

<details open>
<summary>
<b>Feature</b>
</summary>

N/A

</details>

<details open>
<summary>
<b>Bugfix</b>
</summary>

- **Description**
N/A

- **Cause**
N/A

- **Solution**
N/A
</details>

<details>
<summary>
<b>Changelog</b>
</summary>
N/A
</details>

<details open>
<summary>
<b>Visual evidences :framed_picture:</b>
</summary>

</details>

<details open>
<summary>
<b>Checklist</b>
</summary>

- [ ] Issue linked
- [ ] Build working correctly
- [ ] Tests created
</details>

<details>
<summary>
<b>Additional info</b>
</summary>
N/A
</details>
26 changes: 21 additions & 5 deletions openapi/features/user/components/user-create-body.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,30 @@ content:
schema:
type: object
properties:
password:
name:
type: string
description: Password for the new user account
example: 'alexandre-123'
description: User account name
example: 'John Doe'
username:
type: string
description: User name
example: 'johndoe123'
email:
type: string
description: Email address for the new user account
example: 'alexandre@gmail.com'
example: 'johndoe@example.com'
password:
type: string
description: Password for the new user account
example: '001@Mypassword'
repeatPassword:
type: string
description: Confirming the user's new password
example: '001@Mypassword'

required:
- password
- name
- username
- email
- password
- repeatPassword
4 changes: 2 additions & 2 deletions openapi/features/user/user-create-path.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ post:
$ref: './components/user-create-body.yaml'

responses:
'204':
description: User account created successfully
'201':
description: N/A
'400':
$ref: '../../shared/errors/validation-error.yaml'
'500':
Expand Down
2 changes: 1 addition & 1 deletion openapi/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ tags:
- name: user
description: Operations about user
paths:
/user/create:
/api/users:
$ref: './features/user/user-create-path.yaml'

0 comments on commit 3b424a9

Please sign in to comment.