Full-text search powered by Typesense
curl --request GET \
--url http://localhost:6063/searchimport requests
url = "http://localhost:6063/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:6063/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/search")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/search")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"albums": [
{
"album_art": "5e35f1a2c80de5a6cb3f27132f3f81ea.jpg",
"artist": "Charli xcx",
"artist_id": "cmfcfqx3w002dwg08lrasptzo",
"id": "cmffj228r0007wgc70wuvimfc",
"label": null,
"md5": "d15421a438be924a9d24969e3b3b3fbc",
"title": "Charli",
"year": 2019,
"year_string": "2019-09-13"
},
{
"album_art": "0cba3a84d1c43731303a54dc03e3e852.jpg",
"artist": "Charli xcx",
"artist_id": "cmfcfqx3w002dwg08lrasptzo",
"id": "cmfpe1csg0008wguw7f4v18j2",
"label": null,
"md5": "e46ac9be6763f80e7bcf4328db202e50",
"title": "SUCKER",
"year": 2014,
"year_string": "2014-12-16"
}
],
"artists": [],
"tracks": []
}Search
Full-text search powered by Typesense
GET
/
search
Full-text search powered by Typesense
curl --request GET \
--url http://localhost:6063/searchimport requests
url = "http://localhost:6063/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:6063/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/search")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/search")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"albums": [
{
"album_art": "5e35f1a2c80de5a6cb3f27132f3f81ea.jpg",
"artist": "Charli xcx",
"artist_id": "cmfcfqx3w002dwg08lrasptzo",
"id": "cmffj228r0007wgc70wuvimfc",
"label": null,
"md5": "d15421a438be924a9d24969e3b3b3fbc",
"title": "Charli",
"year": 2019,
"year_string": "2019-09-13"
},
{
"album_art": "0cba3a84d1c43731303a54dc03e3e852.jpg",
"artist": "Charli xcx",
"artist_id": "cmfcfqx3w002dwg08lrasptzo",
"id": "cmfpe1csg0008wguw7f4v18j2",
"label": null,
"md5": "e46ac9be6763f80e7bcf4328db202e50",
"title": "SUCKER",
"year": 2014,
"year_string": "2014-12-16"
}
],
"artists": [],
"tracks": []
}⌘I