-
Notifications
You must be signed in to change notification settings - Fork 2
/
api-spec.yaml
64 lines (64 loc) · 1.92 KB
/
api-spec.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.3
info:
title: SLUG Match
description: Match a pair of SLUGs
version: 0.0.1
servers:
- url: 'http://localhost:8080'
tags:
- name: SLUG Match
description: Match patient and donor SLUGs
paths:
/match:
post:
tags:
- SLUG Match
operationId: api.slug_match_controller
summary: Match SLUGs
description: |
Given a SLUG(Single Locus Unphased Genotype) in GL String,
calculate if they match.
requestBody:
content:
application/json:
schema:
properties:
patient_slug:
description: Patient SLUG in GL String
type: string
example: "HLA-A*13:02+HLA-A*30:01"
donor_slug:
description: Donor SLUG in GL String
type: string
example: "HLA-A*13:02+HLA-A*30:01"
responses:
200:
description: SLUG Match Result
content:
application/json:
schema:
type: object
properties:
matched:
description: Match Occurred ?
type: string
example: "Matched"
patient_slug:
description: Patient SLUG in GL String
type: string
example: "HLA-A*13:02+HLA-A*30:01"
donor_slug:
description: Donor SLUG in GL String
type: string
example: "HLA-A*13:02+HLA-A*30:01"
400:
description: Invalid GL String
content:
application/json:
schema:
type: object
properties:
message:
description: Describes what went wrong
type: string
example: "Invalid HLA locus"