-
Notifications
You must be signed in to change notification settings - Fork 5
/
nhs-cyber-alert.yaml
92 lines (92 loc) · 2.46 KB
/
nhs-cyber-alert.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
88
89
90
91
92
openapi: 3.0.0
info:
title: NHS Cyber Alert API
version: 1.0.0
description: An API for accessing cyber alert information from the UK's National Health Service (NHS)
servers:
- url: https://digital.nhs.uk/restapi/CyberAlert
paths:
/page:
get:
summary: Get a list of cyber alerts
description: Get a list of cyber alerts. Returns 10 items per page.
operationId: getCyberAlertsList
parameters:
- name: _limited
in: query
description: If true, return only a limited subset of the most important fields
schema:
type: string
enum: [true]
- name: page
in: query
description: The number of the page to be returned
schema:
type: integer
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/CyberAlertList"
/single:
get:
summary: Get details of a single NHS cyber alert
description: Get details of a single NHS cyber alert
operationId: getCyberAlertDetails
parameters:
- name: threatid
in: query
description: The threat ID of the alert to be returned, normally formatted AA-1111
schema:
type: string
- name: _limited
in: query
description: If true, return only the basic details of the alert
schema:
type: string
enum: [true]
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/CyberAlert"
components:
schemas:
CyberAlert:
type: object
properties:
threatid:
type: string
title:
type: string
description:
type: string
publisheddate:
type: string
format: date-time
modifieddate:
type: string
format: date-time
affectedproduct:
type: string
url:
type: string
attachmentfilename:
type: string
CyberAlertList:
type: object
properties:
page:
type: integer
total_pages:
type: integer
total_count:
type: integer
alerts:
type: array
items:
$ref: "#/components/schemas/CyberAlert"