...
Confluence open api |
---|
---
openapi: 3.0.3
info:
title: innkjopsposter API
version: 1.0.0
paths:
/poster:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/InnkjopspostDTO'
responses:
"200":
description: OK
"401":
description: Unauthorized
"500":
description: Internal error
servers:
- url: http://localhost:8080/q/openapi
description: Stage
- url: http://localhost:8080/q/2
description: Prod
components:
schemas:
EksemplarInfo:
required:
- pengeEnhet
- pris
type: object
properties:
avdelingsKode:
type: string
hylle:
type: string
leverandorKode:
type: string
medieKategori:
type: string
pengeEnhet:
pattern: \S
type: string
nullable: false
plassering:
type: string
pris:
pattern: \S
type: string
nullable: false
InnkjopspostDTO:
required:
- biblioteksNummer
- eksemplarInfo
- isbn
- tittel
- tittelNummer
type: object
properties:
biblioteksNummer:
pattern: \S
type: string
nullable: false
eksemplarInfo:
minItems: 1
type: array
items:
$ref: '#/components/schemas/EksemplarInfo'
isbn:
pattern: \S
type: string
nullable: false
ordningsOrd:
type: string
tittel:
pattern: \S
type: string
nullable: false
tittelNummer:
pattern: \S
type: string
nullable: false
|
...