Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultleouay committed Oct 25, 2024
1 parent 1b86dc0 commit 0658551
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/docs/api-reference/whoami/get-whoami.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Get a Whoami
openapi: get /status_report/:id
---
5 changes: 4 additions & 1 deletion apps/server/src/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { pageSubscribersApi } from "./pageSubscribers";
import { pagesApi } from "./pages";
import { statusReportUpdatesApi } from "./statusReportUpdates";
import { statusReportsApi } from "./statusReports";
import { whoamiApi } from "./whoami";

export type Variables = {
workspaceId: string;
Expand Down Expand Up @@ -47,7 +48,7 @@ api.get(
spec: {
url: "/v1/openapi",
},
}),
})
);
/**
* Authentification Middleware
Expand All @@ -66,3 +67,5 @@ api.route("/page_subscriber", pageSubscribersApi);
api.route("/status_report", statusReportsApi);
api.route("/status_report_update", statusReportUpdatesApi);
api.route("/check", checkAPI);

api.route("/whoami", whoamiApi);
2 changes: 1 addition & 1 deletion apps/server/src/v1/monitors/results/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getMonitorStats = createRoute({
path: "/:id/result/:resultId",
request: {
params: ParamsSchema.extend({
resultId: z.number().int().openapi({
resultId: z.string().openapi({
description: "The id of the result",
}),
}),
Expand Down

0 comments on commit 0658551

Please sign in to comment.