Skip to content

Latest commit

 

History

History
78 lines (65 loc) · 2.65 KB

README.md

File metadata and controls

78 lines (65 loc) · 2.65 KB

#IRIS EPS

To communicate with the distributed services, IRIS uses its own EPS (endpoint server). The following describes how to install and configure the EPS.

Local development setup

Install EPS

The following steps are necessary:

  • In iris-client-eps directory run docker run -v <Linux Bash: $( pwd ) | Windows: absolute path of iris-client-eps directory>/settings:/app/settings luckylusa/iris-eps-scripts certs to generate certificates for development
  • Run demo-eps config with docker-compose up -d
  • eps-client.clientUrl=https://localhost:5556/jsonrpc should be set in iris-client-bff
  • Please make sure host.docker.internal points to 172.17.0.1 on linux
  • iris-app-api-demo will push a location to location service and will deliver data for any date

Create and change locations in location server

Create demo location by POST to https://localhost:5554/jsonrpc

{
    "method": "ls-1.postLocationsToSearchIndex",
    "id": "1",
    "params": {
        "providerId": "6b3f5dee-acb0-11eb-8529-0242ac130003",
        "locations": [
            {
                "id": "5eddd61036d39a0ff8b11fdb",
                "name": "Restaurant Alberts",
                "contact": {
                    "officialName": "Darfichrein GmbH",
                    "representative": "Silke ",
                    "address": {
                        "street": "Türkenstr. 7",
                        "city": "München",
                        "zip": "80333"
                    },
                    "email": "[email protected]",
                    "phone": "die bleibt privat :-)"
                }
            }
        ]
    },
    "jsonrpc": "2.0"
}

That emulates how the operator would use his eps on port 5554.

Delete location

{
    "method": "deleteLocationFromSearchIndex",
    "id": "1",
    "params": {
        "providerId": "6b3f5dee-acb0-11eb-8529-0242ac130003",
        "locationId": "5eddd61036d39a0ff8b11fdb"
    },
    "jsonrpc": "2.0"
}

Get provider locations

{
    "method": "ls-1.getLocationDetails",
    "id": "1",
    "params": {
        "providerId": "6b3f5dee-acb0-11eb-8529-0242ac130003",
        "locationId": "5eddd61036d39a0ff8b11fdb"
    },
    "jsonrpc": "2.0"
}

Note

Currently providerId is used to identify the provider. That will change soon and the provider will be identified by eps via certificate.

Staging

Todo:

  • Create binary for linux / eps docker image
  • Integrate staging config and certificates to docker image
  • Deployment to staging