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

implementing PUT method of restful web services in javascript

I am developing a RESTful web service using NetBeans, GlassFish server and MySQL as the backend. I want to create a RESTful web service client using JavaScript which will consume all services through it. I already have created a client that…
Ajit
  • 957
  • 1
  • 8
  • 24
0
votes
1 answer

Fatal error when using REST client library in CodeIgniter

I downloaded the Rest Client library from here and the Curl library for CodeIgniter from here. I put both the libraries in a library folder and set them in auto load library. Now when I try to run the following code: class Api extends CI_Controller…
user1414979
  • 92
  • 4
  • 11
0
votes
1 answer

How to use slugs in RESTful URLs?

According to current best practices a RESTful URL for a given thread on a message board should look something like this: http://domain/forum/threads/3 It is also a common SEO practice that URLs should contain keywords (slug), so perhaps the above…
Wabbitseason
  • 5,641
  • 9
  • 49
  • 60
0
votes
2 answers

Restful API Zend Framework 2

I've already figured out how to make a simple resource reachable by AbstractRestfulController. Example: localhost/products -> list localhost/products/1 -> special product Is there a way to nest resources? If so, how would you do that?…
FlorianX
  • 221
  • 1
  • 3
  • 7
0
votes
2 answers

RESTful API Design OR Predicates

I'm designing a RESTful API and I'm trying to work out how I could represent a predicate with OR an operator when querying for a resource. For example if I had a resource Foo with a property Name, how would you search for all Foo resources with a…
0
votes
3 answers

Executing RESTful URL with Android

I am trying to exectue the following REST url using Android but I get the following error, 11-23 12:12:32.749: E/AndroidRuntime(709): Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 121: …
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
0
votes
2 answers

Anatomy of G-WAN URI servlets

gwan/csp/strangesubfolder/inc.c can be visited via http://domainName.com/strangesubfolder/?inc I feel this servlet mapping strange but that suits my need. I can't find the mapping description in the gwan user's manual. Please correct me if I am…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

Htaccess and restfull app

I'm not very good at htaccess, so looking for some help here. I have a web app running at myserver.com/index.html And I'm sending the requests (GET,PUT,DELETE) to a controller: myserver.com/controller.php?id=5 Is there a way that I can use…
Fluidbyte
  • 5,162
  • 9
  • 47
  • 76
0
votes
1 answer

yiiframework multiple optional parameters the RESTful way

I have a query interface that allows for say 4 possible fields to query, name, birthyear, astrological sign, and birthstate. The user can provide a value for any one of these fields. I am using AngularJS (immaterial here) and YiiFramework…
Cord
  • 317
  • 2
  • 10
0
votes
1 answer

Can I use an edit path with conditional for ruby on rails link_to?

I wan to create a link_to tag with a conditional for example: The below code probably doesn't work... do not try link_to "Edit postal address", edit_postal_address_path( :condition => {:organization_id => @organization_id } ) I want to edit the…
Jakcst
  • 605
  • 3
  • 8
  • 16
0
votes
2 answers

Rails routes for get request with query params

I need a route to accept a request reports#show with an attached :query parameter and I can't figure out how to write it. It needs to respond to this link in my view: = link_to report_path(query: params[:query]) do config/routes.rb resources…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
1 answer

form gets posted while calling save for backbone.js restful url put method

Well I have a backbone.js model here define ['jquery','underscore','backbone'] , ($,_,Backbone) -> class Student extends Backbone.Model idAttribute : "UserKey" urlRoot : "Api/Student" defaults: UserKey: null FirstName…
Joy
  • 6,438
  • 8
  • 44
  • 75
0
votes
2 answers

is it possible to identify telecom provider by mobile or phone number?

There are ulimited online bulk sms provider supporting Restful API. Mainly I look into Nexmo, Tropo, Twilio pricing in different countries. Let take an example sms to Brazil. [ TROPO ] 2¢ / msg [ Nexmo ] 3.63¢ / msg [ Twilio ] Twilo offers based…
Madan Sapkota
  • 25,047
  • 11
  • 113
  • 117
0
votes
1 answer

RESTful API Path design guideline

I am wondering for a restful API, which of the following would be more practical? myapi.com/users/{userid} myapi.com/users?userid={userid} I am just confused when we should pass parameter in the URL Param vs. the Path.
aminjam
  • 646
  • 9
  • 25
0
votes
1 answer

Can an Equal sign be passed in RESTful?

My RESTful interface works fine until I try to pass a WHERE statement Example: perimeters that are passed: SELECT = "this"; FROM = "that"; WHERE = " 'ID' = 332"; the URL might look like…
MichaelTaylor3D
  • 1,615
  • 3
  • 18
  • 32