Skip to content

Commit

Permalink
Merge pull request #66 from rcsim/feature/swagger
Browse files Browse the repository at this point in the history
Feature/swagger
  • Loading branch information
MkS10000 authored Sep 3, 2023
2 parents fcbe964 + 9985201 commit 7eda16e
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 55 deletions.
74 changes: 19 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,93 +37,57 @@ A principal dificultade encontrada foi a necessidade de se realizar algumas refa

URL: http://localhost:8080/dependent

Pessoas relacionadas ao nosso cliente, com algum nível de parentesco.

- Json da classe de Dependentes para o Postman com todos os campos preenchidos.
```json
{
"name":"Victor",
"dateOfBirth":"28/12/1998",
"gender":"Masculino",
"parentage":"Teste"
}
```
- Resposta da requisição
![image](https://github.com/rcsim/tech-challenge/assets/71778151/4da03697-9013-4135-a471-758a1a057947)

- Dados inseridos no banco
<img src = "image/createdDependent_BD.png" />
<img src = "./image/deleteDependentID.png" />

<img src = "./image/getDependent.png" />

- Json da classe de Dependentes para o Postman com todos os campos nulos.
<img src = "./image/getDependentId.png" />

![image](https://github.com/rcsim/tech-challenge/assets/71778151/895ef567-ca60-4cdf-b496-415dcae26a58)
<img src = "./image/getDependentIDAppliances.png" />

- Json da classe de Dependentes para o Postman com todos os campos vazios.

![image](https://github.com/rcsim/tech-challenge/assets/71778151/6fb2c201-9f1f-41d2-8d81-4f59f736c294)
<img src = "./image/postDependent.png" />

<img src = "./image/putDependentID.png" />


#### ---- ENDEREÇOS ----

URL: http://localhost:8080/address

- Json da classe de Endereços para o Postman com todos os campos preenchidos.

```json
{
"street":"Avenida Augusto de Lima",
"number":"486",
"district":"Centro",
"city":"Belo Horizonte",
"estate":"Minas Gerais"
}
<img src = "./image/deleteAddressId.png" />

```
- Resposta da requisição
<img src = "image/createdAddressPostman_status201.png" />
<img src = "./image/getAddress.png" />

- Dados inseridos no banco
<img src = "image/createdAddress_BD.png" />
<img src = "./image/getAddressId.png" />

<img src = "./image/getAddressIdAppliances.png" />

- Json da classe de Endereços para o Postman com todos os campos nulos.
<img src = "image/addressError_Nulo.png" />
<img src = "./image/getAddressIdDependent.png" />

- Json da classe de Endereços para o Postman com todos os campos vazios.
<img src = "image/addressError_Vazio.png" />
<img src = "./image/postAddress.png" />

<img src = "./image/putAddressId.png" />


#### ---- ELETRODOMÉSTICOS ----

URL: http://localhost:8080/appliance

- Json da classe de Eletrodomésticos para o Postman com todos os campos preenchidos.

```json
{
"name":"HP",
"model":"G42",
"power":"90w",
"manufacturer":"Hewlett-Packard"
}
<img src = "./image/deleteApplianceID.png" />

```
- Resposta da requisição
<img src = "image/createdApplience_Postman_status201.png" />
<img src = "./image/getAppliance.png" />

- Dados inseridos no banco
<img src = "image/createdApplience_BD.png" />
<img src = "./image/getApplianceID.png" />

<img src = "./image/getApplianceDepedent.png" />

- Json da classe de Eletrodomésticos para o Postman com todos os campos nulos.
<img src = "image/applienceError_Nulo.png" />
<img src = "./image/postAppliance.png" />

<img src = "./image/putApplianceID.png" />

- Json da classe de Eletrodomésticos para o Postman com todos os campos vazios.
<img src = "image/applienceError_Vazio.png" />



Expand Down
Binary file added image/deleteAddressId.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/deleteApplianceID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/deleteDependentID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getAddress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getAddressId.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getAddressIdAppliances.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getAddressIdDependent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getAppliance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getApplianceDepedent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getApplianceID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getDependent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getDependentIDAppliances.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/getDependentId.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/postAddress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/postAppliance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/postDependent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/putAddressId.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/putApplianceID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/putDependentID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7eda16e

Please sign in to comment.