Skip to content

Commit d4e4e8a

Browse files
committed
Updated API from documentation release
1 parent 603e489 commit d4e4e8a

File tree

11 files changed

+45
-42
lines changed

11 files changed

+45
-42
lines changed

api-specs/api/examples/api-client-created.example.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

api-specs/api/examples/api-client.example.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3+
"name": "admin-client",
4+
"scope": "manage_project:{projectKey}",
5+
"secret": "{{client-secret}}",
6+
"createdAt": "2025-10-20T14:30:00.000Z",
7+
"accessTokenValiditySeconds": 3600,
8+
"refreshTokenValiditySeconds": 31536000
9+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "api-client-name",
3-
"scope": "view_products:{projectKey}",
2+
"name": "admin-client",
3+
"scope": "manage_project:{projectKey}",
44
"accessTokenValiditySeconds": 3600,
55
"refreshTokenValiditySeconds": 31536000
66
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3+
"name": "admin-client",
4+
"scope": "manage_project:{projectKey}",
5+
"createdAt": "2025-10-20T14:30:00.000Z",
6+
"lastUsedAt": "2025-11-12",
7+
"accessTokenValiditySeconds": 3600,
8+
"refreshTokenValiditySeconds": 31536000
9+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"limit": 20,
3+
"offset": 0,
4+
"count": 1,
5+
"total": 1,
6+
"results": [
7+
{
8+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
9+
"name": "admin-client",
10+
"scope": "manage_project:{projectKey}",
11+
"createdAt": "2025-10-20T14:30:00.000Z",
12+
"lastUsedAt": "2025-11-12",
13+
"accessTokenValiditySeconds": 3600,
14+
"refreshTokenValiditySeconds": 31536000
15+
}
16+
]
17+
}

api-specs/api/examples/api-clients.example.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

api-specs/api/resources/api-clients.raml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ get:
1414
200:
1515
body:
1616
application/json:
17-
example: !include ../examples/api-clients.example.json
17+
example: !include ../examples/api-client/ApiClientPagedQueryResponse.json
1818
head:
1919
displayName: Check if ApiClient exists by Query Predicate
2020
securedBy: [oauth_2_0: { scopes: ['view_api_clients:{projectKey}'] }]
@@ -32,12 +32,12 @@ post:
3232
securedBy: [oauth_2_0: { scopes: ['manage_api_clients:{projectKey}'] }]
3333
body:
3434
application/json:
35-
example: !include ../examples/api-client-create.example.json
35+
example: !include ../examples/api-client/ApiClientDraft.json
3636
responses:
3737
201:
3838
body:
3939
application/json:
40-
example: !include ../examples/api-client-created.example.json
40+
example: !include ../examples/api-client/ApiClient.json
4141

4242
/{ID}:
4343
(methodName): withId
@@ -53,7 +53,7 @@ post:
5353
200:
5454
body:
5555
application/json:
56-
example: !include ../examples/api-client.example.json
56+
example: !include ../examples/api-client/ApiClientNoSecret.json
5757
type: ApiClient
5858
head:
5959
displayName: Check if ApiClient exists by ID
@@ -66,5 +66,5 @@ post:
6666
200:
6767
body:
6868
application/json:
69-
example: !include ../examples/api-client.example.json
69+
example: !include ../examples/api-client/ApiClientNoSecret.json
7070
type: ApiClient

api-specs/api/types/api-client/ApiClient.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(package): ApiClient
33
displayName: ApiClient
44
type: object
5+
example: !include ../../examples/api-client/ApiClient.json
56
properties:
67
id:
78
type: string

api-specs/api/types/api-client/ApiClientDraft.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(package): ApiClient
33
displayName: ApiClientDraft
44
type: object
5+
example: !include ../../examples/api-client/ApiClientDraft.json
56
properties:
67
name:
78
type: string

0 commit comments

Comments
 (0)