server url placeholder in spec file
This commit is contained in:
parent
231471c382
commit
c6d4a48b8e
4
ENV
4
ENV
@ -3,7 +3,3 @@ export PACKAGE_NAME
|
|||||||
|
|
||||||
ROUTE_PREFIX="pdb/v2"
|
ROUTE_PREFIX="pdb/v2"
|
||||||
export ROUTE_PREFIX
|
export ROUTE_PREFIX
|
||||||
|
|
||||||
# Database__InfoFile=../../../databaseInfo.json
|
|
||||||
# export Database__InfoFile
|
|
||||||
|
|
||||||
|
127
openapi.yaml
127
openapi.yaml
@ -1,25 +1,13 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.3
|
||||||
|
|
||||||
info:
|
info:
|
||||||
title: Generic Database API Service
|
title: Generic Database API Service
|
||||||
version: "2.0.0"
|
version: "2.0.0"
|
||||||
|
|
||||||
|
servers:
|
||||||
|
- url: INSERT_SERVER_URL_HERE
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
# /pdb/v2/test1:
|
|
||||||
# post:
|
|
||||||
# tags: [ "Regular" ]
|
|
||||||
# operationId: Regular.test1insert
|
|
||||||
# summary: Inserts an item into table test1
|
|
||||||
# requestBody:
|
|
||||||
# description: test1
|
|
||||||
# content:
|
|
||||||
# application/json:
|
|
||||||
# schema:
|
|
||||||
# $ref: "#/components/schemas/test1"
|
|
||||||
# responses:
|
|
||||||
# 201:
|
|
||||||
# description: Your items has been inserted
|
|
||||||
/pdb/v2/productionOrder/{productionOrderNumber}:
|
/pdb/v2/productionOrder/{productionOrderNumber}:
|
||||||
get:
|
get:
|
||||||
tags: [ "Regular" ]
|
tags: [ "Regular" ]
|
||||||
@ -210,115 +198,6 @@ paths:
|
|||||||
$ref: "#/components/responses/clientSideError"
|
$ref: "#/components/responses/clientSideError"
|
||||||
500:
|
500:
|
||||||
$ref: "#/components/responses/serverSideError"
|
$ref: "#/components/responses/serverSideError"
|
||||||
# /pdb/v2/runDataById/{runId}:
|
|
||||||
# get:
|
|
||||||
# tags: [ "Regular" ]
|
|
||||||
# operationId: Regular.runDataById
|
|
||||||
# summary: Returns runData entries
|
|
||||||
# description:
|
|
||||||
# STATEMENTBEGIN
|
|
||||||
# SELECT run_id,
|
|
||||||
# message,
|
|
||||||
# system_serial_number,
|
|
||||||
# electronic_serial_number,
|
|
||||||
# timestamp,
|
|
||||||
# machine_name,
|
|
||||||
# appname,
|
|
||||||
# appversion
|
|
||||||
# FROM pdb_doc.runs
|
|
||||||
# WHERE run_id = @runId
|
|
||||||
# STATEMENTEND
|
|
||||||
# parameters:
|
|
||||||
# - name: runId
|
|
||||||
# in: path
|
|
||||||
# required: true
|
|
||||||
# schema:
|
|
||||||
# type: string
|
|
||||||
# responses:
|
|
||||||
# 200:
|
|
||||||
# description: Here are your runData items
|
|
||||||
# content:
|
|
||||||
# application/json:
|
|
||||||
# schema:
|
|
||||||
# type: array
|
|
||||||
# items:
|
|
||||||
# $ref: "#/components/schemas/runData"
|
|
||||||
# 400:
|
|
||||||
# $ref: "#/components/responses/clientSideError"
|
|
||||||
# 500:
|
|
||||||
# $ref: "#/components/responses/serverSideError"
|
|
||||||
# /pdb/v2/resultsDataById/{runId}:
|
|
||||||
# get:
|
|
||||||
# tags: [ "Regular" ]
|
|
||||||
# operationId: Regular.resultsDataById
|
|
||||||
# summary: Returns resultsData entries
|
|
||||||
# description:
|
|
||||||
# STATEMENTBEGIN
|
|
||||||
# SELECT run_Id,
|
|
||||||
# name,
|
|
||||||
# type,
|
|
||||||
# objNr,
|
|
||||||
# subNr,
|
|
||||||
# value
|
|
||||||
# FROM pdb_doc.results
|
|
||||||
# WHERE run_id = @runId
|
|
||||||
# STATEMENTEND
|
|
||||||
# parameters:
|
|
||||||
# - name: runId
|
|
||||||
# in: path
|
|
||||||
# required: true
|
|
||||||
# schema:
|
|
||||||
# type: string
|
|
||||||
# responses:
|
|
||||||
# 200:
|
|
||||||
# description: Here are your resultsData items
|
|
||||||
# content:
|
|
||||||
# application/json:
|
|
||||||
# schema:
|
|
||||||
# type: array
|
|
||||||
# items:
|
|
||||||
# $ref: "#/components/schemas/resultsData"
|
|
||||||
# 400:
|
|
||||||
# $ref: "#/components/responses/clientSideError"
|
|
||||||
# 500:
|
|
||||||
# $ref: "#/components/responses/serverSideError"
|
|
||||||
# /pdb/v2/runDataBySystemSerialNumber/{runId}:
|
|
||||||
# get:
|
|
||||||
# tags: [ "Regular" ]
|
|
||||||
# operationId: Regular.runDataBySystemSerialNumber
|
|
||||||
# summary: Returns runData entries
|
|
||||||
# description:
|
|
||||||
# STATEMENTBEGIN
|
|
||||||
# SELECT run_id,
|
|
||||||
# message,
|
|
||||||
# system_serial_number,
|
|
||||||
# electronic_serial_number,
|
|
||||||
# timestamp,
|
|
||||||
# machine_name,
|
|
||||||
# appname,
|
|
||||||
# appversion
|
|
||||||
# FROM pdb_doc.runs
|
|
||||||
# WHERE system_serial_number = @systemSerialNumber
|
|
||||||
# STATEMENTEND
|
|
||||||
# parameters:
|
|
||||||
# - name: runId
|
|
||||||
# in: path
|
|
||||||
# required: true
|
|
||||||
# schema:
|
|
||||||
# type: string
|
|
||||||
# responses:
|
|
||||||
# 200:
|
|
||||||
# description: Here are your runData items
|
|
||||||
# content:
|
|
||||||
# application/json:
|
|
||||||
# schema:
|
|
||||||
# type: array
|
|
||||||
# items:
|
|
||||||
# $ref: "#/components/schemas/runData"
|
|
||||||
# 400:
|
|
||||||
# $ref: "#/components/responses/clientSideError"
|
|
||||||
# 500:
|
|
||||||
# $ref: "#/components/responses/serverSideError"
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
responses:
|
responses:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user