From 5eeb7a79e60acccc32c033e1d2780281abc97bbe Mon Sep 17 00:00:00 2001 From: Dmitriy Novikov <dmitrii_novikov1@epam.com> Date: Wed, 23 Jun 2021 11:24:02 +0000 Subject: [PATCH] GCP Clean up default config (GONRG-2599) --- docs/tutorial/gcp/Partition.md | 5 +++-- .../partition-gcp/src/main/resources/application.properties | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/gcp/Partition.md b/docs/tutorial/gcp/Partition.md index f19acfae1..3aa26159a 100644 --- a/docs/tutorial/gcp/Partition.md +++ b/docs/tutorial/gcp/Partition.md @@ -83,7 +83,7 @@ A sample output is shown below. }, "crmAccountID": { "sensitive": false, - "value": "["osdu","osdu"]" + "value": ["osdu","osdu"] } } ``` @@ -94,6 +94,7 @@ A sample output is shown below. ### Create a new partition<a name="create-partition"></a> This api can be used to create a new partition. A plausible use case would be partition provisioning infrastructure script. +The default namespace value of Cloud Datastore is `partition`. ``` POST api/partition/v1/partitions/{partitionId} ``` @@ -136,7 +137,7 @@ curl --request POST \ }, "crmAccountID": { "sensitive": false, - "value": "["mypartition","mypartition"]" + "value": ["mypartition","mypartition"] } } }' diff --git a/provider/partition-gcp/src/main/resources/application.properties b/provider/partition-gcp/src/main/resources/application.properties index ac69c0dbb..aea6a99cf 100644 --- a/provider/partition-gcp/src/main/resources/application.properties +++ b/provider/partition-gcp/src/main/resources/application.properties @@ -5,7 +5,7 @@ server.servlet.contextPath=/api/partition/v1 server.port=8080 springfox.documentation.swagger.v2.path=/api-docs authorize-api=https://os-entitlements-gcp-jvmvia5dea-uc.a.run.app/entitlements/v1 -spring.cloud.gcp.datastore.namespace=partitiontest +spring.cloud.gcp.datastore.namespace=partition #ACCEPT_HTTP=true cache-expiration=1 -- GitLab