From 6764601c57191ba503777ef0d5d9e809fda0e5f2 Mon Sep 17 00:00:00 2001 From: gfoo Date: Wed, 21 Mar 2018 08:16:12 +0100 Subject: [PATCH] added html method dropdown --- src/app/app.component.html | 22 ++++++++++++++++------ src/app/app.component.ts | 7 ++++++- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index e265971..c294f65 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -26,22 +26,23 @@
Query
- -
+
@@ -56,8 +57,17 @@
Query
- -
+
+ +
+ +
+
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 59c772c..a149a19 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -29,6 +29,9 @@ CONSTRUCT { ?s a knora-api:Resource . ?s a ll:FreeContent . }`; + availableMethods = ['POST sparql-query', 'POST json', 'GET']; + httpMethod; + isLaunched = false; jsonResult = null; rawResult = null; @@ -51,6 +54,8 @@ CONSTRUCT { }; } + console.log(this.httpMethod); + this.jsonResult = null; this.rawResult = null; this.isLaunched = true; @@ -61,7 +66,7 @@ CONSTRUCT { encodeURIComponent(this.knarql), httpOptions ) - // .delay(3000) + //.delay(3000) .timeout(30000) .subscribe( res => {