Connect API for Post CRUD operations
See original GitHub issueA not logged-in user is redirected to login/signup.
A logged-in user can:
-
Create a Post
- Make a
POST
request to/api/posts/
, sending along the required data in the request body to the server.
- Make a
-
Access any post (no auth required)
- Make a
GET
request to/api/posts/:postId
.
- Make a
-
Edit a post that they authored
- Make a
PATCH
request to/api/posts/:postId
, sending along the required data in the request body to the server.
- Make a
-
Delete a post that they authored
- Make a
DELETE
request to/api/posts/:postId
.
- Make a
More reference: https://www.notion.so/fightpandemics/Feed-653658508c4649869787c48f3e4eee13
Contact @anniegiang for questions about how the frontend of the Feed was built.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Create Web API for CRUD operation - TutorialsTeacher
Here we will create a new Web API project and implement GET, POST, PUT and DELETE method for CRUD operation using Entity Framework....
Read more >Enabling CRUD Operations in ASP.NET Web API 1
Tutorial shows how to support CRUD operations in an HTTP service using ASP.NET Web API for ASP.NET 4.x.
Read more >CRUD API Design & CRUD API Recommendations
CRUD is one of those common design paradigms that works well for a lot of APIs. In this post, we'll have a look...
Read more >CRUD REST API with Node.js, Express, and PostgreSQL
Our goal is to allow CRUD operations, GET , POST , PUT , and DELETE , on the API, which will run the...
Read more >JavaScript Rest-API with CRUD Operations - YouTube
CRUD operations using NodeJS and Express | REST APIs | Most frequently asked interview question | Must LearnLearn Get Post Put Delete ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One quick thing, I think
/posts
doesn’t require auth, but/post/:postId
does (unauthenticated users can’t access the post screen to see comments according to the specifications at notion).@robinv85 @joshmorel I think this issue is related to PR #402 by @silenceway ?
@limaneto was working on the frontend too