# Planejamento Api
[TOC]
# Filmes
## GET/filme
>ira consultar os filmes do banco de dados
```json=
[
{
"nome":"mortal kombat",
"genero":"Action, Adventure, Sci-Fi, Thriller, Fantasy",
"lancamento":"null",
"diretor":"Simon McQuoid",
"sinopse":"Summary: In Mortal Kombat, MMA fighter Cole Young, accustomed to taking a beating for money, is unaware of his heritage—or why Outworld's Emperor Shang Tsung has sent his best warrior, Sub-Zero, an otherworldly Cryomancer, to hunt Cole down. Fearing for his family's safety, Cole goes in search of Sonya Blade at the direction of Jax, a Special Forces Major who bears the same strange dragon marking Cole was born with. Soon, he finds himself at the temple of Lord Raiden, an Elder God and the protector of Earthrealm, who grants sanctuary to those who bear the mark. Here, Cole trains with experienced warriors Liu Kang, Kung Lao and rogue mercenary Kano, as he prepares to stand with Earth’s greatest champions against the enemies of Outworld in a high stakes battle for the universe. But will Cole be pushed hard enough to unlock his arcana—the immense power from within his soul—in time to save not only his family, but to stop Outworld once and for all?",
"avaliacao":"10",
"descricao":"o pau vai comer",
"plataforma":"HBO MAX",
"img_maior":"sdfadsfasdfa",
"img_menor":"sdfasdfasdfadas"
}
]
```
## POST/filme
>irá inserir um filme no banco de dados
request(body)
```json=
[
{
"nome":"mortal kombat",
"genero":"Action, Adventure, Sci-Fi, Thriller, Fantasy",
"lancamento":"null",
"diretor":"Simon McQuoid",
"sinopse":"Summary: In Mortal Kombat, MMA fighter Cole Young, accustomed to taking a beating for money, is unaware of his heritage—or why Outworld's Emperor Shang Tsung has sent his best warrior, Sub-Zero, an otherworldly Cryomancer, to hunt Cole down. Fearing for his family's safety, Cole goes in search of Sonya Blade at the direction of Jax, a Special Forces Major who bears the same strange dragon marking Cole was born with. Soon, he finds himself at the temple of Lord Raiden, an Elder God and the protector of Earthrealm, who grants sanctuary to those who bear the mark. Here, Cole trains with experienced warriors Liu Kang, Kung Lao and rogue mercenary Kano, as he prepares to stand with Earth’s greatest champions against the enemies of Outworld in a high stakes battle for the universe. But will Cole be pushed hard enough to unlock his arcana—the immense power from within his soul—in time to save not only his family, but to stop Outworld once and for all?",
"avaliacao":"10",
"descricao":"o pau vai comer",
"plataforma":"HBO MAX",
"img_maior":"sdfadsfasdfa",
"img_menor":"sdfasdfasdfadas"
}
]
```
response
>Filme inserido!
## PUT/filme/:id
>irá alterar um filme
request(body)
```json=
[
{
"nome":"batata",
"genero":"Action, Adventure, Sci-Fi, Thriller, Fantasy",
"lancamento":"null",
"diretor":"Simon McQuoid",
"sinopse":"Summary: In Mortal Kombat, MMA fighter Cole Young, accustomed to taking a beating for money, is unaware of his heritage—or why Outworld's Emperor Shang Tsung has sent his best warrior, Sub-Zero, an otherworldly Cryomancer, to hunt Cole down. Fearing for his family's safety, Cole goes in search of Sonya Blade at the direction of Jax, a Special Forces Major who bears the same strange dragon marking Cole was born with. Soon, he finds himself at the temple of Lord Raiden, an Elder God and the protector of Earthrealm, who grants sanctuary to those who bear the mark. Here, Cole trains with experienced warriors Liu Kang, Kung Lao and rogue mercenary Kano, as he prepares to stand with Earth’s greatest champions against the enemies of Outworld in a high stakes battle for the universe. But will Cole be pushed hard enough to unlock his arcana—the immense power from within his soul—in time to save not only his family, but to stop Outworld once and for all?",
"avaliacao":"10",
"descricao":"o pau vai comer",
"plataforma":"HBO MAX",
"img_maior":"sdfadsfasdfa",
"img_menor":"sdfasdfasdfadas"
}
]
```
response
>Filme alterado!
## DELETE/filme/:id
>irá deletar um filme
Response
>Filme removido!
# Usuario
## GET/usuario
>irá consultar os usuario do banco de dados
```json=
[
{
"nome":"Alex",
"sobrenome":"Silva",
"username":"alesilva",
"email":"asilva@hotmail.com",
"senha":"123456",
"genero":"masculino",
"localizacao":"são paulo SP",
"redes":"twitter",
"fotoperfil":"asdfasdfasdfasdfasdfa",
}
]
```
## POST/usuario
>irá inserir um usuario
request(body)
```json=
[
{
"nome":"Alex",
"sobrenome":"Silva",
"username":"alesilva",
"email":"asilva@hotmail.com",
"senha":"123456",
"genero":"masculino",
"localizacao":"são paulo SP",
"redes":"twitter",
"fotoperfil":"asdfasdfasdfasdfasdfa",
}
]
```
response
>Usuário inserido!
## PUT/usuario/:id
>irá alterar as informações de um usuario
request(body)
```json=
[
{
"nome":"Alan",
"sobrenome":"Silva",
"username":"alesilva",
"email":"asilva@hotmail.com",
"senha":"123456",
"genero":"masculino",
"localizacao":"são paulo SP",
"redes":"twitter",
"fotoperfil":"asdfasdfasdfasdfasdfa",
}
]
```
response
>Usuário alterado!
## DELETE/usuario/:id
>irá deletar um usuario
response
>Usuario removido!
# Listas
## GET/lista
>irá consultar as listas do banco de dados
```json=
[
{
"nome":"lista legal",
"descrição":"essa lista é legal"
}
]
```
## POST/lista
>irá criar uma lista
request(body)
```json=
[
{
"nome":"lista legal",
"descrição":"essa lista é legal"
}
]
```
response
>Lista criada!
## PUT/lista/:id
>irá alrerar um lista
request(body)
```json=
[
{
"nome":"lista ruim",
"descrição":"essa lista é ruim"
}
]
```
response
>Lista alterada!
## DELETE/lista/:id
>irá deletar um lista
response
>Lista removida!
{"metaMigratedAt":"2023-06-16T11:44:23.155Z","metaMigratedFrom":"Content","title":"Planejamento Api","breaks":true,"contributors":"[{\"id\":\"99b23586-f7a7-47ea-b887-d7950e9b64d2\",\"add\":12047,\"del\":5822}]"}