[api] [export] The export API now has an endpoint to fetch entries from inside an extraction directly.
parent
bbc351536b
commit
6cfd454f8d
@ -0,0 +1,36 @@
|
|||||||
|
get:
|
||||||
|
operationId: exportsDownloadPerTable
|
||||||
|
tags:
|
||||||
|
- Exports
|
||||||
|
summary: Download one CSV table from an available export
|
||||||
|
parameters:
|
||||||
|
- name: agb
|
||||||
|
in: path
|
||||||
|
description: The AGB code of the practice for the export file you want to download.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: ../schemas/agb.yaml
|
||||||
|
- name: filename
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: |-
|
||||||
|
The name of the file as provided by the `/exports/available` endpoint.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: tablename
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: |-
|
||||||
|
The name of one of the tables in the export as provided by the `/exports/available` endpoint's `tables` list.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: |-
|
||||||
|
Fetches the requested table from the HIS export.
|
||||||
|
|
||||||
|
Note that the response will have the content type of the request resource (usually `text/csv`) even if the requester's `Accept` header does not indicate this mime type is supported.
|
||||||
|
'401':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
|
||||||
|
'403':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'
|
||||||
Loading…
Reference in New Issue