-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
87 lines (85 loc) · 1.99 KB
/
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
86
87
swagger: "2.0"
info:
description: "Basic Encryption/Decryption Service"
version: "1.0.0"
title: "DP HSM Crypto Service"
contact:
email: "[email protected]"
host: "testhosts.com"
basePath: "/api/vault/v1"
schemes:
- "https"
paths:
/crypto/encrypt:
post:
tags:
- "encrypt"
summary: "Encrypt Base 64 Message"
description: ""
operationId: "encrypt"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "Encryption request message."
required: true
schema:
$ref: "#/definitions/plaintext-payload"
responses:
200:
description: Decrypted message.
schema:
$ref: '#/definitions/encrypted-payload'
405:
description: "Invalid input"
/crypto/decrypt:
post:
tags:
- "decrypt"
summary: "Decrypt Base 64 Message"
description: ""
operationId: "decrypt"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "Decryption request message."
required: true
schema:
$ref: "#/definitions/encrypted-payload"
responses:
200:
description: Decrypted message.
schema:
$ref: '#/definitions/plaintext-payload'
405:
description: "Invalid input"
definitions:
plaintext-payload:
type: "object"
required:
- "application"
- "plaintextB64"
properties:
application:
type: "string"
plaintextB64:
type: string
format: byte
encrypted-payload:
type: "object"
required:
- "application"
- "encryptedB64"
properties:
application:
type: "string"
encryptedB64:
type: string
format: byte