Strider API
Changes the email address for the active user (the API user).
POST /account/email
Name | Type | Description |
---|---|---|
String | The new email address. This must be a VALID email address. |
Changes the password for the active user (the API user).
POST /account/password
Name | Type | Description |
---|---|---|
password | String | The new password, which must be at least 6 characters long. Size range: 6.. |
Deletes a provider account for the active user (the API user).
DELETE /account/:provider/:id
Name | Type | Description |
---|---|---|
provider | String | Type of provider, e.g. github |
id | Number | Unique provider identification |
Updates a provider account for the active user (the API user).
PUT /account/:provider/:id
Name | Type | Description |
---|---|---|
provider | String | Type of provider, e.g. github |
id | Number | Unique provider identification |
Retrieves a list of all Strider users.
GET /admin/users
CURL Example:
curl -X GET http://localhost/admin/users
Revokes a previously sent Strider invitation.
POST /admin/invite/revoke
Name | Type | Description |
---|---|---|
invite_code | String | The invite code/token of the invite being revoked. |
CURL Example:
curl -X POST -d invite_code=xoxox http://localhost/invite/revoke
Create & email a new Strider invite.
POST /admin/invite/new
Name | Type | Description |
---|---|---|
invite_code | String | The invite code/token to use in the invitation |
String | The email address of the new user being invited |
CURL Example:
curl -X POST -d invite_code=xoxox -d email=new_guy@strider-cd.com http://localhost/invite/new
Add a new branch for a project.
POST /:org/:repo/branches
Name | Type | Description |
---|---|---|
name | String | The name of the new branch |
cloneName | String | The name of the cloned branch |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X POST -d name=newbranch http://localhost/api/strider-cd/strider/branches
Deletes a branch from a project
DELETE /:org/:repo/branches
Name | Type | Description |
---|---|---|
name | String | The name of the branch to delete |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X DELETE -d name=mybranch http://localhost/api/strider-cd/strider/branches
Updates the branch order for a project.
PUT /:org/:repo/branches
Name | Type | Description |
---|---|---|
branches | String | The new branch order, comma delimited |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X PUT -d branches=master,testing http://localhost/api/strider-cd/strider/branches
Add a new collaborator to a repository/project.
POST /:org/:repo/collaborators
Name | Type | Description |
---|---|---|
String | Email address to add. If the user is not registered with Strider, we will send them an invite. If they are already registered, they will receive a notification of access. |
|
access | Number | Access level to grant to the new collaborator. This can be |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X GET -d '{"email":"new_guy@strider-cd.com", "access":2}' http://localhost/api/strider-cd/strider/collaborators
Remove a collaborator from a repository/project.
DELETE /:org/:repo/collaborators
Name | Type | Description |
---|---|---|
String | Email address to remove from the repo/project. |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X DELETE -d '{"email":"old_guy@strider-cd.com"}' http://localhost/api/strider-cd/strider/collaborators
Gets a list of collaborators for a project
GET /:org/:repo/collaborators
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X GET http://localhost/api/strider-cd/strider/collaborators
Return JSON object containing the most recent build status for each configured repo This function is used to build the main dashboard status page. The result is separated into {public: [], yours: []}
.
Note: the private ones are just ones that the current user is a collaborator on and are not necessarily private
GET /api/jobs
CURL Example:
curl -X GET http://localhost/api/jobs
Executes a strider test and, optionally, deployment.
POST /:org/:repo/start
Name | Type | Description |
---|---|---|
type | String | Denotes the type of job to run. This can be "TEST_ONLY", which indicates that only the test stages of the job should be executed or "TEST_AND_DEPLOY", which indicates that all stages should be executed. Default value: TEST_ONLY |
branch | String | Indicates which branch configuration should be executed. Default value: master |
message | String | An optional message to include as the title of the execution. Default value: Manually Retesting/Redeploying |
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X POST http://localhost/api/strider-cd/strider/start
Get the provider config for the specified project
GET /:org/:repo/provider
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X GET http://localhost:3000/strider-cd/strider/provider
Update a project's provider
POST /:org/:repo/provider
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X POST http://localhost:3000/strider-cd/strider/provider
Clears/invalidates the cache for a project.
DELETE /:org/:repo/cache
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X DELETE http://localhost/api/strider-cd/strider/cache
Create a new project for a repo.
PUT /:org
Name | Type | Description |
---|---|---|
name | String | The name of the new branch |
display_name | String | Human-readable project name |
display_url | String | The URL for the repo (e.g. Github homepage) |
public | Boolean | Whether this project is public or not. Default value: false |
prefetch_config | Boolean | Whether the strider.json should be fetched in advance. Default value: true |
account | String | The ID of provider account |
repo_id | String | The ID of the repo |
provider | Object | A json object with 'id' and 'config' properties. |
Deletes a repository/project. Also archives all jobs (marks as archived in DB which makes them hidden).
DELETE /:org/:repo
Name | Type | Description |
---|---|---|
org | String | The organization name for the project. This is usually a GitHub user or organization name (e.g. "strider" in "strider-cd/strider") but may vary from one project provider to another. (as another example, in GitLab this refers to the repository's "group"). |
repo | String | The project's repository name. |
CURL Example:
curl -X DELETE http://localhost/api/strider-cd/strider
Creates a new user session after validating an email address and password pair.
POST /api/session
Name | Type | Description |
---|---|---|
String | The email address to login as (which is used as the username). |
|
password | String | The user's password. |
CURL Example:
curl -X POST -d email=me@me.com -d password=mypass http://localhost/api/session
Gets the current session information
GET /api/session
CURL Example:
curl -X GET http://localhost/api/session