Skip to content

Commit

Permalink
Merge pull request #99 from Onto-Med/98-add-bulk-upload-endpoint
Browse files Browse the repository at this point in the history
98 add bulk upload endpoint
  • Loading branch information
ChristophB authored Nov 29, 2022
2 parents 22f411e + f6d20b0 commit 56cebe1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>care.smith.top</groupId>
<artifactId>top-api</artifactId>
<version>0.5.2</version>
<version>0.5.3</version>

<name>TOP API</name>
<description>REST API of the TOP framework</description>
Expand Down
38 changes: 37 additions & 1 deletion schemas/top-api.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: TOP API
version: 0.5.2
version: 0.5.3
description: 'API to manage phenotypes, repositories, ontologies and organisations and to execute phenotypic queries.'
servers:
- url: 'https://top.imise.uni-leipzig.de/api'
Expand Down Expand Up @@ -798,6 +798,42 @@ paths:
$ref: '#/components/responses/UnexpectedError'
tags:
- entity
'/{organisationId}/{repositoryId}/entity/bulk':
parameters:
- name: organisationId
in: path
required: true
schema:
type: string
- name: repositoryId
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/include'
post:
operationId: bulkUploadEntities
summary: Creates multiple new phenotypes or categories in a repository.
requestBody:
description: List of phenotypes or categories to be created.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Entity'
required: true
responses:
'201':
description: Entities have been created.
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/UnexpectedError'
tags:
- entity
'/{organisationId}/{repositoryId}/root':
parameters:
- name: organisationId
Expand Down

0 comments on commit 56cebe1

Please sign in to comment.