API Doc

Route Sandard

The routes are standardized with this rule:

Find all

GET /:role/:resources

Ex: /developer/projects

Find one by id

GET /:role/:resources/:id

Ex: /admin/projects/1

Create

POST /:role/:resources

Ex: /admin/projects

Update

PATCH /:role/:resources/:id/:field

Ex: /admin/projects/1/name

Delete

Ex: /admin/projects

Body standard

For a write request, the payload should follow this:

Error message standard

The error messages are written in upper case and snake case

Ex: PROJECT_NAME_REQUIRED

Authentication

Drawing
Worfklow

Authentication

post
Body
objectOptionalExample: {"auth":{"username":"{{username}}","password":"{{password}}"}}
Responses
chevron-right
200

Successful response

application/json
post
/api/auth/token
200

Successful response

This endpoint return a access token.

Keep it and send it in Authorization header for all secured endpoint

UserInfo

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

Successful response

application/json
get
/api/user/info
200

Successful response

Non standard endpoint

Launch a build from project

@Return executor id

LaunchBuildByProjectId

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
projectIdintegerRequiredExample: 3
Body
objectOptionalExample: {"build":{"ignore_steps":[]}}
Responses
chevron-right
200

Successful response

application/json
post
/api/developer/builds/{projectId}
200

Successful response

@Return queued tasks

GetQueueds

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

Successful response

application/json
get
/api/developer/builds/queueds
200

Successful response

@Return executed build

GetExecuteds

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

Successful response

application/json
get
/api/developer/builds/executeds
200

Successful response

Check if notification configuration working

@Return 200, even if the email is not sent

TestEmail

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
recipientstringRequiredExample: romainlavabre98@gmail.com
Body
Responses
chevron-right
200

Successful response

application/json
post
/api/admin/config/mail/test/{recipient}
200

Successful response

Ping, healtcheck

@Return void

Ping

get
Responses
chevron-right
200

Successful response

application/json
get
/api/guest/ping
200

Successful response

@Return pagined project list

ProjectPagination

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageintegerOptionalExample: 1
orderBystringOptionalExample: DESC
Responses
chevron-right
200

Successful response

application/json
get
/api/developer/paginations/project
200

Successful response

@Return pagined developer list

DeveloperPagination

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageintegerOptionalExample: 1
orderBystringOptionalExample: DESC
Responses
chevron-right
200

Successful response

application/json
get
/api/developer/paginations/developer
200

Successful response

@Return pagined secret list

SecretPagination

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageintegerOptionalExample: 1
orderBystringOptionalExample: DESC
Responses
chevron-right
200

Successful response

application/json
get
/api/developer/paginations/secret
200

Successful response

Last updated