Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response arrays for this calls? #14

Open
kvlahromei opened this issue Mar 3, 2015 · 1 comment
Open

Response arrays for this calls? #14

kvlahromei opened this issue Mar 3, 2015 · 1 comment

Comments

@kvlahromei
Copy link
Contributor

There are some calls that confused me during modelling the spec, as (to me) it seems strange that they seem to realize an array / 1:n relation
open311 arrays

  • POST Service Request
  • GET service_request_id from a token
  • GET Service Request
@philipashlock
Copy link
Member

I think this is an artifact of initially modeling things in XML and wanting the structure of responses to be consistent whether there was one or many objects returned. We then decided that the JSON variant would be directly mapped to this XML structure which means that responses that only have one object are still returned as an array.

A future version of the spec could take this into consideration more and perhaps drop support for XML altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants