Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8071947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:51:08+00:00 2026-06-05T13:51:08+00:00

just a short question: Having the new instance of a model and issuing a

  • 0

just a short question:

Having the new instance of a model and issuing a model.save() with URL set to /api/store/category, Backbone issues a POST. According to my knowledge, it should use PUT, like mentioned in this “PUT or POST: The REST of the Story” blog post.

Who is right? BB or this article’s author?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:51:09+00:00Added an answer on June 5, 2026 at 1:51 pm

    According to Backbone documentation, saving a new model will result in a POST request, and saving an existing model (having an id) will emit a PUT request.

    save model.save([attributes], [options])
    …
    If the model isNew, the save will be a “create” (HTTP POST), if the model already
    exists on the server, the save will be an “update” (HTTP PUT).

    And if you are wondering if Backbone should use a POST for creation, check

    1. PUT vs POST in REST
    2. RESTful web services on Wikipedia

    In the light of these articles, I’d say that, in the context of Backbone, the verbs are correctly used:

    • saving a new model causes a change in the system, a new URL is added, the action is not idempotent, it should be a POST,
    • saving a known model replaces a resource at a given URL, the action is idempotent, it should be a PUT.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel rather foolish as this is just a short question. I was reading
Short question. I just got a dll I'm supposed to interface with. Dll uses
Really need just some guidance : Topological sort by arcs definition (from my question)
I'm quite new to develop on GAE. Need just sort out few questions about
Just a quick short example of what I'm trying to do: Salamander = {
I have just written this short C++ program to approximate the actual number of
I'm coming up just a little short on this. I know google has a
Just to make it short. I want to connect to three devices and read
In short, I'm just looking for the PowerShell equivalent of how a batch file
Short Question Is there a library that is supposed to replace mswinsoc.osx used to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.