Skip to content
rinzeb edited this page Mar 21, 2017 · 4 revisions
endpoint type use data in body needed in t2m auth
/projecttemplate post Used to send a data object containing project, group and layer data. ILayerTemplate (MapLayerFactory.ts) deprecated -
/api/project/:projectId put Used to update a project definition. Project yes editors only
/api/files/:folder/:filename post Used to add an icon or logo image file {base64: b64-data} yes editors only
/api/resources post Used to add a ResourceType {ResourceType} yes editors only
/requestproject post Requests a project. Should return the requested project when it exists or create a new project if the requested project does not exist. Project yes
/updategrouptitle post Used to change a group title {oldTitle: string, newTitle: string, projectId: string} yes editors only
/clearproject post Used to remove all groups and layers from a project {projectId: string} yes editors only
/api/projects get Used to get a list of projects for the logged in user tbd yes logged in users only
/api/projects/{projectId} get Used to get a project - yes editors and viewers only
/api/layers/{layerId} get Used to get a layer - yes editors and viewers only
/api/layers/{layerId} put Used to update a layer - yes editors only
/api/projects/{projectId} /group/{groupId} /layer/{layerId} delete Used to delete a layer - yes editors only

Clone this wiki locally