pnpm dev
pnpm sonic:up # or docker compose -f sonic/docker-compose up
See file api.http
GET http://localhost:3000
accept: application/json
Response:
{
hello: "world";
}
POST http://localhost:3000
content-Type: application/json
{
"title": "Minhas tarefas",
"content": "Fazer café"
}
GET http://localhost:3000/search?q=café
content-Type: application/json
Response:
{
results: ["post:<id_post>"];
}
GET http://localhost:3000/suggest?s=caf
content-Type: application/json
Response:
{
results: ["café"];
}