hammer-editor/server
Adam Brown efb0f62c41
Identify projects by projectId in sync API URLs (#679)
Replace the project name in sync endpoint paths with the server-issued
projectId. The server resolves the ProjectDefinition from the DB by id;
the create endpoint takes the name as a query param. Updates client APIs,
tests, and the syncing protocol doc.

* Harden sync projectId refactor: protocol bump, 410 for missing project, path encoding

- Bump HAMMER_PROTOCOL_VERSION so version-mismatched clients fail fast via the
  protocol gate instead of hitting silent 404s on the renamed routes.
- requireProjectDef responds 410 Gone (not 404) for a missing project, so the
  download_entity client can't mistake a vanished-mid-sync project for a deleted
  entity and silently abandon undownloaded entities.
- Re-apply encodeUrlPathSegment to the projectId path segment and restore the
  path-encoding test so a reserved character can't escape the URL template.
2026-06-26 22:21:33 -07:00
..
src Identify projects by projectId in sync API URLs (#679) 2026-06-26 22:21:33 -07:00
build.gradle.kts Use the HSTS plugin 2026-06-19 17:51:21 -07:00