Listar camellos activos (publico)
curl --request GET \
--url http://localhost:3000/api/camellosimport requests
url = "http://localhost:3000/api/camellos"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/camellos', 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 => "3000",
CURLOPT_URL => "http://localhost:3000/api/camellos",
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:3000/api/camellos"
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:3000/api/camellos")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/camellos")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"name": "<string>",
"trades": [
"<string>"
],
"status": "ACTIVO",
"premium": true,
"services": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"documentId": "<string>",
"phone": "<string>",
"city": "<string>",
"neighborhood": "<string>",
"professionalCard": "<string>",
"photo": "/uploads/camellos/clx....jpg",
"notes": "<string>",
"description": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true,
"tradeOptions": [
"<string>"
],
"total": 123,
"totalPages": 123,
"page": 123
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}Camellos
Listar camellos activos (publico)
GET
/
api
/
camellos
Listar camellos activos (publico)
curl --request GET \
--url http://localhost:3000/api/camellosimport requests
url = "http://localhost:3000/api/camellos"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/camellos', 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 => "3000",
CURLOPT_URL => "http://localhost:3000/api/camellos",
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:3000/api/camellos"
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:3000/api/camellos")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/camellos")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"name": "<string>",
"trades": [
"<string>"
],
"status": "ACTIVO",
"premium": true,
"services": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"documentId": "<string>",
"phone": "<string>",
"city": "<string>",
"neighborhood": "<string>",
"professionalCard": "<string>",
"photo": "/uploads/camellos/clx....jpg",
"notes": "<string>",
"description": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true,
"tradeOptions": [
"<string>"
],
"total": 123,
"totalPages": 123,
"page": 123
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}Query Parameters
Busca en nombre, oficios y servicios
Maximum string length:
200Alias de city (si ambos, gana city)
Maximum string length:
120Maximum string length:
120Maximum string length:
160Maximum string length:
64Filtra camellos que ofrecen ese servicio
Maximum string length:
64aleatorio ignora cursor/page y devuelve un subconjunto al azar
Available options:
premium, nombre-asc, nombre-desc, aleatorio Available options:
true, false Required range:
1 <= x <= 48ID del ultimo item de la pagina anterior
Maximum string length:
128Paginacion por offset. Si se envia, ignora cursor y la respuesta incluye total, totalPages y page.
Required range:
x >= 1