-
Notifications
You must be signed in to change notification settings - Fork 1
/
transparency.service.swagger.yaml
85 lines (84 loc) · 2.31 KB
/
transparency.service.swagger.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
openapi: 3.0.1
info:
title: Transparency Log Service
version: 1.0.2
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/TUB-CNPE-TB/transparency-log-service/1.0.1
- url: http://localhost:8080/
paths:
/api/usages:
post:
description: Create/update a usage
requestBody:
content:
application/json;charset=UTF-8:
schema:
$ref: '#/components/schemas/Usage'
responses:
200:
description: ""
/api/usages/batch:
post:
description: Create/update multiple usage
requestBody:
content:
application/json;charset=UTF-8:
schema:
$ref: '#/components/schemas/BatchUsage'
responses:
200:
description: ""
components:
schemas:
BatchUsage:
type: array
items:
$ref: '#/components/schemas/Usage'
Usage:
type: object
properties:
reference:
type: string
format: uuid
description: unique identifier of the request/response (example x-request)
endpoint:
type: object
properties:
service:
type: string
description: destination service name. Take from k8s pod or deployment (idea. env var))
protocol:
type: string
description: example http
method:
type: string
description: example GET, POST
path:
type: string
description: complete path (with query parameters)
fields:
type: array
items:
type: object
properties:
phase:
type: string
enum: [request, response]
type:
type: string
description: format extracted
enum: [properties, json, yaml, xml]
origin:
type: string
enum: [header, body]
path:
type: string
description: parsed expression from the origin (xpath, jsonpath)
count:
type: number
cause:
type: object
additionalProperties:
type: string