openapi: 3.0.1
info:
  version: IMEV 3.0.1
  title: REV API - v5
  description: Open API Specificatie Register Externe Veiligheidsrisico's
  contact:
    name: Rijkswaterstaat
    url: 'https://iplo.nl/formulieren/formulier-rev/'
    email: fb.rev@rws.nl

servers:
  - url: 'https://rev-portaal.nl/api/rev/v5'

tags:
  - name: Locaties van activiteiten met extern veiligheidsrisico
  - name: Gebouwen of locaties
  - name: Beheer
  - name: Conformiteitstoets
paths:
  '/LocatieEVActiviteiten':
    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van actuele LocatieEVActiviteiten
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/LinksContainer'
              example:
                _embedded:
                  results:
                    - registrationId: 0
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      link: string
                _links:
                  self: string
                  next: string
                  previous: string
                  last: string
                  first: string
                page:
                  number: 0
                  size: 0
                  totalElements: 0
                  totalPages: 0
          headers:
            available-slots:
              schema:
                type: string
              description: Aantal vrije verwerkingsslots
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '500':
          description: Interne serverfout
    post:
      security:
        - oauth2Schema: []
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Toevoegen van een LocatieEVActiviteit
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: validateOnly
          in: query
          description: Alleen valideren van de request
          required: false
          schema:
            type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: 'imev30-schema.yaml#/components/schemas/LocatieEVActiviteit'
            example:
              idNummeraanduidingBAG: 382512-5798556879
              idNummeraanduidingBAGExploitant: string
              bedrijfsnaam: Test
              eigenaar: TestEigenaar
              geometrie:
                type: Polygon
                coordinates:
                  - - - 155000
                      - 446000
                    - - 155000
                      - 447000
                    - - 156000
                      - 447000
                    - - 156000
                      - 446000
                    - - 155000
                      - 446000
              kvkNummerAanvrager: 12345
              kvkNummerExploitant:
                - 12345
              locatieomschrijving: 'TestLocatie'
              naamExploitant: Tester
              omschrijving: Tester
              vestigingsnummerAanvrager: 12345
              vestigingsnummerExploitant: 12345
              beginGeldigheid: 01-01-1970
              bronhouder: REVBRN
              bronhoudercodeOverheid: gm1680
              bronhoudercodeGeenOverheid: NWS
              bronhoudercode: EQN1OP
              bronobjectID: '|cZ1E=:3'
              documentInfo:
                link: https://example.com
                naam: example
              eindGeldigheid: 19-01-2038
              identificatie:
                namespace: string
                lokaalID: string
                versie: string
              id: NL.IMEV.KD_FYS3.543678_1
              voertUit:
                - balActiviteit:
                    - M[8Xuls[ea([4H-c-9y^4fz,$S"of2S4IG}/@NofL0?=3Jt~f% h"/*s#n]?llYwf;[ag'RiO#;3_CX_k[X#_k+O~Z7&x?*~
                  basisVergunningNummer: string
                  bevoegdGezag: rijk
                  datumLaatsteWijziging: string
                  datumVergunningOfMelding: string
                  omschrijving: .w2~`fV.wyO8=u2=Ah,S5? >#C5
                  vergunningsPlicht: true
                  heeft:
                    - bovengronds: true
                      geometrie:
                        type: Point
                        coordinates:
                          - 155000
                          - 446000
                      inhoud: 99999
                      oppervlakte: 9999
                      typeOpslagReferentie: opslagplaats
                      omschrijving: I%wj]Qi1L/E~wN&r+f)-B':o,$wRK[*[_^YJ(Iq[_dDm1ZGjH!,pdc//$"4Pa/?)C'DMfmv"r$["v
                      beginGeldigheid: string
                      bronhouder: iQXW
                      bronhoudercodeOverheid: gm1680
                      bronhoudercodeGeenOverheid: 41KMBX
                      bronhoudercode: 2BYH
                      bronobjectID: 66Q>lxX?'RE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+F^}_"R}hkZv7vKwn>5$/o%=Cr8n%%Yhw>`oBTifR`86xS$(OL/T=%5Ip6%bx:/pP+E*).pE\QUr(womAM2zpN=B)q{";<.Z2FmiK{eG.)=vAmor0T#[L^[h'']xtvzF5=.!4$^@i(X]+dB;ek3!-''D;VdwUn,{SpH<Q,Y9F(]kKvV"$71/1pEd90]9NEK)a;@tfT/MdvnG6tCeLQw?#(R?8@Re{t IjPp+Ef`dM%EL#E8& mx%F1QGm''M{[/Mq4S]XzIc&%''x;+Gj/mq.wO8>bY1da$um!,vRSQ^ds]4+\?}''7q$Pz]''p_b[9%a[4Df5!Z#%D_/j75&vN~`W$ o1;6&wWmn8CyXY&y1=hOdJ}D9Wz^O<5CxmRmF()^^:ZNP>^KxOqYd{%WKYjm[arm`''y11BzzNxn+ZBF/`f"q,@]1pDcd9nM2b\a3FbrmA]{uE<G7v]''U?6u2JXTm719bM:M=*ZL7>yE&H7?r;|_|.+Gqb]U6g}oLr$bL}MsR!O4Ly&@+)6rut-.t<?~8PHKq%@F`0}f>By|Gp2%"i EIC,vvk''_>CS@()(q\J''uL{siD?&Ts<TfvWZY62(F0lGg`.^-m%S8=Pn?3pC]AgkO+VFX<&^!sMwqsfXWI|iI[H"#D:W #}eE\$S`NK5yFP1QSZZsA}3ruRw:/:sFt,_a,j"SesBKSZHQOnEw.5(IDnzu?uwL?GPrZ9z BI!D%''EQOX?_Vm!<5I~\j]~DnmqfQ:w}#v%~{?$1djNNV[ Wp{`W2z-sJsN#hI!ad=Sl]J64B@XTKj B%s6Z,q~Kn*6ZqIixuOzLlOpH54}Arg'
                        naam: _SWJbv2Qf;
                      eindGeldigheid: string
                      identificatie:
                        namespace: string
                        lokaalID: string
                        versie: string
                      id: NL.IMEV.KD_FYS3.543678_1
                      resulteertIn:
                        - string
                      entityType: OpslagReferentie
                  beginGeldigheid: 01-01-1970
                  bronhouder: REVBRN
                  bronhoudercodeOverheid: gm1680
                  bronhoudercodeGeenOverheid: NWS
                  bronhoudercode: EQN1OP
                  bronobjectID: '4^- #C4TGBjn)S*t~rD,,sy'
                  documentInfo:
                    link: https://example.com
                    naam: example
                  eindGeldigheid: 19-01-2038
                  identificatie:
                    namespace: string
                    lokaalID: string
                    versie: string
                  id: NL.IMEV.KD_FYS3.543678_1
                  entityType: ActiviteitRestcategorie
              entityType: LocatieActiviteit
      responses:
        '201':
          description: Aangemaakt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/Link'
              example:
                registrationId: 0
                identificatie: NL.IMEV.KD_FYS3.543678_1
                link: string
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string
        '401':
          description: Niet geautoriseerd
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string

        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string
        '429':
          description: Aanvraag kan tijdelijk niet in ontvangst worden genomen
        '500':
          description: Interne serverfout
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationReport'
              example:
                message: string
                errors:
                  - key: string
                    location: string
                    error: string
                    identification: string
                context:
                  path: string
                  method: string
                  parameter: string


  '/LocatieEVActiviteiten/zoeken':
    post:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Zoeken naar LocatieEVActiviteiten op basis van geometrie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: 'imev30-oas-schema.yaml#/components/schemas/FeatureTypesSearch'
            example:
              geometrie:
                type: 'Polygon'
                coordinates: [
                  [
                    [
                        173903.90509178204,
                        501818.2926427146
                    ],
                    [
                        174546.51795921923,
                        501552.0551750271
                    ],
                    [
                        174780.42175584938,
                        502094.9761040956
                    ],
                    [
                        175022.25445696118,
                        502006.0786999746
                    ],
                    [
                        174679.61510295272,
                        501168.75722378725
                    ],
                    [
                        173786.04659098282,
                        501535.60507322167
                    ],
                    [
                        173903.90509178204,
                        501818.2926427146
                    ]
                  ]
                ]
                featureTypes: ['TankenCNG']
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/LinksContainer'
              example:
                _embedded:
                  results:
                    - registrationId: 0
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      link: string
                _links:
                  self: string
                  next: string
                  previous: string
                  last: string
                  first: string
                page:
                  number: 0
                  size: 0
                  totalElements: 0
                  totalPages: 0
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/featureTypes/zoeken':
    post:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Zoeken naar featureTypes op basis van NEN3610ID
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: _expand
          in: query
          description: 'Toon detail informatie van de featureTypes'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: 'imev30-oas-schema.yaml#/components/schemas/FeatureTypesSearch'
            example:
              geometrie:
                type: 'Polygon'
                coordinates: [
                  [
                    [
                      173903.90509178204,
                      501818.2926427146
                    ],
                    [
                      174546.51795921923,
                      501552.0551750271
                    ],
                    [
                      174780.42175584938,
                      502094.9761040956
                    ],
                    [
                      175022.25445696118,
                      502006.0786999746
                    ],
                    [
                      174679.61510295272,
                      501168.75722378725
                    ],
                    [
                      173786.04659098282,
                      501535.60507322167
                    ],
                    [
                      173903.90509178204,
                      501818.2926427146
                    ]
                  ]
                ]
                featureTypes: [ 'TankenCNG' ]
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/FeatureTypesContainer'
              example:
                _embedded:
                  results:
                    - link: string
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      featureType: string
                      geometrie:
                        type: Point
                        coordinates:
                          - 155000
                          - 446000
                      beginGeldigheid: string
                      eindGeldigheid: string
                      corrected: true
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van een specifiek featureType
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: query
          description: 'NEN3610ID identificatie van het featureType.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: tijdstipRegistratie
          in: query
          description: 'Toon featureTypes geregistreerd op of voor peildatumtijd'
          required: false
          schema:
            type: string
            format: dateTime
        - name: tijdstipGeldigheid
          in: query
          description: 'Toon featureTypes geldig op peildatumtijd'
          required: false
          schema:
            type: string
            format: dateTime
        - name: includeCorrected
          in: query
          description: 'Toon administratieve correcties'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: _expand
          in: query
          description: 'Toon detail informatie van de featureTypes'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/FeatureTypesContainer'
              example:
                _embedded:
                  results:
                    - link: string
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      featureType: string
                      geometrie:
                        type: Point
                        coordinates:
                          - 155000
                          - 446000
                      beginGeldigheid: string
                      eindGeldigheid: string
                      corrected: true
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/{identificatie}':
    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van een LocatieEVActiviteit
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: registrationId
          in: query
          description: 'Match with id of registration'
          example: '15363'
          required: false
          schema:
            type: integer

      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-schema.yaml#/components/schemas/LocatieEVActiviteit'
              example:
                idNummeraanduidingBAG: 382512-5798556879
                idNummeraanduidingBAGExploitant: string
                bedrijfsnaam: Test
                eigenaar: TestEigenaar
                geometrie:
                  type: Polygon
                  coordinates:
                    - - - 155000
                        - 446000
                      - - 155000
                        - 447000
                      - - 156000
                        - 447000
                      - - 156000
                        - 446000
                      - - 155000
                        - 446000
                kvkNummerAanvrager: 12345
                kvkNummerExploitant:
                  - 12345
                locatieomschrijving: 'TestLocatie'
                naamExploitant: Tester
                omschrijving: Tester
                vestigingsnummerAanvrager: 12345
                vestigingsnummerExploitant: 12345
                beginGeldigheid: 01-01-1970
                bronhouder: REVBRN
                bronhoudercodeOverheid: gm1680
                bronhoudercodeGeenOverheid: NWS
                bronhoudercode: EQN1OP
                bronobjectID: '|cZ1E=:3'
                documentInfo:
                  link: https://example.com
                  naam: example
                eindGeldigheid: 19-01-2038
                identificatie:
                  namespace: string
                  lokaalID: string
                  versie: string
                id: NL.IMEV.KD_FYS3.543678_1
                voertUit:
                  - balActiviteit:
                      - M[8Xuls[ea([4H-c-9y^4fz,$S"of2S4IG}/@NofL0?=3Jt~f% h"/*s#n]?llYwf;[ag'RiO#;3_CX_k[X#_k+O~Z7&x?*~
                    basisVergunningNummer: string
                    bevoegdGezag: rijk
                    datumLaatsteWijziging: string
                    datumVergunningOfMelding: string
                    omschrijving: .w2~`fV.wyO8=u2=Ah,S5? >#C5
                    vergunningsPlicht: true
                    heeft:
                      - bovengronds: true
                        geometrie:
                          type: Point
                          coordinates:
                            - 155000
                            - 446000
                        inhoud: 99999
                        oppervlakte: 9999
                        typeOpslagReferentie: opslagplaats
                        omschrijving: I%wj]Qi1L/E~wN&r+f)-B':o,$wRK[*[_^YJ(Iq[_dDm1ZGjH!,pdc//$"4Pa/?)C'DMfmv"r$["v
                        beginGeldigheid: string
                        bronhouder: iQXW
                        bronhoudercodeOverheid: gm1680
                        bronhoudercodeGeenOverheid: 41KMBX
                        bronhoudercode: 2BYH
                        bronobjectID: 66Q>lxX?'REy6~R7[$P]rfo/kiI+.gJH%]o]
                        documentInfo:
                          link: '5[P+d<;M>2%?GE|IaP=":z83@ ?E f;*cz`''Rc4OVE!~a`#3A.35aMYmV @+/J"~yBL7d8[dR|cxFbkSjY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xtvzF5=.!4$^@i(X]+dB;ek3!-''D;VdwUn,{SpH<Q,Y9F(]kKvV"$71/1pEd90]9NEK)a;@tfT/MdvnG6tCeLQw?#(R?8@Re{t IjPp+Ef`dM%EL#E8& mx%F1QGm''M{[/Mq4S]XzIc&%''x;+Gj/mq.wO8>bY1da$um!,vRSQ^ds]4+\?}''7q$Pz]''p_b[9%a[4Df5!Z#%D_/j75&vN~`W$ o1;6&wWmn8CyXY&y1=hOdJ}D9Wz^O<5CxmRmF()^^:ZNP>^KxOqYd{%WKYjm[arm`''y11BzzNxn+ZBF/`f"q,@]1pDcd9nM2b\a3FbrmA]{uE<G7v]''U?6u2JXTm719bM:M=*ZL7>yE&H7?r;|_|.+Gqb]U6g}oLr$bL}MsR!O4Ly&@+)6rut-.t<?~8PHKq%@F`0}f>By|Gp2%"i EIC,vvk''_>CS@()(q\J''uL{siD?&Ts<TfvWZY62(F0lGg`.^-m%S8=Pn?3pC]AgkO+VFX<&^!sMwqsfXWI|iI[H"#D:W #}eE\$S`NK5yFP1QSZZsA}3ruRw:/:sFt,_a,j"SesBKSZHQOnEw.5(IDnzu?uwL?GPrZ9z BI!D%''EQOX?_Vm!<5I~\j]~DnmqfQ:w}#v%~{?$1djNNV[ Wp{`W2z-sJsN#hI!ad=Sl]J64B@XTKj B%s6Z,q~Kn*6ZqIixuOzLlOpH54}Arg'
                          naam: _SWJbv2Qf;
                        eindGeldigheid: string
                        identificatie:
                          namespace: string
                          lokaalID: string
                          versie: string
                        id: NL.IMEV.KD_FYS3.543678_1
                        resulteertIn:
                          - string
                        entityType: OpslagReferentie
                    beginGeldigheid: 01-01-1970
                    bronhouder: REVBRN
                    bronhoudercodeOverheid: gm1680
                    bronhoudercodeGeenOverheid: NWS
                    bronhoudercode: EQN1OP
                    bronobjectID: '4^- #C4TGBjn)S*t~rD,,sy'
                    documentInfo:
                      link: https://example.com
                      naam: example
                    eindGeldigheid: 19-01-2038
                    identificatie:
                      namespace: string
                      lokaalID: string
                      versie: string
                    id: NL.IMEV.KD_FYS3.543678_1
                    entityType: ActiviteitRestcategorie
                entityType: LocatieActiviteit
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout
    put:
      security:
        - oauth2Schema: []
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Wijzigen van een LocatieEVActiviteit
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: registrationId
          in: query
          description: 'Match with id of registration'
          example: '15363'
          required: false
          schema:
            type: integer
        - name: validateOnly
          in: query
          description: Alleen valideren van de request
          required: false
          schema:
            type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: 'imev30-schema.yaml#/components/schemas/LocatieEVActiviteit'
            example:
              idNummeraanduidingBAG: 382512-5798556879
              idNummeraanduidingBAGExploitant: string
              bedrijfsnaam: Test
              eigenaar: TestEigenaar
              geometrie:
                type: Polygon
                coordinates:
                  - - - 155000
                      - 446000
                    - - 155000
                      - 447000
                    - - 156000
                      - 447000
                    - - 156000
                      - 446000
                    - - 155000
                      - 446000
              kvkNummerAanvrager: 12345
              kvkNummerExploitant:
                - 12345
              locatieomschrijving: 'TestLocatie'
              naamExploitant: Tester
              omschrijving: Tester
              vestigingsnummerAanvrager: 12345
              vestigingsnummerExploitant: 12345
              beginGeldigheid: 01-01-1970
              bronhouder: REVBRN
              bronhoudercodeOverheid: gm1680
              bronhoudercodeGeenOverheid: NWS
              bronhoudercode: EQN1OP
              bronobjectID: '|cZ1E=:3'
              documentInfo:
                link: https://example.com
                naam: example
              eindGeldigheid: 19-01-2038
              identificatie:
                namespace: string
                lokaalID: string
                versie: string
              id: NL.IMEV.KD_FYS3.543678_1
              voertUit:
                - balActiviteit:
                    - M[8Xuls[ea([4H-c-9y^4fz,$S"of2S4IG}/@NofL0?=3Jt~f% h"/*s#n]?llYwf;[ag'RiO#;3_CX_k[X#_k+O~Z7&x?*~
                  basisVergunningNummer: string
                  bevoegdGezag: rijk
                  datumLaatsteWijziging: string
                  datumVergunningOfMelding: string
                  omschrijving: .w2~`fV.wyO8=u2=Ah,S5? >#C5
                  vergunningsPlicht: true
                  heeft:
                    - bovengronds: true
                      geometrie:
                        type: Point
                        coordinates:
                          - 155000
                          - 446000
                      inhoud: 99999
                      oppervlakte: 9999
                      typeOpslagReferentie: opslagplaats
                      omschrijving: I%wj]Qi1L/E~wN&r+f)-B':o,$wRK[*[_^YJ(Iq[_dDm1ZGjH!,pdc//$"4Pa/?)C'DMfmv"r$["v
                      beginGeldigheid: string
                      bronhouder: iQXW
                      bronhoudercodeOverheid: gm1680
                      bronhoudercodeGeenOverheid: 41KMBX
                      bronhoudercode: 2BYH
                      bronobjectID: 66Q>lxX?'REy6~R7[$P]rfo/kiI+.gJH%]o]
                      documentInfo:
                        link: '5[P+d<;M>2%?GE|IaP=":z83@ ?E f;*cz`''Rc4OVE!~a`#3A.35aMYmV @+/J"~yBL7d8[dR|cxFbkSjY@oDguW"wNnb*5ecl3Lgkd''d8tr.l+txh=O`F^~CskK29:C4G2T+jkOaimH_gcV$  _Xk?II(Cw%R$6p((04aS;eR`frY'' ^WuV%dV3O~pR 4}cERp?$U[s4U3^gBjRObl#s-wA<h#l|7,O6}.CCM''?%)t}3wWZ}u68A.^|.7[2 )[+,UnE}D;'')z<o_#QnPw0h''#IDUpjB,;NO+Igbn&Q[vBc.3AUf\Wlw_n#V;F6IQdLv4VAxj&5__COrp=?U3OkK.Yzw52){*mPT*@''dBr)m_DE>Ni&~8%Nw&^bdYmLhvOeT-NkK$)E3RN2ibuiP9ai''`rr6j6E-B8W&n}~:l-{)$7R-!MCYrdu CiR{x(5Howjm&k:je|fH#.YKAO NLQKd$fH&x&J#vKB]q8"g>j(qE0Xv0zi&0wA sm02P}.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`0}f>By|Gp2%"i EIC,vvk''_>CS@()(q\J''uL{siD?&Ts<TfvWZY62(F0lGg`.^-m%S8=Pn?3pC]AgkO+VFX<&^!sMwqsfXWI|iI[H"#D:W #}eE\$S`NK5yFP1QSZZsA}3ruRw:/:sFt,_a,j"SesBKSZHQOnEw.5(IDnzu?uwL?GPrZ9z BI!D%''EQOX?_Vm!<5I~\j]~DnmqfQ:w}#v%~{?$1djNNV[ Wp{`W2z-sJsN#hI!ad=Sl]J64B@XTKj B%s6Z,q~Kn*6ZqIixuOzLlOpH54}Arg'
                        naam: _SWJbv2Qf;
                      eindGeldigheid: string
                      identificatie:
                        namespace: string
                        lokaalID: string
                        versie: string
                      id: NL.IMEV.KD_FYS3.543678_1
                      resulteertIn:
                        - string
                      entityType: OpslagReferentie
                  beginGeldigheid: 01-01-1970
                  bronhouder: REVBRN
                  bronhoudercodeOverheid: gm1680
                  bronhoudercodeGeenOverheid: NWS
                  bronhoudercode: EQN1OP
                  bronobjectID: '4^- #C4TGBjn)S*t~rD,,sy'
                  documentInfo:
                    link: https://example.com
                    naam: example
                  eindGeldigheid: 19-01-2038
                  identificatie:
                    namespace: string
                    lokaalID: string
                    versie: string
                  id: NL.IMEV.KD_FYS3.543678_1
                  entityType: ActiviteitRestcategorie
              entityType: LocatieActiviteit
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/Link'
              example:
                registrationId: 0
                identificatie: NL.IMEV.KD_FYS3.543678_1
                link: string
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string
        '401':
          description: Niet geautoriseerd
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
              example:
                title: Bad Request
                status: "400"
                timestamp: string
                message: string
                reports:
                  - message: string
                    errors:
                      - key: string
                        location: string
                        error: string
                        identification: string
                    context:
                      path: string
                      method: string
                      parameter: string
        '429':
          description: Aanvraag kan tijdelijk niet in ontvangst worden genomen
        '500':
          description: Interne serverfout
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationReport'
              example:
                message: string
                errors:
                  - key: string
                    location: string
                    error: string
                    identification: string
                context:
                  path: string
                  method: string
                  parameter: string
    delete:
      security:
        - oauth2Schema: []
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Verwijderen van een LocatieEVActiviteit
      parameters:
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Geen inhoud
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/{identificatie}/historie':
    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van de historie van een LocatieEVActiviteit
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: includeFeatureTypes
          in: query
          description: 'Toon featureTypes in het overzicht'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: includeCorrected
          in: query
          description: 'Toon administratieve correcties in het overzicht'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/HistoryLinksContainer'
              example:
                _embedded:
                  results:
                    - registrationId: 0
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      link: string
                      beginRegistratie: string
                      eindRegistratie: string
                      corrected: true

        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/featureTypes/{identificatie}':
    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van een featureType van een LocatieEVActiviteit
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: featureTypeId
          in: query
          description: 'Match with id of registered FeatureType'
          example: '15363'
          required: false
          schema:
            type: integer

      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/FeatureType'
              example:
                link: string
                identificatie: NL.IMEV.KD_FYS3.543678_1
                featureType: string
                geometrie:
                  type: Point
                  coordinates:
                    - 155000
                    - 446000
                beginGeldigheid: string
                eindGeldigheid: string
                corrected: true

        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/featureTypes/{identificatie}/historie':
    get:
      tags:
        - Locaties van activiteiten met extern veiligheidsrisico
      summary: Ophalen van de historie van een featureType
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: includeCorrected
          in: query
          description: 'Toon administratieve correcties in het overzicht'
          example: 'true'
          required: false
          schema:
            type: boolean
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/HistoryLinksContainer'
              example:
                _embedded:
                  results:
                    - registrationId: 0
                      identificatie: NL.IMEV.KD_FYS3.543678_1
                      link: string
                      beginRegistratie: string
                      eindRegistratie: string
                      corrected: true
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/GebouwenOfLocaties':
    get:
      tags:
        - Gebouwen of locaties
      summary: Ophalen van gebouw of locatie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
        - name: bagdata
          in: query
          description: Voeg BAG eigenschappen toe aan objecten als aanwezig
          required: false
          schema:
            type: boolean
          example: true
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/LinksContainer'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '500':
          description: Interne serverfout
    post:
      security:
        - oauth2Schema: []
      tags:
        - Gebouwen of locaties
      summary: Toevoegen van een gebouw of locatie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: 'imev30-schema.yaml#/components/schemas/GebouwOfLocatie'
      responses:
        '201':
          description: Aangemaakt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/Link'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '429':
          description: Aanvraag kan tijdelijk niet in ontvangst worden genomen
        '500':
          description: Interne serverfout
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationReport'

  '/GebouwenOfLocaties/zoeken':
    post:
      tags:
        - Gebouwen of locaties
      summary: Zoeken naar gebouwen of locaties
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              type: object
              required:
                - geometrie
                - featureType
              properties:
                geometrie:
                  $ref: 'common-schema.yaml#/components/schemas/Geometrie'
                featureType:
                  $ref: 'imev30-oas-schema.yaml#/components/schemas/KglAllowedFeatureTypes'
                tijdstipRegistratie:
                  description: in format YYYY-MM-DDThh:mm:ss
                  type: string
                  format: dateTime
                tijdstipGeldigheid:
                  description: in format YYYY-MM-DDThh:mm:ss
                  type: string
                  format: dateTime
                bronhoudercode:
                  type: string
      responses:
        '200':
          description: Succesvol verwerkt. In de response worden alleen velden teruggegeven die gevuld zijn. Als de queryparameter bagdata=true, zijn BAG eigenschappen (zoals gebruiksdoeleinden) toegevoegd aan de objecten.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: 'imev30-schema.yaml#/components/schemas/GebouwOfLocatie'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/GebouwenOfLocaties/{identificatie}':
    get:
      tags:
        - Gebouwen of locaties
      summary: Ophalen van een gebouw of locatie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: registrationId
          in: query
          description: 'Match with id of registration'
          example: '15363'
          required: false
          schema:
            type: integer
        - name: bagdata
          in: query
          description: Voeg BAG eigenschappen toe aan object als aanwezig
          required: false
          schema:
            type: boolean
          example: true
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-schema.yaml#/components/schemas/GebouwOfLocatie'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout
    put:
      security:
        - oauth2Schema: []
      tags:
        - Gebouwen of locaties
      summary: Wijzigen van een gebouw of locatie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
      requestBody:
        description: Nieuwe entiteit gebouw of locaties
        required: true
        content:
          application/json:
            schema:
              $ref: 'imev30-schema.yaml#/components/schemas/GebouwOfLocatie'
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/Link'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '429':
          description: Aanvraag kan tijdelijk niet in ontvangst worden genomen
        '500':
          description: Interne serverfout
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationReport'

    delete:
      security:
        - oauth2Schema: []
      tags:
        - Gebouwen of locaties
      summary: Verwijderen van een gebouw of locatie
      parameters:
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            $ref: 'common-schema.yaml#/components/schemas/NEN3610ID'
      responses:
        '204':
          description: Geen inhoud
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/GebouwenOfLocaties/{identificatie}/historie':
    get:
      tags:
        - Gebouwen of locaties
      summary: Ophalen van de historie van een Gebouw of Locatie
      parameters:
        - name: Content-Crs
          in: header
          description: Content-Crs
          required: false
          style: simple
          explode: false
          schema:
            type: string
          example: 'EPSG:28992'
        - name: identificatie
          in: path
          description: 'NEN3610ID identificatie van het object.'
          example: 'NL.IMEV.AB12.ABC12345'
          required: true
          schema:
            type: string
        - name: page
          in: query
          description: Page index
          required: false
          schema:
            type: integer
          example: 0
        - name: size
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
          example: 20
        - name: bagdata
          in: query
          description: Voeg BAG eigenschappen toe aan objecten als aanwezig
          required: false
          schema:
            type: boolean
          example: true
      responses:
        '200':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: 'imev30-schema.yaml#/components/schemas/GebouwOfLocatie'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '404':
          description: Niet gevonden
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/overdragen/van/{wasCode}/aan/{wordtCode}':
    post:
      security:
        - oauth2Schema: []
      tags:
        - Beheer
      summary: Wijzigen van eigenaar van object(en) door ADMIN
      parameters:
        - name: wasCode
          in: path
          description: 'Bronhouder code van huidige eigenaar'
          example: 'REVBRN'
          required: true
          schema:
            type: string
        - name: wordtCode
          in: path
          description: 'Bronhouder code van nieuwe eigenaar'
          example: 'NRBVER'
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: 'common-schema.yaml#/components/schemas/NEN3610ID'
              minItems: 1
      responses:
        '202':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/OverdrachtResponse'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/LocatieEVActiviteiten/overdragen/aan/{wordtCode}':
    post:
      security:
        - oauth2Schema: []
      tags:
        - Beheer
      summary: Wijzigen van eigenaar van eigen object(en)
      parameters:
        - name: wordtCode
          in: path
          description: 'Bronhouder code van nieuwe eigenaar'
          example: 'NRBVER'
          required: true
          schema:
            type: string
        - name: reden
          in: query
          description: 'De reden waarom deze activiteit wordt overgedragen'
          example: 'Windturbines vallen niet onder het beheer van de dienst'
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: 'common-schema.yaml#/components/schemas/NEN3610ID'
              minItems: 1
      responses:
        '202':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/OverdrachtResponse'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/GebouwenOfLocaties/overdragen/aan/{wordtCode}':
    post:
      security:
        - oauth2Schema: [ ]
      tags:
        - Beheer
      summary: Wijzigen van eigenaar van kgl object door Bronhouder
      parameters:
        - name: wordtCode
          in: path
          description: 'Bronhouder code van nieuwe eigenaar'
          example: 'NRBVER'
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: 'common-schema.yaml#/components/schemas/NEN3610ID'
              minItems: 1
      responses:
        '202':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/OverdrachtResponse'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout


  '/GebouwenOfLocaties/overdragen/van/{wasCode}/aan/{wordtCode}':
    post:
      security:
        - oauth2Schema: [ ]
      tags:
        - Beheer
      summary: Wijzigen van eigenaar van kgl object(en) door ADMIN
      parameters:
        - name: wasCode
          in: path
          description: 'Bronhouder code van huidige eigenaar'
          example: 'REVBRN'
          required: true
          schema:
            type: string
        - name: wordtCode
          in: path
          description: 'Bronhouder code van nieuwe eigenaar'
          example: 'NRBVER'
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: 'common-schema.yaml#/components/schemas/NEN3610ID'
              minItems: 1
      responses:
        '202':
          description: Succesvol verwerkt
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/OverdrachtResponse'
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
          content:
            application/json:
              schema:
                $ref: 'imev30-oas-schema.yaml#/components/schemas/ValidationResponse'
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/Conformiteitstoets/start':
    post:
      security:
        - oauth2Schema: []
      tags:
        - Conformiteitstoets
      summary: Initialisatie ten behoeve van de conformiteitstoets
      responses:
        '201':
          description: Succesvol verwerkt
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/Conformiteitstoets/resultaat':
    get:
      security:
        - oauth2Schema: []
      tags:
        - Conformiteitstoets
      summary: Valideer de aangeleverde data en genereer rapportage
      responses:
        '201':
          description: Succesvol verwerkt
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

  '/Conformiteitstoets/overzicht':
    get:
      security:
        - oauth2Schema: []
      tags:
        - Conformiteitstoets
      summary: Overzicht van succesvol uitgevoerde conformiteitstoetsen
      responses:
        '201':
          description: Succesvol verwerkt
        '400':
          description: Foute aanvraag, zie foutdetails voor meer
        '401':
          description: Niet geautoriseerd
        '404':
          description: Niet gevonden
        '412':
          description: Niet voldaan aan vooraf gestelde voorwaarde
        '500':
          description: Interne serverfout

components:
  securitySchemes:
    oauth2Schema:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://rev-portaal.nl/auth/realms/REV/protocol/openid-connect/token
          scopes: {}