Skip to content

Commit a187027

Browse files
committed
feat: update API endpoints in ROADMAP for cloud project alignment
1 parent 66b2f8e commit a187027

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ROADMAP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Existing code that contradicts the intended Phase 1 architecture. Fix these befo
7171
[packages/cli/src/commands/publish.ts](packages/cli/src/commands/publish.ts) POSTs a "package" payload that is not the Phase 1 project metadata endpoint.
7272

7373
**Required evolution:**
74-
- Endpoint: `POST /api/v1/apps/:projectId/metadata`
74+
- Endpoint: `POST /api/v1/cloud/projects/:projectId/metadata`
7575
- Payload: compiled `dist/objectstack.json` (output of `objectstack compile`)
7676
- Server behavior: validate with Zod, write current project metadata state, create `commitId`, compute checksum
7777
- Response: `{ projectId, commitId, checksum }`
@@ -167,7 +167,7 @@ Ordered by dependency. Items higher in the list unblock those below them.
167167

168168
### M3 - Project Artifact API endpoint
169169

170-
- [ ] `GET /api/v1/apps/:projectId/artifact` - assembles the current project's metadata + inlined function code into a single consumable blob.
170+
- [ ] `GET /api/v1/cloud/projects/:projectId/artifact` - assembles the current project's metadata + inlined function code into a single consumable blob.
171171
- [ ] Validate the outgoing artifact with the M1 Zod schema.
172172
- [ ] Content hash / ETag for cache validation.
173173
- [ ] Response includes `commitId` and `checksum`.
@@ -186,7 +186,7 @@ Ordered by dependency. Items higher in the list unblock those below them.
186186

187187
### M5 - Project publish endpoint
188188

189-
- [ ] `POST /api/v1/apps/:projectId/metadata` - receives compiled JSON.
189+
- [ ] `POST /api/v1/cloud/projects/:projectId/metadata` - receives compiled JSON.
190190
- [ ] Validates payload with `ObjectStackDefinitionSchema` or the canonical compiled stack schema.
191191
- [ ] Writes current project metadata state to control-plane storage.
192192
- [ ] Creates `commitId`, computes checksum, and returns `{ projectId, commitId, checksum }`.

0 commit comments

Comments
 (0)