diff --git a/apps/web/app/api/v1/highlights/route.ts b/apps/web/app/api/v1/highlights/route.ts index ebb96bae..a324d498 100644 --- a/apps/web/app/api/v1/highlights/route.ts +++ b/apps/web/app/api/v1/highlights/route.ts @@ -25,6 +25,6 @@ export const POST = (req: NextRequest) => bodySchema: zNewHighlightSchema, handler: async ({ body, api }) => { const resp = await api.highlights.create(body!); - return { status: 200, resp }; + return { status: 201, resp }; }, }); diff --git a/packages/open-api/hoarder-openapi-spec.json b/packages/open-api/hoarder-openapi-spec.json index 4cfbfe63..46e5ea0f 100644 --- a/packages/open-api/hoarder-openapi-spec.json +++ b/packages/open-api/hoarder-openapi-spec.json @@ -1136,9 +1136,7 @@ "description": "No content - the bookmark was deleted" } } - } - }, - "/list/{listId}": { + }, "patch": { "description": "Update list by its id", "summary": "Update a list", diff --git a/packages/open-api/lib/lists.ts b/packages/open-api/lib/lists.ts index aa5d57f3..07c9fde9 100644 --- a/packages/open-api/lib/lists.ts +++ b/packages/open-api/lib/lists.ts @@ -120,7 +120,7 @@ registry.registerPath({ registry.registerPath({ method: "patch", - path: "/list/{listId}", + path: "/lists/{listId}", description: "Update list by its id", summary: "Update a list", tags: ["Lists"], diff --git a/packages/sdk/src/hoarder-api.d.ts b/packages/sdk/src/hoarder-api.d.ts index 72f3717e..25907bcb 100644 --- a/packages/sdk/src/hoarder-api.d.ts +++ b/packages/sdk/src/hoarder-api.d.ts @@ -483,22 +483,6 @@ export interface paths { }; options?: never; head?: never; - patch?: never; - trace?: never; - }; - "/list/{listId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; /** * Update a list * @description Update list by its id