From 763e9aec6a1b2f7562c0d8f4123459217a560507 Mon Sep 17 00:00:00 2001 From: Doris Lam Date: Tue, 10 Sep 2024 13:41:56 -0700 Subject: [PATCH 1/2] handle locks path --- README.md | 5 +++-- public/index.html | 7 +++++++ src/server.ts | 6 +++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c1eef1e..146d095 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ vr install Define a `SPARQL_ENDPOINT` environment variable that binds a **pattern** for the URL. The server will make the following substitutions in the pattern: - `${org}` -- replaced with the target `orgId` the user is querying - `${repo}` -- replaced with the target `repoId` the user is querying + - `${branchesLocks}` -- replaced with 'branches' or 'locks' - `${branch}` -- replaced with the target `branchId` the user is querying For example: @@ -85,9 +86,9 @@ vr serve -c context.json -s schema.graphql By default, the server attempts to bind to port `3001`. -The GraphQL endpoint will be available (via POST requests) at: `/orgs/${org}/repos/${repo}/branches/${branch}/graphql` +The GraphQL endpoint will be available (via POST requests) at: `/orgs/${org}/repos/${repo}/${branchesLocks}/${branch}/graphql` -Additionally, a GraphiQL interface is exposed at: `/orgs/${org}/repos/${repo}/branches/${branch}/` +Additionally, a GraphiQL interface is exposed at: `/orgs/${org}/repos/${repo}/${branchesLocks}/${branch}/` ## Documentation diff --git a/public/index.html b/public/index.html index 95192a6..814b6e4 100644 --- a/public/index.html +++ b/public/index.html @@ -44,6 +44,13 @@

Flexo GraphQL Service

Repo: +