Authorization

All API request requires Authorization header. This is described here.

---
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: https://innkjopsposter.api.stage.boknett.cloud
    description: Stage
  - url: https://innkjopsposter.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