Skip to content

Commit 960abca

Browse files
committed
deploy: 08e96fe
1 parent 0dafb48 commit 960abca

File tree

232 files changed

+21601
-48710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+21601
-48710
lines changed

Gemfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
gem "jekyll", "~> 4.2.0"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
gem "rexml", ">= 3.2.5"
14+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
15+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
16+
# gem "github-pages", group: :jekyll_plugins
17+
# If you have any plugins, put them here!
18+
group :jekyll_plugins do
19+
gem "jekyll-feed", "~> 0.12"
20+
gem 'jekyll-asciidoc'
21+
end
22+
23+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
24+
# and associated library.
25+
platforms :mingw, :x64_mingw, :mswin, :jruby do
26+
gem "tzinfo", "~> 1.2"
27+
gem "tzinfo-data"
28+
end
29+
30+
# Performance-booster for watching directories on Windows
31+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
32+
33+
gem 'jekyll-sitemap'

Gemfile.lock

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
asciidoctor (2.0.15)
7+
colorator (1.1.0)
8+
concurrent-ruby (1.1.9)
9+
em-websocket (0.5.2)
10+
eventmachine (>= 0.12.9)
11+
http_parser.rb (~> 0.6.0)
12+
eventmachine (1.2.7-x64-mingw32)
13+
ffi (1.15.3-x64-mingw32)
14+
forwardable-extended (2.6.0)
15+
http_parser.rb (0.6.0)
16+
i18n (1.8.10)
17+
concurrent-ruby (~> 1.0)
18+
jekyll (4.2.0)
19+
addressable (~> 2.4)
20+
colorator (~> 1.0)
21+
em-websocket (~> 0.5)
22+
i18n (~> 1.0)
23+
jekyll-sass-converter (~> 2.0)
24+
jekyll-watch (~> 2.0)
25+
kramdown (~> 2.3)
26+
kramdown-parser-gfm (~> 1.0)
27+
liquid (~> 4.0)
28+
mercenary (~> 0.4.0)
29+
pathutil (~> 0.9)
30+
rouge (~> 3.0)
31+
safe_yaml (~> 1.0)
32+
terminal-table (~> 2.0)
33+
jekyll-asciidoc (3.0.0)
34+
asciidoctor (>= 1.5.0)
35+
jekyll (>= 3.0.0)
36+
jekyll-feed (0.15.1)
37+
jekyll (>= 3.7, < 5.0)
38+
jekyll-sass-converter (2.1.0)
39+
sassc (> 2.0.1, < 3.0)
40+
jekyll-seo-tag (2.7.1)
41+
jekyll (>= 3.8, < 5.0)
42+
jekyll-sitemap (1.4.0)
43+
jekyll (>= 3.7, < 5.0)
44+
jekyll-watch (2.2.1)
45+
listen (~> 3.0)
46+
kramdown (2.3.1)
47+
rexml
48+
kramdown-parser-gfm (1.1.0)
49+
kramdown (~> 2.0)
50+
liquid (4.0.3)
51+
listen (3.6.0)
52+
rb-fsevent (~> 0.10, >= 0.10.3)
53+
rb-inotify (~> 0.9, >= 0.9.10)
54+
mercenary (0.4.0)
55+
minima (2.5.1)
56+
jekyll (>= 3.5, < 5.0)
57+
jekyll-feed (~> 0.9)
58+
jekyll-seo-tag (~> 2.1)
59+
pathutil (0.16.2)
60+
forwardable-extended (~> 2.6)
61+
public_suffix (4.0.6)
62+
rb-fsevent (0.11.0)
63+
rb-inotify (0.10.1)
64+
ffi (~> 1.0)
65+
rexml (3.2.5)
66+
rouge (3.26.0)
67+
safe_yaml (1.0.5)
68+
sassc (2.4.0-x64-mingw32)
69+
ffi (~> 1.9)
70+
terminal-table (2.0.0)
71+
unicode-display_width (~> 1.1, >= 1.1.1)
72+
thread_safe (0.3.6)
73+
tzinfo (1.2.9)
74+
thread_safe (~> 0.1)
75+
tzinfo-data (1.2021.1)
76+
tzinfo (>= 1.0.0)
77+
unicode-display_width (1.7.0)
78+
wdm (0.1.1)
79+
80+
PLATFORMS
81+
x64-mingw32
82+
83+
DEPENDENCIES
84+
jekyll (~> 4.2.0)
85+
jekyll-asciidoc
86+
jekyll-feed (~> 0.12)
87+
jekyll-sitemap
88+
minima (~> 2.5)
89+
rexml (>= 3.2.5)
90+
tzinfo (~> 1.2)
91+
tzinfo-data
92+
wdm (~> 0.1.1)
93+
94+
BUNDLED WITH
95+
2.2.24
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[preface]
2+
= Preface
3+
4+
Viglet Shio CMS (https://viglet.com/shio) is an open source solution (https://github.com/ShioCMS), which allows model content, use graphQL and create site using javascript with native cache and search.
5+
6+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
==== Auto Complete
2+
3+
Returns a term array that starts with the query value.
4+
5+
===== API Endpoint
6+
....
7+
GET http://localhost:2700/api/sn/{{siteName}}/ac
8+
....
9+
10+
===== Path Parameters
11+
[%header,cols=4*]
12+
|===
13+
| Attribute | Required / Optional | Description | Example
14+
| siteName | Required | Site Name | Sample
15+
|===
16+
17+
===== Query String
18+
[%header,cols=5*]
19+
|===
20+
| Attribute | Type | Required / Optional | Description | Example
21+
| q | String| Required | Search Query. | q=foo
22+
| rows | Integer | Optional | Number of rows that query will return. | rows=10
23+
| _setlocale | Boolean | Required | Locale of Semantic Navigation Site | _setlocale=en_US
24+
|===
25+
26+
===== Example - Request
27+
```bash
28+
curl -X 'GET' \
29+
'http://localhost:2700/api/sn/Sample/ac?q=dis&rows=10&_setlocale=en_US' \
30+
-H 'Content-Type: application/json'
31+
```
32+
33+
===== Example - Response
34+
```json
35+
[
36+
"disc",
37+
"discovery"
38+
"disco"
39+
"disney"
40+
]
41+
```
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
==== Detect Language
2+
3+
Detect a language of text was sent.
4+
5+
===== API Endpoint
6+
....
7+
GET http://localhost:2700/api/cognitive/detect-language
8+
....
9+
10+
===== Headers
11+
12+
include::turing-api-headers.adoc[]
13+
14+
===== Query String
15+
[%header,cols=5*]
16+
|===
17+
| Attribute | Type | Required / Optional | Description | Example
18+
| text | String | Required | Text to validated | text=fuu ber
19+
|===
20+
21+
===== Example - Request
22+
```bash
23+
curl -X 'GET' \
24+
'http://localhost:2700/api/cognitive/detect-language?text="Hello World"' \
25+
-H 'Content-Type: application/json' \
26+
-H 'Key: {{Enter your API KEY}}' \
27+
28+
```
29+
30+
===== Example - Response
31+
```json
32+
"en_US"
33+
```
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
==== Spell Check
2+
3+
Corrects text based on the given language.
4+
5+
===== API Endpoint
6+
....
7+
GET http://localhost:2700/api/cognitive/spell-checker/{{locale}}
8+
....
9+
10+
===== Headers
11+
12+
include::turing-api-headers.adoc[]
13+
14+
===== Path Parameters
15+
[%header,cols=5*]
16+
|===
17+
| Attribute | Type | Required / Optional | Description | Example
18+
| locale | String | Required | Locale of Semantic Navigation Site | en_US
19+
|===
20+
21+
===== Query String
22+
[%header,cols=5*]
23+
|===
24+
| Attribute | Type | Required / Optional | Description | Example
25+
| text | String | Required | Text to validated | text=fuu ber
26+
|===
27+
28+
===== Example - Request
29+
```bash
30+
curl -X GET \
31+
"http://localhost:2700/api/cognitive/spell-checker/en_US?text=urange" \
32+
-H "Accept: application/json" \
33+
-H "Key: {{Enter your API KEY}}"
34+
```
35+
36+
===== Example - Response
37+
```json
38+
[
39+
"range",
40+
"orange",
41+
"grange",
42+
"Grange",
43+
"Orange",
44+
"u range"
45+
]
46+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
API headers include the mandatory information you send along with the request URL and body. This information helps provide insights into request context and authorization credentials that, in turn, allows access to protected resources.
2+
3+
[%header,cols=3*]
4+
|===
5+
| Key | Value | Description
6+
| Key | api-key | API key helps authenticate the application with the server. For generating API key, refer to link:/turing/0.3.7/developer-guide/#_generate-an-api-key[Generate an API Key]
7+
| Content-Type | application/json | Content-Type is a representation header that determines the type of data (media/resource) present in the request body
8+
| Accept | application/json | Determines the acceptable response type from the server
9+
|===
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[%header,cols=4*]
2+
|===
3+
| Attribute | Required / Optional | Description | Example
4+
| siteName | Required | Site Name | Sample
5+
|===
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[%header,cols=4*]
2+
|===
3+
| Attribute | Required / Optional | Description | Example
4+
| q | Required | Search Query. | q=foo
5+
| p | Required | Page Number, first page is 1. *DEFAULT: 1* | p=1
6+
| sort | Required | Sort values: `relevance`, `newest` and `oldest`. Or *FIELD*: *SORT* *DEFAULT: relevance* | sort=relevance or sort=title:asc
7+
| fq[] | Optional | Query Field. Filter by field using default operator in configuration or using the `fqOperator`(request) or `fq.op` (query string), using the following pattern: *FIELD*: *VALUE*. | fq[]=title:bar
8+
| fq.and[] | Optional | Query Field. Filter `AND` by field, using the following pattern: *FIELD*: *VALUE*. | fq.and[]=title:bar
9+
| fq.or[] | Optional | Query Field. Filter `OR` by field, using the following pattern: *FIELD*: *VALUE*. | fq.or[]=title:bar
10+
| fq.op | Optional | Query Field Operator. Filter OR by field, Operator values: `AND` and `OR`. | fq.op=AND
11+
| rows | Optional | Number of rows that query will return. *DEFAULT: Behavior Configuration*| rows=10
12+
| _setlocale | Required | Locale of Semantic Navigation Site | _setlocale=en_US
13+
| nfpr | Optional | Disable Auto Correction *DEFAULT: 0* | nfpr=1
14+
| group | Optional | Group by attribute | group=type
15+
|===
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
IMPORTANT: These parameters have precedence over the query string.
3+
4+
[%header,cols=4*]
5+
|===
6+
| Attribute | Type | Required / Optional | Description
7+
| query | String | Required | Search Query.
8+
| page | Integer | Required | Page Number, first page is 1. *DEFAULT: 1*
9+
| sort | String | Required | Sort values: `relevance`, `newest` and `oldest`. Or *FIELD*: *SORT*. *DEFAULT: relevance*
10+
| fq | String | Optional | Query Field. Filter by field using default operator in configuration or using the `fqOperator`(request) or `fq.op` (query string), using the following pattern: *FIELD*: *VALUE*.
11+
| fqAnd | String | Optional | Query Field. Filter `AND` by field, using the following pattern: *FIELD*: *VALUE*.
12+
| fqOr | String | Optional | Query Field. Filter `OR` by field, using the following pattern: *FIELD*: *VALUE*.
13+
| fqOperator | String | Optional | Query Field Operator. Filter OR by field, Operator values: `AND` and `OR`.
14+
| rows | Integer| Optional | Number of rows that query will return. *DEFAULT: Behavior Configuration*
15+
| locale | String | Required | Locale of Semantic Navigation Site
16+
| group | String | Optional | Group by attribute
17+
| targetingRules | String[] | Optional | Targeting Rules. Restrict search based in: *FIELD*: *VALUE*.
18+
| targetingRulesWithCondition | Map<String, String[]> | Optional | Targueting Rules with Condition
19+
| targetingRulesWithConditionAND | Map<String, String[]> | Optional | Targueting Rules `AND` with Condition
20+
| targetingRulesWithConditionOR | Map<String, String[]> | Optional | Targueting Rules `OR` with Condition
21+
| populateMetrics | Boolean | Optional | If populate metrics
22+
| userId | String| Optional | User Id
23+
| disableAutoComplete | Boolean | Optional | Disable Auto Correction. *DEFAULT: false*
24+
|===
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
===== Dates
2+
3+
Search on the semantic navigation site between Dates
4+
5+
IMPORTANT: You will use `fq[]`, `fq.and[]` and `fq.or[]` (query string) or `fq`, `fqAnd`, `fqOr` (request body) to define the dates using the expression with the following date format: `yyyy-MM-dd'T'HH:mm:ss'Z`
6+
7+
===== Between Dates
8+
....
9+
fq[]=attribute:[InitialDate TO EndDate].
10+
....
11+
12+
====== Example - Request
13+
```bash
14+
curl -X 'GET' \
15+
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[2023-07-23T00:00:00Z+TO+2023-11-30T00:00:00Z]' \
16+
-H 'Content-Type: application/json'
17+
```
18+
19+
===== From a date
20+
....
21+
fq[]=attribute:[InitialDate TO *].
22+
....
23+
24+
====== Example - Request
25+
```bash
26+
curl -X 'GET' \
27+
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[2023-07-23T00:00:00Z+TO+*]' \
28+
-H 'Content-Type: application/json'
29+
```
30+
31+
===== Until a date
32+
....
33+
fq[]=attribute:[* TO EndDate].
34+
....
35+
36+
====== Example - Request
37+
```bash
38+
curl -X 'GET' \
39+
'http://localhost:2700/api/sn/Sample/search?q=foobar&_setlocale=en_US&fq[]=modificationDate:[*+TO+2023-11-30T00:00:00Z]' \
40+
-H 'Content-Type: application/json'
41+
```

0 commit comments

Comments
 (0)