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 9065111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:25:22+00:00 2026-06-16T16:25:22+00:00

I have an existing RESTful API wich can’t be changed. Now, i’m working on

  • 0

I have an existing RESTful API wich can’t be changed.
Now, i’m working on the webclient.

I would like to use a library like backbone.js (for the first time).

Here is the design of the existing API

1.) GET /persons – Returns the whole collection of persons

2.) GET /persons?p1=a&p2=b (e.g.) – Returns a subset of the complete collection which matches the criteria specified by the query parameters

3.) GET /persons/[id] – Returns a person by id

4.) POST /persons – modifies the collection (e.g. creates a new person) and returns the specific result

Issues:

  • The problem with #1 (and #2): The output format is like this: {size: 1, persons: [{'id': 1, 'firstname': 'foo', 'lastname': 'bar'}]}

  • The problem with #2: how to map such a requst to backbone.js?

Any suggestions?

  • 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-16T16:25:23+00:00Added an answer on June 16, 2026 at 4:25 pm

    For an API that doesn’t follow backbone’s exact structure, you usually end up overriding some combination of fetch parse and sync within backbone. Backbone was designed so that overriding these things would be easy, since it’s a common need:

    • http://japhr.blogspot.com/2011/10/overriding-url-and-fetch-in-backbonejs.html
    • Overriding backbone's parse function
    • How to override Backbone.sync?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC 4 application that needs to use an existing API
I have an existing website written in PHP. I would like to add a
I have existing Linux shared object file (shared library) which has been stripped. I
I'm working on a project where the client wants to have existing pages dynamically
So we have some internal applications that provide metrics via a RESTful api. We
I'm trying to build a python library for interacting with our RESTful API, but
I have: existing object oriented native code API (non GUI) GUI application that works
I have existing code that's like: final Term t = /* ... */; final
Is it necessary to use db:migrate? I have existing database, i want to write
Basically I have an existing CollegeClass Controller that has the default basic RESTful actions

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.