Aurora

Data Egress

Create consumption APIs to serve your data

This demo will walk you through using Aurora tools to prompt your way to creating consumption APIs that serve the aircraft telemetry data you’ve ingested.

Skip to prompt if you started with the ads-b template.

Prerequisites

Start with the ads-b template

Terminal
aurora init egress-demo ads-b
Terminal
cd egress-demo
npm install

Run the Moose Dev Server

Terminal
moose dev 

Open the project in Cursor

Initialize the Aurora MCP

Navigate to Cursor > Settings > Cursor Settings > Tools and Integrations then toggle on the Aurora MCP tool.

For best results, set the LLM to claude-4-sonnet

Gemini 2.5 and o3 are also reasonably good, but claude-4-sonnet has the most consistent results.

Prompt the LLM to create a geolocation API

Can you create an API that returns every aircraft within X miles of Y,Z coordinates.

Action

The LLM should now use aurora tools to:

  1. create the consumption API endpoint that calculates distance and filters aircraft
  2. test the API to ensure it’s working correctly with the existing aircraft data

You’ll know it is succeeding if:

  1. the LLM successfully tests the API
  2. you can curl the API generated
  3. you can see the generated openapi spec in path/to/your/project/.moose/openapi.yaml

Continue this demo with: