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

Blog app: add API endpoints #419

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

elyor-doniyorov
Copy link

add API endpoints

In this PR:

  • Create an API endpoint to list all posts.
  • Create an API endpoint to list all comments for a post.
  • Create an API endpoint to add a comment to a post.
  • Add authentication to API endpoints.
  • API endpoints should receive JSON and respond to JSON.

- Change ruby version to 2.7.1
- Change rails version to 6.0.3.5
- Run migration
And its associations with the user model
It is modified to return only user's posts or his friends posts
Changes to all implicated files
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.

2 participants