Update apis

From ProjectSidewalk/SidewalkWebpage · View interactive version

Update apis is an AI agent skill from the GitHub repository ProjectSidewalk/SidewalkWebpage. Makes updates to any of our /v3/api/ routes.

How to use this skill

Skill file

Read docs/architecture.md → "The public API (/v3)" first: it holds the naming contract (camelCase parameters,

snake_case output everywhere except Shapefile), the DTO layout in app/models/api/, and the StreamingApiType

serialization shape. .claude/rules/api.md is the short version.

The set of updates that are likely to be involved:

  1. Updating the database queries to incorporate the new/updated data (in the app/models/ files). The DTO

definitions themselves belong in app/models/api/*ApiModels.scala, not in the *Table.scala that produces them.

  1. Making sure the API is updated for every output file type it serves (JSON, CSV, GeoJSON, Shapefile, GeoPackage),

with the serialization on the DTO (toJson / toCsvRow, csvHeader in the companion).

  1. Updating the relevant documentation in the app/views/apiDocs/ files and the matching frontend/js/api-docs/*Preview.js.
  2. Updating or adding the functional spec in test/controllers/api/.

A few things to keep in mind:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.