{
project_id: 1234,
title: "Foobar",
description: "...",
query: "?param=value",
modules: [ ... ]
}
GET /reports
GET /reports/[report-id]
POST /reports
(the google doc specifies the route as /reports/[project-id]/new, which is OK too, but let's talk more on this detail)
PUT /reports/[report-id]
DELETE /reports/[report-id]
NB: returning all report modules as a JSON array seems like the best way to go for now.
RPC Style endpoints:
GET /project/[project-id]/reports
GET /reports/[report-id]/modules
GET /modules/[module-id]
POST /modules
PUT /modules/[module-id]
DELETE /modules/[module-id]
PUT
andDELETE
might need to bePOST
's with a _method parameter