59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
|
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
|