generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d2c003
commit a225369
Showing
9 changed files
with
74 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Access | ||
|
||
To use the API you will need a JSON Web Token (JWT) which can be obtained from the `/token` endpoint. | ||
|
||
You will need to send a `POST` request with the following headers: | ||
|
||
```json | ||
{ | ||
"accept": "application/json", | ||
"Content-Type": "application/x-www-form-urlencoded" | ||
} | ||
``` | ||
|
||
and body: | ||
|
||
```json | ||
{ | ||
"grant_type": "password", | ||
"username": "string", | ||
"password": "string", | ||
"scope": "", | ||
"client_id": "string", | ||
"client_secret": "string" | ||
} | ||
``` | ||
|
||
The `/token` endpoint generates the required access token to allow a user to access the service. When submitting other requests, the request needs to contain this authorisation bearer token. | ||
|
||
All access tokens are valid for 30 minutes on the API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Support | ||
--- | ||
|
||
## Support | ||
|
||
This API is maintained by the Civil Legal Advice team. | ||
|
||
If you require support please reach out to `#laa-cla-dev` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Test Environments | ||
--- | ||
|
||
## Test Environments | ||
|
||
We plan on supporting the following test environment, with endpoints which will mirror production. | ||
|
||
``` | ||
www.staging.civil-case-api.cloud-platform.service.justice.gov.uk/ | ||
``` | ||
|
||
To integrate with this environment you will require test credentials. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters