feat(api): add openapi tags
This commit is contained in:
parent
ab0286fd71
commit
415bba96f0
@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
|
||||
export const route = createRoute({
|
||||
method: 'get',
|
||||
path: '/:id',
|
||||
tags: ['changelog'],
|
||||
request: {
|
||||
params: ChangelogByIdParams,
|
||||
},
|
||||
|
@ -9,6 +9,7 @@ import { verifyAuthentication } from '../../utils/authentication'
|
||||
export const route = createRoute({
|
||||
method: 'post',
|
||||
path: '/',
|
||||
tags: ['commit'],
|
||||
request: {
|
||||
body: {
|
||||
content: {
|
||||
|
@ -10,6 +10,7 @@ import { verifyAuthentication } from '../../utils/authentication'
|
||||
const route = createRoute({
|
||||
method: 'get',
|
||||
path: '/',
|
||||
tags: ['commit'],
|
||||
request: {
|
||||
query: CommitListParams,
|
||||
},
|
||||
|
@ -8,6 +8,7 @@ import { createRoute, type z } from '@hono/zod-openapi'
|
||||
export const route = createRoute({
|
||||
method: 'post',
|
||||
path: '/',
|
||||
tags: ['changelog'],
|
||||
request: {
|
||||
body: {
|
||||
content: {
|
||||
|
@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
|
||||
export const route = createRoute({
|
||||
method: 'delete',
|
||||
path: '/:id',
|
||||
tags: ['changelog'],
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
|
@ -6,6 +6,7 @@ import { eq } from 'drizzle-orm'
|
||||
export const route = createRoute({
|
||||
method: 'get',
|
||||
path: '/',
|
||||
tags: ['changelog'],
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
|
@ -6,6 +6,7 @@ import { and, eq } from 'drizzle-orm'
|
||||
export const byId = createRoute({
|
||||
method: 'get',
|
||||
path: '/:id',
|
||||
tags: ['version'],
|
||||
request: {
|
||||
params: VersionByIdParams,
|
||||
},
|
||||
|
@ -13,6 +13,7 @@ import semver from 'semver'
|
||||
export const create = createRoute({
|
||||
method: 'post',
|
||||
path: '/',
|
||||
tags: ['version'],
|
||||
request: {
|
||||
body: {
|
||||
content: {
|
||||
|
@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
|
||||
export const remove = createRoute({
|
||||
method: 'delete',
|
||||
path: '/:id',
|
||||
tags: ['version'],
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
|
@ -7,6 +7,7 @@ import { HTTPException } from 'hono/http-exception'
|
||||
export const update = createRoute({
|
||||
method: 'put',
|
||||
path: '/:id',
|
||||
tags: ['version'],
|
||||
request: {
|
||||
body: {
|
||||
content: {
|
||||
|
@ -8,6 +8,7 @@ import { verifyAuthentication } from '../utils/authentication'
|
||||
|
||||
const route = createRoute({
|
||||
method: 'delete',
|
||||
tags: ['page'],
|
||||
path: '/:id',
|
||||
request: {
|
||||
params: PageByIdParams,
|
||||
|
Loading…
Reference in New Issue
Block a user