https://github.com/danielfreitassc/faculdade.projetointermediariobackend
https://github.com/danielfreitassc/faculdade.projetointermediariobackend
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielfreitassc/faculdade.projetointermediariobackend
- Owner: DanielFreitassc
- Created: 2024-04-02T00:42:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T00:53:33.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T00:47:11.549Z (about 1 year ago)
- Language: Java
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Essa api consome outra api que fornece dados meteorológicos e com base nisso fornece uma mensagem personalizada para cada temperatura.
Path para consumo da api

# Cadastro de usuario para receber um mensagem personalizada
POST
```yml
http://localhost:8080/usuario
```
> Body Parameters
```yml
{
"nome":"Fulano de Tal"
}
```
> Response (201 CREATED)
---
# Atualiza dados do usuario.
PUT
```yml
http://localhost:8080/usuario/{id}
```
> Body Parameters
```yml
{
"nome":"Bertrano de Tal"
}
```
> Response (200 OK)
---
# Remover usuario
DELETE
```yml
http://localhost:8080/usuario/{id}
```
> Response (204 NO CONTENT)
---
# Buscar a messagem personalizada
GET
```yml
http://localhost:8080/tempo
```
> Response (200 OK)
>
**Olá, Fulano de Tal! Temperatura atual: -0.1°C. Está muito frio lá fora. Vista-se com roupas quentes!**
---
# Busca o aluno e o tema da api
GET
```yml
http://localhost:8080/ajuda
```
> Response (200 OK)
```yml
{
"nome": "Daniel Freitas",
"projeto": "Serviço de meteorologia"
}
```
# Caso Queira ver a doc e usar o swagger para as requisições: [LINK](http://localhost:8080/swagger-ui/index.html#/)🚀