Authentication
The API uses Basic Authentication to authenticate requests. Authentication is enabled when application setting SETTINGS__ANONYMOUS_ACCESS is set to false
and will require a username and password that matche a user account which can be created via:
- rake task
rake user:create
(see rake tasks) - api endpoint
POST /api/v2/users
(see add user)
example:
sh
curl -H "Content-Type: application/json" -H "Authorization: Basic $(echo -n 'username:password' | base64)" https://example.com/api/v2/projects