Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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: httphttps://localhost:8080/q/openapiinnkjopsposter.api.stage.boknett.cloud
    description: Stage
  - url: httphttps://localhost:8080/q/2innkjopsposter.api.boknett.cloud
    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

...