This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit b67a919a7a48f01a624033596c0f7301487cf02e
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Wed May 27 11:05:25 2020 +0200

    Map .rawjson to the default GET servlet and use .json for our queries
---
 .../initial-content/apps/samples/article/{gql.json.gql => json.gql}  | 0
 .../SLING-INF/initial-content/content/graphql-website-demo.html      | 4 ++--
 .../src/main/resources/features/feature-graphql-example-website.json | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/gql.json.gql
 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/json.gql
similarity index 100%
rename from 
org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/gql.json.gql
rename to 
org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/json.gql
diff --git 
a/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
index d0acdc0..1b70d0c 100644
--- 
a/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
+++ 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
@@ -25,9 +25,9 @@
 
         <ul>
           <li>
-            <a 
href="/content/articles/news/willow-mclaughlin-on-the-capacitor-of-back-end-similique-voluptas-aka-http.gql.json">
+            <a 
href="/content/articles/news/willow-mclaughlin-on-the-capacitor-of-back-end-similique-voluptas-aka-http.json">
               Content aggregation using a server-side GraphQL query</a> 
-              (raw json data <a 
href="/content/articles/news/willow-mclaughlin-on-the-capacitor-of-back-end-similique-voluptas-aka-http.json">here</a>)
+              (raw json data <a 
href="/content/articles/news/willow-mclaughlin-on-the-capacitor-of-back-end-similique-voluptas-aka-http.rawjson">here</a>)
               <br/>
               The corresponding scripts are in the <a 
href="/bin/browser.html/apps/samples/article">/apps/samples/article</a> folder.
           </li>
diff --git 
a/org.apache.sling.graphql.samples.website/src/main/resources/features/feature-graphql-example-website.json
 
b/org.apache.sling.graphql.samples.website/src/main/resources/features/feature-graphql-example-website.json
index abc9030..7b0fd60 100644
--- 
a/org.apache.sling.graphql.samples.website/src/main/resources/features/feature-graphql-example-website.json
+++ 
b/org.apache.sling.graphql.samples.website/src/main/resources/features/feature-graphql-example-website.json
@@ -24,6 +24,11 @@
     "org.reactivestreams:reactive-streams:jar:1.0.2",
     "org.apache.sling:org.apache.sling.servlet-helpers:jar:1.3.0"
   ],
+  "configurations":{
+    "org.apache.sling.servlets.get.DefaultGetServlet" : {
+      "aliases" : [ "json:rawjson" ]
+    }
+  },
   "repoinit:TEXT|true":[
     "create path (nt:unstructured) /graphql",
     "set ACL for everyone",

Reply via email to