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

API: Update problem list hash #41

Open
mjurkus opened this issue Nov 27, 2017 · 0 comments
Open

API: Update problem list hash #41

mjurkus opened this issue Nov 27, 2017 · 0 comments

Comments

@mjurkus
Copy link
Collaborator

mjurkus commented Nov 27, 2017

Not all fields are included at the moment

GET /reports
PARAMS: start, limit, type_id, status_id

Example response fields:

{
  entries: [
    {
      id: 123,
      ref_no: "XXXX"
      type_id: 2,
      description: "Short description"
      lat: 24.1234
      lng: 54.1234
      user_id: 123
      status_id: 123
      answer: "Problem answer" (optional)
      car_plate_no: "ABC123" (optional)
      registration_date: timestamp
      complete_date: timestamp (optional)
      photos: [
        {
          url: "photo_url",
          thumbnail: "thumbnail_url"
        },
        {
          url: "photo_url",
          thumbnail: "thumbnail_url"
        },
      ]
    },
  ],
}
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

1 participant