Gravitate-Health / fhir-connector

FHIR connector example
Apache License 2.0
0 stars 2 forks source link

Create API for connector to run connectors on demand. #18

Closed gmej closed 5 months ago

gmej commented 5 months ago

New feature available: running connectors on demand via the connector API. @joofio you are going to like this very much.

Check the API definition here: https://gravitate-health.lst.tfo.upm.es/swagger-fosps/?urls.primaryName=FHIR%20Connector#/

List available connectors:

curl --location 'https://gravitate-health.lst.tfo.upm.es/connector/api/connectors/list'

Run a connector:

curl --location --request POST 'https://gravitate-health.lst.tfo.upm.es/connector/api/connectors/fhir-connector-git-ips/run'

Like lenses and preprocessors, FOSPS now automatically discovers future deployments of new connectors.

gmej commented 5 months ago

We can close this as completed, it's already implemented.

gmej commented 5 months ago

I have protected both /connector/api/connectors/list and /api/connectors/CONNECTOR_NAME/run endpoints with authentication, to avoid strange things, as those endpoints execute services in the backend.

joofio commented 5 months ago

how can i test?

gmej commented 5 months ago

New feature available: running connectors on demand via the connector API. @joofio you are going to like this very much.

Check the API definition here: https://gravitate-health.lst.tfo.upm.es/swagger-fosps/?urls.primaryName=FHIR%20Connector#/

List available connectors:

curl --location 'https://gravitate-health.lst.tfo.upm.es/connector/api/connectors/list'

Run a connector:

curl --location --request POST 'https://gravitate-health.lst.tfo.upm.es/connector/api/connectors/fhir-connector-git-ips/run'

Like lenses and preprocessors, FOSPS now automatically discovers future deployments of new connectors.

Look this. We have three connectors availables for now, named:

joofio commented 5 months ago

Tested and seems ok! Great