This app provides file support for the Moving Stories project and connectivity through the mplusmware middleware.

The base URL for all API requests is moda.movingstories.ca. At this time, all requests must use http.

Authentication: Accessing data via the API requires use of an user name and password via HTTP Basic Authentication generated via the web front-end.

The following resources are available for access, as described. Per standard RESTful practice, use the appropriate HTTP method.

Resources

Access groups

Resource Description
GET http://moda.movingstories.ca/access_groups.json List Access Groups
GET http://moda.movingstories.ca/access_groups/:id.json Show an Access Group
POST http://moda.movingstories.ca/access_groups.json Create an Access Group
PUT http://moda.movingstories.ca/access_groups/:id.json Update an Access Group
DELETE http://moda.movingstories.ca/access_groups/:id.json Destroy an Access Group

Data tracks

Resource Description
GET http://moda.movingstories.ca/data_tracks.json List data tracks that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/data_tracks/:id.json Show a Data Track that the user has access to or is marked public
POST http://moda.movingstories.ca/data_tracks.json Create a data track
PUT http://moda.movingstories.ca/data_tracks/:id.json Update a data track
DELETE http://moda.movingstories.ca/data_tracks/:id.json Destroy a data track that you are the owner of

Movement annotations

Resource Description
GET http://moda.movingstories.ca/movement_annotations.json List movement annotations that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/movement_annotations/for.json List movement annotations for a specific object that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/movement_annotations/:id.json Show a movement annotation that the user has access to or is marked public
POST http://moda.movingstories.ca/movement_annotations.json Create a movement annotation
PUT http://moda.movingstories.ca/movement_annotations/:id.json Update a movement annotations
DELETE http://moda.movingstories.ca/movement_annotations/:id.json Destroy a movement annotation that you are the owner of

Movement groups

Resource Description
GET http://moda.movingstories.ca/movement_groups.json List movement groups that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/movement_groups/:id.json Show a movement group that the user has access to or is marked public
POST http://moda.movingstories.ca/movement_groups.json Create a movement group
PUT http://moda.movingstories.ca/movement_groups/:id.json Update a movement group
DELETE http://moda.movingstories.ca/movement_groups/:id.json Destroy a movement group that you are the owner of
GET http://moda.movingstories.ca/movement_groups/export/:id.json Retrieve a zip of indicated movement group with all associated takes, data tracks, and attached files (public only)

Movers

Resource Description
GET http://moda.movingstories.ca/movers.json List all movers
GET http://moda.movingstories.ca/movers/:id.json Show details on a mover
POST http://moda.movingstories.ca/movers.json Create a mover
PUT http://moda.movingstories.ca/movers/:id.json Update a mover
DELETE http://moda.movingstories.ca/movers/:id.json Destroy a mover record that you are the owner of

Projects

Resource Description
GET http://moda.movingstories.ca/projects.json List projects that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/myprojects.json List projects that belong to the current user
GET http://moda.movingstories.ca/projects/:id.json Show a project that the user has access to or is marked public
POST http://moda.movingstories.ca/projects.json Create a data track
PUT http://moda.movingstories.ca/projects/:id.json Update a project
DELETE http://moda.movingstories.ca/projects/:id.json Destroy a project that you are the owner of
POST http://moda.movingstories.ca/projects/make_public/:id.json Switch an entire project and its subsidiary components to public access mode.
GET http://moda.movingstories.ca/projects/export/:id.json Retrieve a zip of indicated projects with all associated groups, takes, and data tracks, with attached files (public only)

Sensor types

Resource Description
GET http://moda.movingstories.ca/sensor_types.json List all types of sensors
GET http://moda.movingstories.ca/sensor_types/:id.json Show details on a type of sensor
POST http://moda.movingstories.ca/sensor_types.json Create a type of sensor
PUT http://moda.movingstories.ca/sensor_types/:id.json Update a type of sensor
DELETE http://moda.movingstories.ca/sensor_types/:id.json Destroy a sensor type

Takes

Resource Description
GET http://moda.movingstories.ca/takes.json List takes that are accessible by the current user or are marked public
GET http://moda.movingstories.ca/takes/:id.json Show a take that the user has access to or is marked public
POST http://moda.movingstories.ca/takes.json Create a take
PUT http://moda.movingstories.ca/takes/:id.json Update a take
GET http://moda.movingstories.ca/takes/export/:id.json Retrieve a zip of indicated take with all associated data tracks and attached files (public only)
DELETE http://moda.movingstories.ca/takes/:id.json Destroy a take that you are the owner of