Uma API RESTful que retorna informações e avaliações de filmes, desenvolvida para o desafio técnico do processo seletivo para vaga de desenvolvedor na Ubots.
A API foi desenvolvida em Python, utilizando o framework FastAPI em conjunto com a biblioteca SQLModel para a integração com o banco de dados.
- Summary
Create Movie
- application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Create Review
- application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Delete Movie
- 200 Successful Response
application/json
{
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Delete Review
- 200 Successful Response
application/json
{
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Delete Reviews
- 200 Successful Response
application/json
{
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Get Movie By Movie Id
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Get Movies
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}[]
- Summary
Get Review By Review Id
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Get Reviews By Movie Id
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}[]
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Get Reviews
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}[]
- Summary
Root
- 200 Successful Response
application/json
{}
- Summary
Update Movie
- application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
title: string
synopsis: string
language: string
rating: string
release_date: string
duration: string
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}
- Summary
Update Movie
- application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}
- 200 Successful Response
application/json
{
id?: Partial(integer) & Partial(null)
stars: integer
comment: string
movie_id?: integer
}
- 422 Validation Error
application/json
{
detail: {
loc?: Partial(string) & Partial(integer)[]
msg: string
type: string
}[]
}