-
Notifications
You must be signed in to change notification settings - Fork 9
/
contracts.yaml
68 lines (68 loc) · 1.87 KB
/
contracts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
openapi: 3.0.0
info:
title: Contracts
version: v1
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://{hostname}/contract-api/v1
x-akamai:
auth-type: EDGE_GRID
file-path: contracts.yaml
paths:
/contracts/identifiers:
get:
operationId: get-contract-ids
summary: List contracts
tags:
- Contracts
description: |
Get the list of contracts that a user has access to.
parameters:
- $ref: parameters/depth-query.yaml
responses:
200:
description: |
The response provides a list of contracts.
content:
application/json:
example:
$ref: examples/contract-identifiers-list-200.json
schema:
$ref: schemas/contract-identifiers-200.yaml
400:
$ref: errors/400.yaml
401:
$ref: errors/401.yaml
/contracts/{contractId}/products/summaries:
parameters:
- $ref: parameters/contractId-path.yaml
get:
operationId: get-contract-product-summaries
summary: List products per contract
tags:
- Products
description: |
Get the IDs and names of the products associated with a contract for the time frame selected.
parameters:
- $ref: parameters/from-query.yaml
- $ref: parameters/to-query.yaml
responses:
200:
description: |
The response provides a list of products.
content:
application/json:
example:
$ref: examples/product-summaries-200.json
schema:
$ref: schemas/product-summaries-200.yaml
400:
$ref: errors/400.yaml
401:
$ref: errors/401.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml