Webservice API

  1 post   Feedicon  
Replies: 0 - Last Post: July 05, 2009 18:59
by: diogok
« Older Topic » Newer Topic
showing 1 - 1 of 1
 
Posted: July 05, 2009 18:59 by diogok
After a better code coverage and persistence rewrite it's available the webservice source code (just check the repositories) and the API.

It is yet not "fully RESTful", specialy still have to work on the PUT method and Cache handling. Also Digest Authentication is to come.


  • All URLs start with http://www.ideaswall.org.
  • All POST method, the content must be multipart/form-data.
  • All request should use BASIC Authentication.
  • Error messages are sent in plain text.


Here are the API.


  • GET
  • /ideas.json
  • The array of suplied user Ideas


  • GET
  • /tags.json
  • The array of this user tags, it's a array of strings


  • GET
  • /map.json
  • The Array of the "map" position (x, y) for each idea


  • GET
  • /ideas/id.json
  • The idea of supplied id


  • GET
  • /users/login.json
  • Just for test authentication on the user.


  • POST
  • /ideas.json
  • Insert an idea and return this idea json. Expected parameters are: idea (string), priori(int from 1 to 3) and tags (as a comma sepparted values string).


  • POST
  • /ideas/id.json
  • Update and return this [b]id[/id] idea. Expect: idea, priori, status (int from 1 to 5) and tags.


  • POST
  • /ideas/id/map.json
  • Expect "x" and "Y" for idea id map position[/td
Replies: 0 - Last Post: July 05, 2009 18:59
by: diogok
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close