Questions tagged [restful-url]

Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

https://en.wikipedia.org/wiki/Representational_state_transfer

1351 questions
0
votes
1 answer

ideal API routes

I'm writing an api. To this point I've been using a route: http://api.com/resource and I pass in an action that I want to do to the resource within a json field and go from there. Is this an ideal or preferable situation from both a programmer and…
blueblank
  • 4,724
  • 9
  • 48
  • 73
0
votes
1 answer

How to read xml value as a queryparam in restful webservice

I am unable to read the xml value from @QueryParam using restful service in mule. @Path("/hello") public class Resttest { @GET @Produces("text/xml") public String sayHelloWithUri(@QueryParam("body") String g)…
Kalyan Nemani
  • 79
  • 2
  • 6
0
votes
1 answer

How to Edit default URL in Restful web service

I created Restful web service using netbeans but I can't change the default URL. it is like this http://localhost:8080/project/resources/path so I need to change that url to http://localhost:8080/project/search/path. so is it possible to do…
mssb
  • 878
  • 1
  • 8
  • 19
0
votes
1 answer

How to make output of hadoop mapreduce as input of restful api?

Recently I am studying mapreduce, I can use mapreduce to process my data. Now I want to use restful API to show output of mapreduce, but I do not know how to make output of hadoop mapreduce as input of restful api? Or how restful api process the…
sabrina
  • 111
  • 3
  • 6
0
votes
3 answers

Is it advisable to use API based architecture for both native and non-native sites?

I am planning to use a architecture (MVC = PHP->Yii) where I will be using REST API based architecture for native site (main web app) and non-native (apps such as iPhone, BB, WAP etc). No my question is it advisable to use View-Controller (HTML+User…
Borderless.Nomad
  • 761
  • 1
  • 10
  • 23
0
votes
4 answers

RESTful API Ruby on Rails

I'm playing with Ruby on Rails for the first time, and have an app up and running. Here's the quick database definition: Teams - id: int - name: char[20] Answers - id: int - answer_value: text I want to be able to type:…
0
votes
1 answer

Best way to pass a list of key/value pairs in URI query parameter

What's the best method to pass a set of key/value pairs via a HTTP request? As an example, say, I need to send a sort command to a RESTful service. I need to specify a list of properties to sort by and the order that I wish to sort each of them by…
fin
  • 1,275
  • 4
  • 18
  • 34
0
votes
0 answers

server side database handler script

We are pushing data from Linux device via Python to a RESTful API at cosm.com. We would now like to implement the data handling and storage of this to our own server. In particular, the HTTP PUT method is used to push to the site's API. I am an…
Shown
  • 201
  • 1
  • 2
  • 7
0
votes
1 answer

How Can I have a List forwarded to a jsp file?

I'm using a restful method in which I want to pass a list to a jsp file. Here is the restful method: @Path("myRest") public void handleRequestInternal() throws Exception { try { Request req = new Request(); List roles =…
Matin Kh
  • 5,192
  • 6
  • 53
  • 77
0
votes
3 answers

How to design a Restful API with the resource hierarchy?

There are products and reviews of products. So, I can get product list like this... GET /products also I can fetch one product or reviews or the product like this... GET /products/{productID} GET /products/{productID}/reviews Those are clear. but…
0
votes
1 answer

How to build restful DELETE URL with many parameters?

I create a restful DELETE service, for example, the URL is http://localhost/book/10, use DELETE method to send this request, but I need to record this operation by which user, so I need to send an operatorId parameter with that DELETE method…
Liu guanghua
  • 981
  • 1
  • 9
  • 18
0
votes
2 answers

RESTful resource representation - human web vs programmable web

I'm designing RESTful resources for accessing media. Media could be a live stream or archived stream. I'm using O'Riellys text "RESTful Web Services' as a guide but I'm struggling with the representation of resources relative to the…
ma740988
  • 11
  • 3
0
votes
1 answer

WebClient.DownLoadString is adding \" infront of my JSON data elements.How to parse it as normal JSON without \"?

I am trying to access a REST Service in my MVC application.I am calling getJSON method to get the data from a controller which internally calls the REST service which returns data in json format.But I am getting the a lot of "\ in my output of…
Happy
  • 1,767
  • 6
  • 22
  • 26
0
votes
1 answer

Looking for Response Options in regards to an ASP.NET webforms App communicating with my MVC App

I have read a ton of questions/answers on here regarding questions similar or about topics this would cover. I have come across a ton of different articles that outline setting up MVC to respond to inbound requests. However, I have not been able…
pghtech
  • 3,642
  • 11
  • 48
  • 73
0
votes
1 answer

In the two URI design patterns below, which is more RESTful?

In the two URI design patterns below, which is more RESTful? 1) project/123/engineer/somebody/abilities 2) abilities?engineer=somebody&project=123
Alex Chan
  • 1,116
  • 3
  • 15
  • 33