Add dcoumentation for API (#18)

This commit is contained in:
KM Koushik
2024-05-22 19:43:17 +10:00
committed by GitHub
parent b9643f41e1
commit e0fc68d4c0
7 changed files with 100 additions and 14 deletions
@@ -9,6 +9,20 @@ import { UnsendApiError } from "../../api-error";
const route = createRoute({
method: "get",
path: "/v1/emails/{emailId}",
request: {
params: z.object({
emailId: z
.string()
.min(3)
.openapi({
param: {
name: "emailId",
in: "path",
},
example: "cuiwqdj74rygf74",
}),
}),
},
responses: {
200: {
content: {