Skip to content

Commit 0ee437f

Browse files
Merge pull request #16 from data4knowledge/sprint-3-1-1
Updated USDM_API
2 parents f27ea31 + 9fe92da commit 0ee437f

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

docs/USDM_API.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Simple API for DDF",
55
"description": "A simple TransCelerate Digital Data Flow (DDF) Study Definitions Repository API.",
6-
"version": "1.15 Provisional (0.36)"
6+
"version": "2.1 Provisional (0.36)"
77
},
88
"paths": {
99
"/v2/studyDefinitions": {
@@ -152,7 +152,7 @@
152152
"content": {
153153
"application/json": {
154154
"schema": {
155-
"$ref": "#/components/schemas/Study"
155+
"$ref": "#/components/schemas/Wrapper"
156156
}
157157
}
158158
}
@@ -209,7 +209,7 @@
209209
"schema": {
210210
"type": "array",
211211
"items": {
212-
"$ref": "#/components/schemas/Study"
212+
"$ref": "#/components/schemas/Wrapper"
213213
},
214214
"title": "Response Read Study History V2 Studydefinitions Studyid History Get"
215215
}
@@ -1896,6 +1896,18 @@
18961896
"type"
18971897
],
18981898
"title": "ValidationError"
1899+
},
1900+
"Wrapper": {
1901+
"properties": {
1902+
"study": {
1903+
"$ref": "#/components/schemas/Study"
1904+
}
1905+
},
1906+
"type": "object",
1907+
"required": [
1908+
"study"
1909+
],
1910+
"title": "Wrapper"
18991911
}
19001912
}
19011913
},

docs/USDM_API.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
description: >-
55
A simple TransCelerate Digital Data Flow (DDF) Study Definitions Repository
66
API.
7-
version: 1.15 Provisional (0.36)
7+
version: 2.1 Provisional (0.36)
88
paths:
99
/v2/studyDefinitions:
1010
post:
@@ -108,7 +108,7 @@ paths:
108108
content:
109109
application/json:
110110
schema:
111-
$ref: '#/components/schemas/Study'
111+
$ref: '#/components/schemas/Wrapper'
112112
'400':
113113
status_code: string
114114
detail: string
@@ -147,7 +147,7 @@ paths:
147147
schema:
148148
type: array
149149
items:
150-
$ref: '#/components/schemas/Study'
150+
$ref: '#/components/schemas/Wrapper'
151151
title: >-
152152
Response Read Study History V2 Studydefinitions Studyid
153153
History Get
@@ -1258,6 +1258,14 @@ components:
12581258
- msg
12591259
- type
12601260
title: ValidationError
1261+
Wrapper:
1262+
properties:
1263+
study:
1264+
$ref: '#/components/schemas/Study'
1265+
type: object
1266+
required:
1267+
- study
1268+
title: Wrapper
12611269
tags:
12621270
- name: Production
12631271
description: Routes that form the production specification.

0 commit comments

Comments
 (0)