feat(api): add openapi tags

This commit is contained in:
Lars Hampe 2024-10-29 22:08:10 +01:00
parent ab0286fd71
commit 415bba96f0
11 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
export const route = createRoute({
method: 'get',
path: '/:id',
tags: ['changelog'],
request: {
params: ChangelogByIdParams,
},

View File

@ -9,6 +9,7 @@ import { verifyAuthentication } from '../../utils/authentication'
export const route = createRoute({
method: 'post',
path: '/',
tags: ['commit'],
request: {
body: {
content: {

View File

@ -10,6 +10,7 @@ import { verifyAuthentication } from '../../utils/authentication'
const route = createRoute({
method: 'get',
path: '/',
tags: ['commit'],
request: {
query: CommitListParams,
},

View File

@ -8,6 +8,7 @@ import { createRoute, type z } from '@hono/zod-openapi'
export const route = createRoute({
method: 'post',
path: '/',
tags: ['changelog'],
request: {
body: {
content: {

View File

@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
export const route = createRoute({
method: 'delete',
path: '/:id',
tags: ['changelog'],
responses: {
200: {
content: {

View File

@ -6,6 +6,7 @@ import { eq } from 'drizzle-orm'
export const route = createRoute({
method: 'get',
path: '/',
tags: ['changelog'],
responses: {
200: {
content: {

View File

@ -6,6 +6,7 @@ import { and, eq } from 'drizzle-orm'
export const byId = createRoute({
method: 'get',
path: '/:id',
tags: ['version'],
request: {
params: VersionByIdParams,
},

View File

@ -13,6 +13,7 @@ import semver from 'semver'
export const create = createRoute({
method: 'post',
path: '/',
tags: ['version'],
request: {
body: {
content: {

View File

@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
export const remove = createRoute({
method: 'delete',
path: '/:id',
tags: ['version'],
responses: {
200: {
content: {

View File

@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
export const update = createRoute({
method: 'put',
path: '/:id',
tags: ['version'],
request: {
body: {
content: {

View File

@ -8,6 +8,7 @@ import { verifyAuthentication } from '../utils/authentication'
const route = createRoute({
method: 'delete',
tags: ['page'],
path: '/:id',
request: {
params: PageByIdParams,