This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenapi.yaml
104 lines (104 loc) · 2.72 KB
/
openapi.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
openapi: 3.0.0
info:
description: "Simple api for searching for PA Court records"
version: "1.0.0"
title: "DocketScraper API"
license:
name: "MIT"
paths:
/:
get:
responses:
200:
description: "Informs that the application is working"
/searchName/{court}:
summary: "Search MDJ or Common Pleas Court for records associated with a particular person"
post:
parameters:
- in: path
name: court
required: true
schema:
type: string
enum: [MDJ, CP]
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
first_name:
type: string
last_name:
type: string
dob:
type: string
pattern: '^[0-9]{2}\[0-9]{2}/[0-9]{4}$'
description: date, in m/d/y format
example:
first_name: "John"
last_name: "Smith"
dob: "01/01/1990"
responses:
200:
description: "Results of a search for records related to a person"
content:
application/json:
schema:
type: object
properties:
status:
type: string
dockets:
type: array
items:
$ref: '#/components/schemas/Docket'
/lookupDocket/{court}:
summary: Search MDJ or Common Pleas Court for a specific docket number
post:
parameters:
- in: path
name: court
required: true
schema:
type: string
enum: [MDJ, CP]
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
docket_number:
type: string
example:
docket_number: "CP-45-CR-0123456"
responses:
200:
description: Results of a search for a specific docket.
content:
application/json:
schema:
type: object
properties:
status:
type: string
docket:
$ref: "#/components/schemas/Docket"
components:
schemas:
Docket:
type: object
properties:
docket_number:
type: string
docket_sheet_url:
type: string
summary_url:
type: string
caption:
type: string
otn:
type: string