-
Notifications
You must be signed in to change notification settings - Fork 74
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 data
Object 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 workspaceId
Number The workspace id
data
Object 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 projectId
Number 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 params
Object <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 projectId
Number The project id
params
Object <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 workspaceId
Number The workspace id
params
Object <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 projectId
Number The project id
data
Object The data to be sent to the workspace
- Source:
The result of the API call
- Type
- Promise