-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Play
Julius Seltenheim edited this page Jun 24, 2013
·
43 revisions
| Method | POST |
| Action | jsRoutes.controllers.User.login() /api/v1/user/login |
| Form Data |
|
| Requires | Nothing |
| Returns | 303 Redirect |
| Method | GET |
| Action | jsRoutes.controllers.User.logout() /logout |
| Form Data | --- |
| Requires | |
| Returns | 303 Redirect |
| Method | GET |
| Action | jsRoutes.controllers.User.mapListFromDB() /api/v1/user/maps |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires | |
| Returns | List with MindMapInfo Objects |
| Method | GET |
| Action | jsRoutes.controllers.User.projectListFromDB() /api/v1/user/projects |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires | |
| Returns | List with Project Objects |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.map(String projectId, String mapId) jsRoutes.controllers.MindMap.map(String projectId, String mapId, Integer nodeCount) /api/v1/project/:projectId/map/:mapId/json /api/v1/project/:projectId/map/:mapId/json?nodeCount |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) nodeCount = soft limit of maximum nodes |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires |
|
| Returns | A MindMap Object |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.getNode(String projectId, String mapId,Strin nodeId) jsRoutes.controllers.MindMap.getNode(String projectId, String mapId,Strin nodeId, Integer nodeCount) /api/v1/project/:projectId/map/:mapId/node/:nodeId /api/v1/project/:projectId/map/:mapId/node/:nodeId?nodeCount |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) nodeId = Id of node nodeCount = soft limit of maximum nodes |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires |
|
| Returns | A DefaultNode Object |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.listenForUpdates(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/listen |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires |
|
| Returns |
Status 200 OK = update occuredStatus 304 Not Modified = When for 30 seconds nothing have changed |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.fetchUpdatesSinceRevision(String projectId, String mapId, Integer revision) /api/v1/project/:projectId/map/:mapId/updates/:revision |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource)revision = last known revision, to get all updates from there |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | --- |
| Requires |
|
| Returns |
json with attributes:- currentRevision- orderedUpdates = List of MapUpdate Objects |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.requestLock(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/requestLock |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
nodeId = Id of Node |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.releaseLock(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/releaseLock |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
nodeId = Id of Node |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.createNode(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/create |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
parentNodeId = Id of parent where the new node gets attached toside = parameter for root node to define on which side the node should be added ("Left" or "Right"), default is "Left". |
| Requires |
|
| Returns | A AddNodeUpdate Object |
| Method | DELETE |
| Action | jsRoutes.controllers.MindMap.deleteNode(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/delete |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
nodeId = Id of node to delete |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.changeNode(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/change |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
nodeId = Id of node with changesoptional
|
| Requires |
|
| Returns | List of MapUpdate Objects |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.moveNode(String projectId, String mapId) /api/v1/project/:projectId/map/:mapId/node/move |
| Params |
projectId = Id of the projectmapId = Id of the map (e.g. resource) |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication source = Location of the sender (which online view or desktop instance). Importend to filter events send by yourself |
| Form Data |
newParentNodeId = Id of the new parent nodenodetoMoveId = Id of node, which is moved newIndex = new position in child list (0 = top) |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | GET |
| Action | jsRoutes.controllers.ProjectController.getProject(String projectId) /api/v1/project/:projectId |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | |
| Requires |
|
| Returns |
Project-Object as json |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.createProject() /api/v1/project/:projectId/create |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
name = name of the project |
| Requires | |
| Returns |
Project-Object as json |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.addUserToProject() /api/v1/project/:projectId/addUser |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
username = name of the user to add |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.removeUserFromProject() /api/v1/project/:projectId/removeUser |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
username = name of the user to remove |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | GET |
| Action | jsRoutes.controllers.ProjectController.metadata(String projectId, String path) /api/v1/project/:projectId/metadata/:path |
| Params |
projectId = id of the projectpath = resource path |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | |
| Requires |
|
| Returns |
Metadata-Object as json |
| Method | GET |
| Action | jsRoutes.controllers.ProjectController.getFile(String projectId, String path) /api/v1/project/:projectId/file/:path |
| Params |
projectId = id of the projectpath = resource path |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | |
| Requires |
|
| Returns | zipped file |
| Method | PUT or POST |
| Action | jsRoutes.controllers.ProjectController.putFile(String projectId, String path) /api/v1/project/:projectId/file/:path |
| Params |
projectId = id of the projectpath = resource path |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authenticationisZip = true
|
| Form Data | The body only contains the full file. |
| Requires |
|
| Returns |
Metadata-Object of uploaded file.When file was out of date it will be uploaded as a Conflicted Version which is also returned in the new metadata. |
| Method | DELETE |
| Action | jsRoutes.controllers.ProjectController.deleteFile(String projectId) /api/v1/project/:projectId/file/delete |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
path = resource path |
| Requires |
|
| Returns |
Metadata-Object of uploaded file. |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.moveFile(String projectId) /api/v1/project/:projectId/file/move |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
currentPath = resource to movemoveToPath = new location for resource |
| Requires |
|
| Returns |
Status 200 OK = success |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.createFolder() /api/v1/project/:projectId/create_folder |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
path = resource path |
| Requires |
|
| Returns |
Metadata-Object as json |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.projectVersionDelta() /api/v1/project/:projectId/delta |
| Params |
projectId = id of the project |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
projectRevision = current local revision |
| Requires |
|
| Returns | List of ChangedFilesResponse-Object as json |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.listenForUpdates() /api/v1/project/listen |
| Params | |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | For each known project to listen on a pair of projectId=currentRevision
|
| Requires | |
| Returns |
ProjectUpdates-Object |
Architecture
- Architecture
- Continuous Integration
- Online View
- Frontend/API-Server
- Freeplane Remote
- Deployment
APIs
Research & Technologies
-
[Client layer - overview](wiki/Overview of used technologies for client layer)
Tutorials
Misc
Archive