-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Play
Julius Seltenheim edited this page May 23, 2013
·
43 revisions
| Method | POST |
| Action | jsRoutes.controllers.User.login() /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() /maps |
| Form Data | --- |
| Requires | |
| Returns | List with MindMapInfo Objects |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.map(String mapId) jsRoutes.controllers.MindMap.map(String mapId, Integer nodeCount) /map/:mapId/json /map/:mapId/json?nodeCount |
| Params |
mapId = Id of the map (currently mmIdOnServer) nodeCount = soft limit of maximum nodes |
| Form Data | --- |
| Requires |
|
| Returns | A MindMap Object |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.getNode(String mapId,Strin nodeId) jsRoutes.controllers.MindMap.getNode(String mapId,Strin nodeId, Integer nodeCount) /map/:mapId/node/:nodeId /map/:mapId/node/:nodeId?nodeCount |
| Params |
mapId = Id of the map (currently mmIdOnServer) nodeId = Id of node nodeCount = soft limit of maximum nodes |
| Form Data | --- |
| Requires |
|
| Returns | A DefaultNode Object |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.listenForUpdates(String mapId) /map/:mapId/listen |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| 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 mapId, Integer revision) /map/:mapId/updates/:revision |
| Params |
mapId = Id of the map (currently mmIdOnServer)revision = last known revision, to get all updates from there |
| Form Data | --- |
| Requires |
|
| Returns |
json with attributes:- currentRevision- orderedUpdates = List of MapUpdate Objects |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.requestLock(String mapId) /map/:mapId/node/requestLock |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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 mapId) /map/:mapId/node/releaseLock |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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 mapId) /map/:mapId/node/create |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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 to |
| Requires |
|
| Returns | A AddNodeUpdate Object |
| Method | DELETE |
| Action | jsRoutes.controllers.MindMap.deleteNode(String mapId) /map/:mapId/node/delete |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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 mapId) /map/:mapId/node/change |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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 mapId) /map/:mapId/node/move |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Query Params |
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) /1/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() /1/project/create |
| Params | |
| 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() /1/project/addUser |
| Params | |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
projectId = id of the projectusername = name of the user to add |
| Requires |
|
| Returns |
Status 200 OK = success Status 412 Precondition Failed = failure |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.removeUserFromProject() /1/project/removeUser |
| Params | |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
projectId = id of the projectusername = 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) /1/metadata/:projectId/: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) /1/files/:projectId/: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 | GET |
| Action | jsRoutes.controllers.ProjectController.putFile(String projectId, String path) /1/files_put/:projectId/:path |
| Params |
projectId = id of the projectpath = resource path |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data | The body only</> contains the full file. The server knows if it is a zip or not. |
| Requires |
|
| Returns | zipped file |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.createFolder() /1/fileops/create_folder |
| Params | |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
projectId = id of the projectpath = resource path |
| Requires |
|
| Returns |
Metadata-Object as json |
| Method | POST |
| Action | jsRoutes.controllers.ProjectController.projectVersionDelta() /1/delta |
| Params | |
| Query Params |
username = username for stateless authenticationaccessToken = token for stateless authentication |
| Form Data |
projectId = id of the projectcursor = current local revision |
| Requires |
|
| Returns | List of Change-Object as json |
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