-
Notifications
You must be signed in to change notification settings - Fork 75
Projects.API
A wrapper for the Projects resource
Constructs a resource accessor for Projects that will use the dispatcher for all requests to the API
| Name | Type | Description |
|---|---|---|
dispatcher |
Dispatcher | The API dispatcher |
- Source:
-
dispatcher :Dispatcher
-
An instance of the dispatcher. This is usually passed from the client.
- Source:
-
Dispatches a POST request to /projects of the API to create a new project.
Name Type Description dataObject The data for the project
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a POST request to /workspaces/:workspaceId/projects of the API to create a new project within the workspace.
Name Type Description workspaceIdNumber The workspace id
dataObject The data for the project
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a DELETE requte to /projects/:projectId to delete the project.
Name Type Description projectIdNumber The project id
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a GET request to /projects of the API to get information about all projects that the dispatcher as access to.
Name Type Argument Description paramsObject <optional>
Extra params for the dispatcher
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a GET request to /projects/:projectId of the API to get information about the project.
Name Type Argument Description projectIdNumber The project id
paramsObject <optional>
Extra params for the dispatcher
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a GET request to /workspaces/:workspaceId/projects to get all the projects associated with the workspace.
Name Type Argument Description workspaceIdNumber The workspace id
paramsObject <optional>
Extra params for the dispatcher
- Source:
The result of the API call
- Type
- Promise
-
Dispatches a PUT request to /projects/:projectId to update the project.
Name Type Description projectIdNumber The project id
dataObject The data to be sent to the workspace
- Source:
The result of the API call
- Type
- Promise