Changes between Initial Version and Version 1 of RestfulAPI


Ignore:
Timestamp:
02/14/08 14:34:37 (6 years ago)
Author:
johnbywater
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RestfulAPI

    v1 v1  
     1= Questions = 
     2 
     3 * What are the URIs? 
     4 * What's the format? 
     5 * What methods are supported at each URI? 
     6 * What status codes could be returned? 
     7 
     8= URLs = 
     9 
     10http://ckan.net/api/rest/package/list/:page 
     11http://ckan.net/api/rest/package/create/:name 
     12http://ckan.net/api/rest/package/update/:name 
     13http://ckan.net/api/rest/package/read/:name 
     14 
     15= Data Formats = 
     16 
     17Request: HTTP Parameters 
     18Response: JSON 
     19 
     20= Methods = 
     21 
     22|| Action || Methods || 
     23|| list/ || GET || 
     24|| create/ || POST || 
     25|| update/ || POST || 
     26|| read/ || GET || 
     27 
     28= Status Codes =  
     29 
     30|| Action-Method || Success || Exception || 
     31|| list/ GET || 200 || 400 Invalid Request, 404 Not Found || 
     32|| create/ POST || 201 || 400 Invalid Request, 409 Conflict || 
     33|| update/ POST || 200 || 400 Invalid Request || 
     34|| read/ GET || 200 || 404 Not Found || 
     35