initial
This commit is contained in:
58
openapi.yaml
Normal file
58
openapi.yaml
Normal file
@ -0,0 +1,58 @@
|
||||
openapi: 3.0.0
|
||||
|
||||
info:
|
||||
title: PDB API
|
||||
version: "0.0.2"
|
||||
|
||||
paths:
|
||||
/pdb/v2/test1:
|
||||
get:
|
||||
tags: [ "Regular" ]
|
||||
operationId: Regular.test1all
|
||||
summary: Returns all entries from table test1
|
||||
responses:
|
||||
200:
|
||||
description: Here are your test1 items
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Test1"
|
||||
404:
|
||||
description: No test1 items available
|
||||
/pdb/v2/test1/{id}:
|
||||
get:
|
||||
tags: [ "Regular" ]
|
||||
operationId: Regular.test2byid
|
||||
summary: Returns one entry from table test1 by id
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
200:
|
||||
description: Here is your test1 item
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Test1"
|
||||
404:
|
||||
description: No such test1 item available
|
||||
|
||||
components:
|
||||
schemas:
|
||||
Test1:
|
||||
description: A test1 item
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
txt:
|
||||
type: string
|
||||
nr:
|
||||
type: integer
|
Reference in New Issue
Block a user