Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /v1/server/findByIk #28

Open
nikzen opened this issue Nov 27, 2024 · 4 comments
Open

GET /v1/server/findByIk #28

nikzen opened this issue Nov 27, 2024 · 4 comments

Comments

@nikzen
Copy link
Contributor

nikzen commented Nov 27, 2024

  /v1/server/findByIk:
    get:
      tags:
        - lookUpServer
      summary: "Resolve an IK number to the associated TI-Messenger server name."
      parameters:
        - in: query
          name: ikNumber
          description: "IK number to look up."
          required: true
          schema:
            type: string
      responses:
        "200":
          description: "OK"
          content:
            application/json:
              schema:
                type: object
                required:
                  - serverName
                properties:
                  serverName:
                    type: string
                    description: "The TI-Messenger server name for the given IK number."
                    example: "gematiker-kk.de"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "404":
          $ref: "#/components/responses/NotFound"

This endpoint will return a domain which matches to the ik number. This information is stored on the federationlist. Currently there is no test environment for the federation list and also the schema provided by gematik (link) is not updated. To be able to implement this, we need to use the openapi spec, there they have the new definition (link).

This endpoint should only be activated for tim-pro mode.

@nico-famedly
Copy link
Member

To be able to do the reverse lookup, we need this info to be part of the federation list. Otherwise we would have to query every server for their ikNumber, afaik. What's the state on getting the federation list schema updated?

@Johennes
Copy link

Upstream tracking issue: gematik/api-vzd#149

Disclaimer: I don't currently know if the format in the linked PR is actually correct.

@nico-famedly
Copy link
Member

Ah, perfect! I didn't expect to see you here, but thanks a lot for the update! :)

1 similar comment
@nico-famedly
Copy link
Member

Ah, perfect! I didn't expect to see you here, but thanks a lot for the update! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants