Skip to content

HTTP API for Law-N N-SQL. Exposes endpoints to load network.routes rows, inspect them, and run N-SQL queries over them via FastAPI.

License

Notifications You must be signed in to change notification settings

PEACEBINFLOW/law-n-sql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Law-N SQL API (law-n-sql-api)

Minimal HTTP API for Law-N:

  • Accepts network.routes rows over HTTP
  • Stores them in an in-memory table
  • Exposes simple endpoints to:
    • list current rows
    • load/replace rows
    • run an N-SQL query over network.routes (if law-n-sql-core is available)

This is the first Law-N microservice: a small but real step toward CLSI (Cloud Layer Signal Interface).


✨ Features

  • POST /tables/network-routes/load
    Load or replace network.routes with JSON rows

  • GET /tables/network-routes
    Read back all rows (with optional basic filters)

  • POST /query/nsql
    Run an N-SQL query like:

    SELECT device, tower_id, latency_ms, signal_quality
    FROM network.routes
    WHERE g_layer = '5G'
      AND signal_quality > 0.9;

About

HTTP API for Law-N N-SQL. Exposes endpoints to load network.routes rows, inspect them, and run N-SQL queries over them via FastAPI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages