Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] Feat: Movies Catalog #13

Merged
merged 15 commits into from
Dec 12, 2023
Merged

[Backend] Feat: Movies Catalog #13

merged 15 commits into from
Dec 12, 2023

Conversation

joaoGabriel55
Copy link
Collaborator

@joaoGabriel55 joaoGabriel55 commented Nov 29, 2023

TODO

  • Create movies
  • Read movies
  • Update movies
  • Delete movies
  • Write tests

backend/app/controllers/movies_controller.rb Outdated Show resolved Hide resolved
backend/app/usecases/movies/update.rb Outdated Show resolved Hide resolved
Comment on lines +4 to +8
t.string :director
t.string :writer
t.string :title
t.string :producer
t.string :production_company
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this list, I think only title is not an array, yes? Let's leave this as it is and discuss this in another ticket.

backend/app/usecases/movies/create.rb Outdated Show resolved Hide resolved
Comment on lines +42 to +44
def movie_not_found
render json: { error: "Movie not found" }, status: :not_found
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use a Rails Concern to delegate the error handling.

@joaoGabriel55 joaoGabriel55 merged commit 292a302 into main Dec 12, 2023
2 checks passed
@joaoGabriel55 joaoGabriel55 deleted the create-movie-catalog branch December 12, 2023 00:13
@joaoGabriel55 joaoGabriel55 changed the title Feat: Movies Catalog [Backend] Feat: Movies Catalog Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants