Ticket #954 (new enhancement) — at Initial Version
Change API JSON response format to include errors etc
Reported by: | rgrp | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | ckan-v1.5 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
Move to a format that has a separate responseHeader and response.
A standard package response
{ responseHeader: { status: 0, } response: {package-dict} }
On error:
{ responseHeader: { status: {err-code}, error: 'message' } response: none }
A search query
Based directly on solr.
{ responseHeader: { status: 0, } response: { numFound: 5, start: 0 docs: [ ] } }
Issues
This is a breaking change for clients
References
Note: See
TracTickets for help on using
tickets.