Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W Wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Free From Club
  • Wiki
  • Wiki
  • Endpoints

Endpoints · Changes

Page history
Criando documentação authored Apr 14, 2023 by Gustavo Vicentini Deon's avatar Gustavo Vicentini Deon
Show whitespace changes
Inline Side-by-side
Endpoints.md 0 → 100644
View page @ 5379319a
#### Usuário
<details>
<summary><code>POST</code> <code><b>/</b></code><code>users</code></summary>
##### Parameters
> | name | type | data type | description |
> |-----------|-----------|-------------------------|-----------------------------------------------------------------------|
> | name | required | String | N/A |
> | email | required | String | N/A |
> | password | required | String | N/A |
> | birthday | required | Date | N/A |
> | city | required | String | N/A |
> | uf | required | String | N/A |
> | phone | required | Long | N/A |
> | restrictions | required | List | Lista composta pelas restrições do usuário (nome e categoria) |
##### Responses
> | http code | content-type | response |
> |---------------|-----------------------------------|---------------------------------------------------------------------|
> | `200` | `text/plain;charset=UTF-8` | `Usuário criado` |
##### Example cURL
> ```javascript
> curl -X POST -H "Content-Type: application/json" --data @post.json http://localhost:8080/users
> ```
</details>
------------------------------------------------------------------------------------------
#### Restrições
<details>
<summary><code>GET</code> <code><b>/</b></code> <code>restrictions</code></summary>
##### Parameters
> None
##### Responses
> | http code | content-type | response |
> |---------------|-----------------------------------|---------------------------------------------------------------------|
> | `200` | `text/plain;charset=UTF-8` | JSON List |
##### Example cURL
> ```javascript
> curl -X GET -H "Content-Type: application/json" http://localhost:8080/restrictions
> ```
</details>
<details>
<summary><code>POST</code> <code><b>/</b></code><code>restrictions</code></summary>
##### Parameters
> | name | type | data type | description |
> |-----------|-----------|-------------------------|-----------------------------------------------------------------------|
> | name | required | String | Nome da restrição |
##### Responses
> | http code | content-type | response |
> |---------------|-----------------------------------|---------------------------------------------------------------------|
> | `200` | `text/plain;charset=UTF-8` | `Restrição criada` |
##### Example cURL
> ```javascript
> curl -X POST -H "Content-Type: application/json" --data @post.json http://localhost:8080/restrictions
> ```
</details>
\ No newline at end of file
Clone repository
  • Arquitetura
  • Database
  • Endpoints
  • Estudos
  • Mockups
  • Sprints
  • USs
  • configuracao
  • gerenciamento
  • Home