Skip to content

feat: POST /query endpoint for structured SQL-like queries #668

Closed

Description

@ajianaz

Summary

Add a POST /query endpoint that allows structured, SQL-like queries against the memory store.

Acceptance Criteria

Functional

  • POST /query accepts a JSON body with structured query parameters (filters, sort, pagination)
  • Supports filtering by: memory_type, tags, namespace, importance range, pinned, created_at range, source
  • Supports sorting by: created_at, importance, updated_at
  • Supports pagination: limit + offset
  • Returns results with total count for pagination

Verification

curl -X POST http://localhost:8767/query -d '{"memory_type": "fact", "limit": 10}'
curl -X POST http://localhost:8767/query -d '{"tags": ["rust"], "importance_min": 0.5, "sort": "importance_desc"}'

Tests

  • Unit tests for query builder in uteke-core
  • Integration test hitting the endpoint

Technical Notes

Workflow

  • Branch: feat/post-query-endpoint → develop via PR
  • Assignee: CTO

Activity

  1. added
    enhancement
    priority:high
    scope:api
    on Jul 14, 2026
  2. ajianaz commented on Jul 14, 2026

    @ajianaz
    CollaboratorAuthor

    Duplicate of #658 (completed). Same feature already merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:highscope:api

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions