module Crolia
Included Modules
Extended Modules
Direct including types
Defined in:
Crolia.crCrolia/api.cr
Crolia/index.cr
Crolia/objects.cr
Crolia/request.cr
Crolia/response.cr
Crolia/version.cr
Constant Summary
-
ENDPOINT_URL =
"https://[APPID][DSN].algolia.net/"
-
api endpoint url
-
PATHS =
{"index/list" => "/1/indexes", "index/search" => "/1/indexes/[index]", "index/search/query" => "/1/indexes/[index]/query", "index/search/queries" => "/1/indexes/*/queries", "objects/delete" => "/1/indexes/[index]/[id]", "objects/read" => "/1/indexes/[index]/[id]", "objects/read/many" => "/1/indexes/*/objects", "objects/insert" => "/1/indexes/[index]", "objects/update" => "/1/indexes/[index]/[id]", "objects/update/partial" => "/1/indexes/[index]/[id]/partial"}
-
hash of api pathes
-
VERSION =
"0.2.1"
Instance Method Summary
-
#api_path(index, opts = {} of String => String)
used to parse a full api path based on our hash path keys
-
#api_response(response : HTTP::Client::Response)
create Algolia::Response object based on the response data recieved
-
#parse_url(path, api_id, dsn = false)
used to parse our end point path's to the rest api url
Instance Method Detail
used to parse a full api path based on our hash path keys
def api_response(response : HTTP::Client::Response)
#
create Algolia::Response object based on the response data recieved