-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmarc-specifications.yaml
65 lines (64 loc) · 1.88 KB
/
marc-specifications.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
openapi: 3.0.0
info:
title: quickMARC MARC Specifications
version: 1.0
servers:
- url: /marc-specifications/
paths:
/{recordType}/{fieldTag}:
get:
tags:
- marc-specifications
responses:
'200':
description: MARC specification successfully retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/marcSpec'
'400':
description:
Bad request, e.g. malformed request body or query parameter.
Details of the error (e.g. name of the parameter or line/character number
with malformed data) provided in the response.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: MARC specification with a given recordType and fieldTag not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: Internal server error, e.g. due to misconfiguration
content:
application/json:
schema:
$ref: '#/components/schemas/error'
description: Get MARC specification by recordType and fieldTag
operationId: getMarcSpecification
parameters:
- name: recordType
in: path
required: true
description: Record type
schema:
type: string
enum: [bibliographic,holdings,authority]
example: bibliographic
- name: fieldTag
in: path
required: true
description: Field's tag
schema:
type: string
pattern: ^[0-9]{3}$
example: 008
components:
schemas:
error:
type: object
marcSpec:
$ref: schemas/common.yaml#/marcSpecification