OS-245 updating CRV datafordeler endpoint#29
Conversation
|
@stankut will you please add jekuaitk as reviewer on this pr? |
| ->format('Y-m-d\T00:00:00\Z'); | ||
|
|
||
| $query = <<<GRAPHQL | ||
| { CVR_Virksomhed(first: 1, virkningstid: "{$virkningstid}", where: { CVRNummer: { eq: {$cvr} } }) { |
There was a problem hiding this comment.
Should we ensure/validate that this is indeed a CVR-number, i.e. 8 digits?
| ## [Unreleased] | ||
| * Datafordeler CRV service endpoint update - GraphQL. |
There was a problem hiding this comment.
| ## [Unreleased] | |
| * Datafordeler CRV service endpoint update - GraphQL. | |
| ## [Unreleased] | |
| * Datafordeler CVR service endpoint update - GraphQL. |
@jekuaitk the old implementation of the key module usage was limited to a custom key of type For the this new GraphQL endpoint implementation none of that is relevant, as it is API key based. So a simple key string. My plan was to keep it low profile for now, and use the simple logic to make it work, meaning just providing the API key as a string in the setting. As also mentioned above i would like to wait for another Datafordeler implementation before making any architectural decision/rules regarding the implementation. We need to see the common pattern. But when that comes, i think we would need to rewrite the DatafordelerBase by completely - geting rid of the hardcoded |
Makes sense. As long as we keep this is mind im good with this! |
|
@jekuaitk thanks for a review, i went though the comments, please have a look again |
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