Skip to content

OS-245 updating CRV datafordeler endpoint#29

Open
stankut wants to merge 3 commits intomainfrom
f/cvr_datafordeler
Open

OS-245 updating CRV datafordeler endpoint#29
stankut wants to merge 3 commits intomainfrom
f/cvr_datafordeler

Conversation

@stankut
Copy link
Copy Markdown
Contributor

@stankut stankut commented Mar 30, 2026

Link to ticket

OS2Forms/os2forms#248

Description

Replacing the existing Datafordeler endpoint with a new endpoint based on GraphQL.

Additional comments or questions

This is a new of a kind Datafordeler webservice integration that is based on API key, and not the certificate as it used to.

That is why the architecture is changed a bit. Bear in mind, I deliberately decided not do put anything if the parent class and wait until have more example of the new Datafordeler webservices. After that the pattern will be more prominent, which will allow us to move the repetitive/shared features into the parent class

@Anna-itk
Copy link
Copy Markdown

Anna-itk commented Apr 7, 2026

@stankut will you please add jekuaitk as reviewer on this pr?

@stankut stankut requested a review from jekuaitk April 7, 2026 08:09
Copy link
Copy Markdown
Contributor

@jekuaitk jekuaitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The before code allowed the use of a key. This is no longer the case

Other than that the GraphQL endpoint modifications looks good!

->format('Y-m-d\T00:00:00\Z');

$query = <<<GRAPHQL
{ CVR_Virksomhed(first: 1, virkningstid: "{$virkningstid}", where: { CVRNummer: { eq: {$cvr} } }) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we ensure/validate that this is indeed a CVR-number, i.e. 8 digits?

Comment on lines 8 to +9
## [Unreleased]
* Datafordeler CRV service endpoint update - GraphQL.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## [Unreleased]
* Datafordeler CRV service endpoint update - GraphQL.
## [Unreleased]
* Datafordeler CVR service endpoint update - GraphQL.

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

Successfully merging this pull request may close these issues.

Ændringer på datafordeler.dk - fremover skal den moderniserede Datafordeler benyttes

3 participants