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

  • Home
  • SEARCH
  • 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 8252561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:35:38+00:00 2026-06-08T00:35:38+00:00

A restful api has to use either get, post, put or delete request methods.

  • 0

A restful api has to use either get, post, put or delete request methods. The behavaiour and data submitted is entirely determined by the uri string. No query paramters or post variables.

Is this true ?

Valid : http://example.com/foo/84

Not valid : http://example.com/foo/?value=84

Valid :

$.ajax({
  type: 'POST',
  url: "http://example.com/foo/84",
  success: success,
  dataType: dataType
});

Not valid :

$.ajax({
  type: 'POST',
  url: "http://example.com/foo/",
  data: 84,
  success: success,
  dataType: dataType
});

edit
Two answers so far, and the contradict each other.

  • 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-08T00:35:39+00:00Added an answer on June 8, 2026 at 12:35 am

    Saying that http://example.com/foo/?value=84 is not valid is not entireley true. What i mean is that as long that it is a valid URL it will work and you’ll be able to get the parameters via get or post.

    On the other hand, REST is an architecture and one of its demands is a clean URL (one that does not include params with a ‘?’) so such a url is not considered a REST like URL.

    So if you intend to build a REST based application, you should only use clean urls.

    EDIT:

    I see from the comments below you have a problem understanding what is REST so i’ll try to give a simple example:

    1. In order to get data you will probably use http://example.com/foo/84 as a get request and the rest FW knows to get resource foo with id 84.
    2. In order to post data about foo, you might call: http://example.com/foo/84 as a POST request and now the Rest FW know that since its a post request it will call the method responsible for handling post and not the one for handling get
    3. To delete, you call the same URL with DELETE action and i think you know the rest.

    So, although you have the same URL it really matters if its a GET/POST/PUT/DELETE request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a RESTful API that supports GET/POST/PUT/DELETE requests. Now I want my API
I have a RESTful rails backend where http requests(GET, PUT, POST, etc.) have much
I am designing a restful HTTP API for my application. The app has Categories
I am going to write a restful API, my requirement is to call methods
I've just started to use Jersey to create a RESTful API for my site.
My team has a web site with a RESTful API. We're is working on
I'm designing a RESTful API that currently has resources that include some elements that
I'm building a RESTful web api with asp.net mvc, which returns pure json data.
I am trying out a RESTful API that has OAuth. I have the API
Does anyone has experience with ZEND's framework for writing a RESTful API for an

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.