forked from moov-io/watchman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi-admin.yaml
129 lines (125 loc) · 3.92 KB
/
openapi-admin.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
openapi: 3.0.2
info:
description: |
Watchman is an HTTP API and Go library to download, parse and offer search functions over numerous trade sanction lists from the United States, European Union governments, agencies, and non profits for complying with regional laws. Also included is a web UI and async webhook notification service to initiate processes on remote systems.
version: v1
title: Watchman Admin API
contact:
url: https://github.com/moov-io/watchman
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: http://localhost:9094
description: Local development
tags:
- name: Admin
description: Watchman endpoints which are only meant to be exposed for admin dashboards and operations.
paths:
/version:
get:
tags: ["Admin"]
summary: Get Version
description: Show the current version of Watchman
operationId: getVersion
responses:
'200':
description: The current version running
content:
text/plain:
schema:
type: string
example: v0.13.1
/data/refresh:
post:
tags: ["Admin"]
summary: Download and reindex all data sources
operationId: refreshData
responses:
'200':
description: Data successfully refreshed
content:
application/json:
schema:
$ref: "#/components/schemas/DataRefresh"
'400':
description: See error message
content:
application/json:
schema:
$ref: 'https://raw.githubusercontent.com/moov-io/api/master/openapi-common.yaml#/components/schemas/Error'
/debug/sdn/{sdnId}:
get:
tags: ["Admin"]
summary: Debug SDN
description: Get an SDN and search index debug information
operationId: debugSDN
parameters:
- name: sdnId
in: path
description: SDN ID
required: true
schema:
type: string
example: 564dd7d1
responses:
'200':
description: SDN with debug information
content:
application/json:
schema:
$ref: "#/components/schemas/DebugSDN"
'400':
description: See error message
content:
application/json:
schema:
$ref: 'https://raw.githubusercontent.com/moov-io/api/master/openapi-common.yaml#/components/schemas/Error'
components:
schemas:
SDNDebugMetadata:
properties:
indexedName:
type: string
description: Exact text stored in our index used for string ranking
example: mohammad moghisseh
parsedRemarksId:
type: string
description: ID parsed from remarks field
example: '3603251708570001'
DebugSDN:
properties:
SDN:
$ref: './openapi.yaml#/components/schemas/OfacSDN'
debug:
$ref: '#/components/schemas/SDNDebugMetadata'
DataRefresh:
properties:
SDNs:
type: integer
description: Count of OFAC SDNs after index
example: 13131
altNames:
type: integer
description: Count of OFAC alternate names after index
example: 322
addresses:
type: integer
description: Count of OFAC Addresses after index
example: 4155
sectoralSanctions:
type: integer
description: Count of SSI entities after index
example: 667
deniedPersons:
type: integer
description: Count of BSL denied persons after index
example: 5889
bisEntities:
type: integer
description: Count of BIS entities after index
example: 6831
timestamp:
type: string
format: date-time
example: 2006-01-02T15:04:05Z07:00