feat: titles.go added
This commit is contained in:
parent
c2dc762700
commit
d2450ffc89
3 changed files with 130 additions and 0 deletions
|
|
@ -546,6 +546,14 @@ func (response GetTitle204Response) VisitGetTitleResponse(w http.ResponseWriter)
|
|||
return nil
|
||||
}
|
||||
|
||||
type GetTitle400Response struct {
|
||||
}
|
||||
|
||||
func (response GetTitle400Response) VisitGetTitleResponse(w http.ResponseWriter) error {
|
||||
w.WriteHeader(400)
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetTitle500Response struct {
|
||||
}
|
||||
|
||||
|
|
@ -593,6 +601,14 @@ func (response GetUsersUserId200JSONResponse) VisitGetUsersUserIdResponse(w http
|
|||
return json.NewEncoder(w).Encode(response)
|
||||
}
|
||||
|
||||
type GetUsersUserId400Response struct {
|
||||
}
|
||||
|
||||
func (response GetUsersUserId400Response) VisitGetUsersUserIdResponse(w http.ResponseWriter) error {
|
||||
w.WriteHeader(400)
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetUsersUserId404Response struct {
|
||||
}
|
||||
|
||||
|
|
@ -601,6 +617,14 @@ func (response GetUsersUserId404Response) VisitGetUsersUserIdResponse(w http.Res
|
|||
return nil
|
||||
}
|
||||
|
||||
type GetUsersUserId500Response struct {
|
||||
}
|
||||
|
||||
func (response GetUsersUserId500Response) VisitGetUsersUserIdResponse(w http.ResponseWriter) error {
|
||||
w.WriteHeader(500)
|
||||
return nil
|
||||
}
|
||||
|
||||
// StrictServerInterface represents all server handlers.
|
||||
type StrictServerInterface interface {
|
||||
// Get titles
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ paths:
|
|||
summary: Get titles
|
||||
parameters:
|
||||
- in: query
|
||||
<<<<<<< Updated upstream
|
||||
name: word
|
||||
schema:
|
||||
type: string
|
||||
|
|
@ -32,6 +33,12 @@ paths:
|
|||
schema:
|
||||
$ref: '#/components/schemas/ReleaseSeason'
|
||||
- in: query
|
||||
=======
|
||||
name: query
|
||||
schema:
|
||||
type: string
|
||||
- in: query
|
||||
>>>>>>> Stashed changes
|
||||
name: limit
|
||||
schema:
|
||||
type: integer
|
||||
|
|
@ -57,10 +64,13 @@ paths:
|
|||
$ref: '#/components/schemas/Title'
|
||||
'204':
|
||||
description: No titles found
|
||||
<<<<<<< Updated upstream
|
||||
'400':
|
||||
description: Request params are not correct
|
||||
'500':
|
||||
description: Unknown server error
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
# /title/{title_id}:
|
||||
# get:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue