Skip to content
Snippets Groups Projects
Commit 5bb76b5c authored by Daniel Bimschas's avatar Daniel Bimschas
Browse files

HOLI-2651: add geo api

parent f74ef1c3
No related branches found
No related tags found
No related merge requests found
......@@ -41,3 +41,20 @@ sources:
value: appGoodNews_
includeRootOperations: true
includeTypes: false
- name: geo
handler:
graphql:
endpoint: "{env.GEO_API_URL}"
transforms:
# Prefix for types
- prefix:
mode: wrap
value: Geo_
includeRootOperations: false
includeTypes: true
# Prefix for operations
- prefix:
mode: wrap
value: geo_
includeRootOperations: true
includeTypes: false
......@@ -3,8 +3,8 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} DEBUG=1 mesh dev --port=4000",
"start": "OKUNA_URL=${OKUNA_URL:-https://staging.unified.apis.project-holi.org/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} DEBUG=1 mesh dev --port=4000",
"dev": "OKUNA_URL=${OKUNA_URL:-http://127.0.0.1:8000/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-http://127.0.0.1:8001/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-http://127.0.0.1:8002/graphql} GEO_API_URL=${GEO_API_URL:-http://127.0.0.1:8002/graphql} DEBUG=1 mesh dev --port=4000",
"start": "OKUNA_URL=${OKUNA_URL:-https://staging.unified.apis.project-holi.org/graphql} DONATIONS_API_URL=${DONATIONS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} GOODNEWS_API_URL=${GOODNEWS_API_URL:-https://staging.unified.apis.project-holi.org/graphql} GEO_API_URL=${GEO_API_URL:-https://staging.unified.apis.project-holi.org/graphql} DEBUG=1 mesh dev --port=4000",
"lint": "echo 'nothing to be linted ATM'",
"test": "echo 'unit testing goes here'",
"clean": "echo 'nothing to be done'",
......
......@@ -54,6 +54,10 @@ resource "google_cloud_run_service" "unified_api" {
name = "GOODNEWS_API_URL"
value = local.goodnews_api_url
}
env {
name = "GEO_API_URL"
value = local.geo_api_url
}
resources {
limits = {
......
......@@ -7,4 +7,5 @@ locals {
okuna_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_okuna_common_state.outputs.dns_okuna_domain}/graphql"
donations_api_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_donations_api_common_state.outputs.dns_donations_api_domain}/graphql"
goodnews_api_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_goodnews_api_common_state.outputs.dns_goodnews_api_domain}/graphql"
geo_api_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_geo_api_common_state.outputs.dns_geo_api_domain}/graphql"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment