Documentation
¶
Overview ¶
Code generated by openapi-generator-go DO NOT EDIT.
Source:
Title: Awesome GO API Version: 1.0.0
Code generated by openapi-generator-go DO NOT EDIT.
Source:
Title: Awesome GO API Version: 1.0.0
Code generated by openapi-generator-go DO NOT EDIT.
Source:
Title: Awesome GO API Version: 1.0.0
Code generated by openapi-generator-go DO NOT EDIT.
Source:
Title: Awesome GO API Version: 1.0.0
Index ¶
- func NewRouter(defaultHandlerHandler DefaultHandlerHandler) http.Handler
- type DefaultHandlerHandler
- type Error
- type GetGreetingOutputBody
- type GreetingQueryParameters
- type PostReviewInputBody
- func (m PostReviewInputBody) GetAuthor() string
- func (m PostReviewInputBody) GetMessage() string
- func (m PostReviewInputBody) GetRating() int64
- func (m *PostReviewInputBody) SetAuthor(val string)
- func (m *PostReviewInputBody) SetMessage(val string)
- func (m *PostReviewInputBody) SetRating(val int64)
- func (m PostReviewInputBody) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultHandlerHandler ¶
type DefaultHandlerHandler interface {
// GetError Responds with an error
GetError(w http.ResponseWriter, r *http.Request)
// Greeting Responds with a greeting
Greeting(w http.ResponseWriter, r *http.Request)
// PostReview Post a review to be saved
PostReview(w http.ResponseWriter, r *http.Request)
}
DefaultHandlerHandler handles the operations of the 'DefaultHandler' handler group.
type Error ¶
type Error struct {
// Details: A human-readable explanation specific to this occurrence of the problem.
Details string `json:"details,omitempty" mapstructure:"details,omitempty"`
// Properties: Optional map of properties
Properties map[string]interface{} `json:"properties,omitempty" mapstructure:"properties,omitempty"`
// Title: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Title string `json:"title" mapstructure:"title"`
}
Error is an object. An API error
func (Error) GetDetails ¶
GetDetails returns the Details property
func (Error) GetProperties ¶
GetProperties returns the Properties property
func (*Error) SetDetails ¶
SetDetails sets the Details property
func (*Error) SetProperties ¶
SetProperties sets the Properties property
type GetGreetingOutputBody ¶
type GetGreetingOutputBody struct {
// Message: Greeting message
Message string `json:"message" mapstructure:"message"`
}
GetGreetingOutputBody is an object.
func (GetGreetingOutputBody) GetMessage ¶
func (m GetGreetingOutputBody) GetMessage() string
GetMessage returns the Message property
func (*GetGreetingOutputBody) SetMessage ¶
func (m *GetGreetingOutputBody) SetMessage(val string)
SetMessage sets the Message property
func (GetGreetingOutputBody) Validate ¶
func (m GetGreetingOutputBody) Validate() error
Validate implements basic validation for this model
type GreetingQueryParameters ¶
type GreetingQueryParameters struct {
// Name: Name to greet
Name string `json:"name" mapstructure:"name"`
}
GreetingQueryParameters is an object.
func (GreetingQueryParameters) GetName ¶
func (m GreetingQueryParameters) GetName() string
GetName returns the Name property
func (*GreetingQueryParameters) SetName ¶
func (m *GreetingQueryParameters) SetName(val string)
SetName sets the Name property
func (GreetingQueryParameters) Validate ¶
func (m GreetingQueryParameters) Validate() error
Validate implements basic validation for this model
type PostReviewInputBody ¶
type PostReviewInputBody struct {
// Author: Author of the review
Author string `json:"author" mapstructure:"author"`
// Message: Review message
Message string `json:"message,omitempty" mapstructure:"message,omitempty"`
// Rating: Rating from 1 to 5
Rating int64 `json:"rating" mapstructure:"rating"`
}
PostReviewInputBody is an object.
func (PostReviewInputBody) GetAuthor ¶
func (m PostReviewInputBody) GetAuthor() string
GetAuthor returns the Author property
func (PostReviewInputBody) GetMessage ¶
func (m PostReviewInputBody) GetMessage() string
GetMessage returns the Message property
func (PostReviewInputBody) GetRating ¶
func (m PostReviewInputBody) GetRating() int64
GetRating returns the Rating property
func (*PostReviewInputBody) SetAuthor ¶
func (m *PostReviewInputBody) SetAuthor(val string)
SetAuthor sets the Author property
func (*PostReviewInputBody) SetMessage ¶
func (m *PostReviewInputBody) SetMessage(val string)
SetMessage sets the Message property
func (*PostReviewInputBody) SetRating ¶
func (m *PostReviewInputBody) SetRating(val int64)
SetRating sets the Rating property
func (PostReviewInputBody) Validate ¶
func (m PostReviewInputBody) Validate() error
Validate implements basic validation for this model