forked from e-gov/RIHA-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapproval.yaml
56 lines (52 loc) · 1.32 KB
/
approval.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
swagger: '2.0'
info:
version: "0.0.1"
title: RIHA Approval API
description: Liides kooskõlastusandmete saamiseks RIHA Kooskõlastaja komponendilt
license:
name: MIT
schemes:
- http
consumes:
- application/json
produces:
- application/json
paths:
/approvals:
get:
description: Tagastab nimekirja teadaolevalt kinnitatud infosüsteemidest
responses:
'200':
description: Kõik läks hästi
schema:
type: array
items:
$ref: '#/definitions/approval'
/{shortname}:
get:
description: Tagastab kooskõlastusinfo konkreetse infosüsteemi kohta
parameters:
- name: shortname
in: path
description: Viidatava infosüsteemi lühinimi
required: true
type: string
responses:
'200':
description: Kooskõlastus on olemas
schema:
$ref: '#/definitions/approval'
'404':
description: Sellenimelise süsteemi kohta ei ole kooskõlastusinfot
definitions:
approval:
type: object
description: Süsteemi kinnituse olek
properties:
status:
type: string
description: Staatuse tekstiline kirjeldus
timestamp:
type: string
format: date-time
description: Staatuse saamise aeg