question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect API for Post CRUD operations

See original GitHub issue

A not logged-in user is redirected to login/signup.

A logged-in user can:

  1. Create a Post

    • Make a POST request to /api/posts/, sending along the required data in the request body to the server.
  2. Access any post (no auth required)

    • Make a GET request to /api/posts/:postId.
  3. 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.
  4. Delete a post that they authored

    • Make a DELETE request to /api/posts/:postId.

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Naraujo13commented, May 16, 2020

A not logged-in user is redirected to login/signup.

A logged-in user can:

  1. Create a Post

    • Make a POST request to /api/posts/, sending along the required data in the request body to the server.
  2. Access any post (no auth required)

    • Make a GET request to /api/posts/:postId.
  3. 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.
  4. Delete a post that they authored

    • Make a DELETE request to /api/posts/:postId.

More reference: https://www.notion.so/fightpandemics/Feed-653658508c4649869787c48f3e4eee13

Contact @anniegiang for questions about how the frontend of the Feed was built.

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).

0reactions
anniegiangcommented, Jun 4, 2020

@robinv85 @joshmorel I think this issue is related to PR #402 by @silenceway ?

@limaneto was working on the frontend too

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found