-
Notifications
You must be signed in to change notification settings - Fork 8
v0.3.0 proposal
Yasushi Sakai edited this page May 23, 2019
·
2 revisions
Proposal for the next version of cityio. Note that this is not a format change.
- backward compatibility (no breaking changes for current clients)
- stability
- speed
- posting empty
{}
objects will be rejected - meta now holds a hash tree for each module
[GET] https://cityio.media.mit.edu/api/table/:table_name/:field/:deep/:deep/:deep/...
- collision with
/api/table/clear/{table_name}
endpoint... - the posting table under the name of
clear
will be discarded
[POST] https://cityio.media.mit.edu/api/table/update/:table_name/:module_name/
- note that unlike the deep get, this only allows posting data to the root level
- propagates empty field if table does not yet exist
-
[GET] /api/table/clear/:table_name
? clears all data under :table_name -
[POST] /api/table/update/:table_name/meta
will be rejected,meta
will be reserved for server
curl -X GET https://cityio.media.mit.edu/api/archive/table/{table_id}
where {table_id}
is in table.meta.id
curl -X GET https://cityio.media.mit.edu/api/archive/table/{table_name}
get tables archived in db. (needs a limit?)