Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: File manager Uploading API
description: A simple file manager for uploading and downloading files.
version: 0.0.1
contact:
name: TARDIS
email: tardis@nop.telekom.de
url: https://developer.telekom.de/
license:
name: Apache 2.0
x-api-category: TARDIS
servers:
- url: https://locahost:8080
description: For local development
security:
- bearerAuth: []
tags:
- name: uploading
description: An endpoint to upload new files
paths:
/v1/files/{fileId}:
put:
operationId: uploadFile
summary: Upload a file
description: Uploads a file to the server with the specified Id. The id should follow the convention.
tags:
- uploading
parameters:
- name: fileId
in: path
description: Id of the file, should follow the convention <env>--<group>--<team>--<fileName>
required: true
schema:
type: string
- name: X-File-Content-Type
in: header
description: Content type of the file (e.g., text/yaml, text/json) that will be stored as metadata
required: false
schema:
type: string
- name: X-File-Checksum
in: header
description: Checksum of the file that will be stored as metadata
required: false
schema:
type: string
security:
- bearerAuth: []
requestBody:
$ref: '#/components/requestBodies/FileUploadRequest'
responses:
'200':
$ref: '#/components/responses/FileUploadResponse'
'400':
$ref: '#/components/responses/ErrorResponse'
'500':
$ref: '#/components/responses/ErrorResponse'
components:
schemas:
ApiProblem:
description: Based on https://www.rfc-editor.org/rfc/rfc9457.html
type: object
required:
- type
- status
- title
- detail
properties:
type:
type: string
status:
type: integer
title:
type: string
detail:
type: string
instance:
type: string
responses:
ErrorResponse:
description: In case of any error, this object is returned
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ApiProblem'
FileUploadResponse:
description: Successful upload of a file. Contains the assigned id.
headers:
X-File-Content-Type:
description: Content type of the file as stored in metadata
schema:
type: string
X-File-Checksum:
description: Checksum of the file as stored in metadata
schema:
type: string
content:
application/json:
schema:
type: object
required:
- id
properties:
id:
type: string
requestBodies:
FileUploadRequest:
content:
application/octet-stream:
schema:
type: string
format: binary
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT Bearer token authentication