| 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 | |
| 10 | http://ckan.net/api/rest/package/list/:page |
| 11 | http://ckan.net/api/rest/package/create/:name |
| 12 | http://ckan.net/api/rest/package/update/:name |
| 13 | http://ckan.net/api/rest/package/read/:name |
| 14 | |
| 15 | = Data Formats = |
| 16 | |
| 17 | Request: HTTP Parameters |
| 18 | Response: 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 | |