Top Skilled Course Forum

Explore daily practice discussions about your courses.

MERN Full Stack · Express

Should my API use GET or POST when a student starts a thread?

  1. Student 1

    Should my API use GET or POST when a student starts a thread?

  2. Faculty

    Use POST because starting a thread creates a new record. Use GET to read threads.

  3. Student 2

    What should the server return when the thread is created?

  4. Faculty

    Return 201 Created. Include the thread ID or URL so the client can open the new discussion.