Documentation ¶
Index ¶
- Constants
- type AddAccount
- type AddAccountConflict
- type AddAccountCreated
- type AddAccountHandler
- type AddAccountHandlerFunc
- type AddAccountInternalServerError
- type AddAccountParams
- type AddAccountURL
- func (o *AddAccountURL) Build() (*url.URL, error)
- func (o *AddAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *AddAccountURL) SetBasePath(bp string)
- func (o *AddAccountURL) String() string
- func (o *AddAccountURL) StringFull(scheme, host string) string
- func (o *AddAccountURL) WithBasePath(bp string) *AddAccountURL
- type AddClass
- type AddClassConflict
- type AddClassCreated
- type AddClassHandler
- type AddClassHandlerFunc
- type AddClassInternalServerError
- type AddClassParams
- type AddClassURL
- func (o *AddClassURL) Build() (*url.URL, error)
- func (o *AddClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddClassURL) Must(u *url.URL, err error) *url.URL
- func (o *AddClassURL) SetBasePath(bp string)
- func (o *AddClassURL) String() string
- func (o *AddClassURL) StringFull(scheme, host string) string
- func (o *AddClassURL) WithBasePath(bp string) *AddClassURL
- type AddOrRemoveStudent
- type AddOrRemoveStudentBody
- func (o *AddOrRemoveStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *AddOrRemoveStudentBody) MarshalBinary() ([]byte, error)
- func (o *AddOrRemoveStudentBody) UnmarshalBinary(b []byte) error
- func (o *AddOrRemoveStudentBody) Validate(formats strfmt.Registry) error
- type AddOrRemoveStudentHandler
- type AddOrRemoveStudentHandlerFunc
- type AddOrRemoveStudentInternalServerError
- type AddOrRemoveStudentNotFound
- type AddOrRemoveStudentOK
- type AddOrRemoveStudentParams
- type AddOrRemoveStudentURL
- func (o *AddOrRemoveStudentURL) Build() (*url.URL, error)
- func (o *AddOrRemoveStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddOrRemoveStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *AddOrRemoveStudentURL) SetBasePath(bp string)
- func (o *AddOrRemoveStudentURL) String() string
- func (o *AddOrRemoveStudentURL) StringFull(scheme, host string) string
- func (o *AddOrRemoveStudentURL) WithBasePath(bp string) *AddOrRemoveStudentURL
- type AddStudent
- type AddStudentConflict
- type AddStudentCreated
- type AddStudentHandler
- type AddStudentHandlerFunc
- type AddStudentInternalServerError
- type AddStudentParams
- type AddStudentURL
- func (o *AddStudentURL) Build() (*url.URL, error)
- func (o *AddStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *AddStudentURL) SetBasePath(bp string)
- func (o *AddStudentURL) String() string
- func (o *AddStudentURL) StringFull(scheme, host string) string
- func (o *AddStudentURL) WithBasePath(bp string) *AddStudentURL
- type AddSubject
- type AddSubjectConflict
- type AddSubjectCreated
- type AddSubjectHandler
- type AddSubjectHandlerFunc
- type AddSubjectInternalServerError
- type AddSubjectParams
- type AddSubjectURL
- func (o *AddSubjectURL) Build() (*url.URL, error)
- func (o *AddSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddSubjectURL) Must(u *url.URL, err error) *url.URL
- func (o *AddSubjectURL) SetBasePath(bp string)
- func (o *AddSubjectURL) String() string
- func (o *AddSubjectURL) StringFull(scheme, host string) string
- func (o *AddSubjectURL) WithBasePath(bp string) *AddSubjectURL
- type AddTeacher
- type AddTeacherConflict
- type AddTeacherCreated
- type AddTeacherHandler
- type AddTeacherHandlerFunc
- type AddTeacherInternalServerError
- type AddTeacherParams
- type AddTeacherURL
- func (o *AddTeacherURL) Build() (*url.URL, error)
- func (o *AddTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddTeacherURL) Must(u *url.URL, err error) *url.URL
- func (o *AddTeacherURL) SetBasePath(bp string)
- func (o *AddTeacherURL) String() string
- func (o *AddTeacherURL) StringFull(scheme, host string) string
- func (o *AddTeacherURL) WithBasePath(bp string) *AddTeacherURL
- type ApniUniversityAPI
- func (o *ApniUniversityAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *ApniUniversityAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *ApniUniversityAPI) Authorizer() runtime.Authorizer
- func (o *ApniUniversityAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *ApniUniversityAPI) Context() *middleware.Context
- func (o *ApniUniversityAPI) DefaultConsumes() string
- func (o *ApniUniversityAPI) DefaultProduces() string
- func (o *ApniUniversityAPI) Formats() strfmt.Registry
- func (o *ApniUniversityAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *ApniUniversityAPI) Init()
- func (o *ApniUniversityAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *ApniUniversityAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *ApniUniversityAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *ApniUniversityAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *ApniUniversityAPI) Serve(builder middleware.Builder) http.Handler
- func (o *ApniUniversityAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *ApniUniversityAPI) SetDefaultConsumes(mediaType string)
- func (o *ApniUniversityAPI) SetDefaultProduces(mediaType string)
- func (o *ApniUniversityAPI) SetSpec(spec *loads.Document)
- func (o *ApniUniversityAPI) UseRedoc()
- func (o *ApniUniversityAPI) UseSwaggerUI()
- func (o *ApniUniversityAPI) Validate() error
- type AssignClass
- type AssignClassBody
- type AssignClassHandler
- type AssignClassHandlerFunc
- type AssignClassInternalServerError
- type AssignClassNotFound
- type AssignClassOK
- type AssignClassParams
- type AssignClassURL
- func (o *AssignClassURL) Build() (*url.URL, error)
- func (o *AssignClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssignClassURL) Must(u *url.URL, err error) *url.URL
- func (o *AssignClassURL) SetBasePath(bp string)
- func (o *AssignClassURL) String() string
- func (o *AssignClassURL) StringFull(scheme, host string) string
- func (o *AssignClassURL) WithBasePath(bp string) *AssignClassURL
- type AssignSubjectToStudent
- type AssignSubjectToStudentBody
- func (o *AssignSubjectToStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *AssignSubjectToStudentBody) MarshalBinary() ([]byte, error)
- func (o *AssignSubjectToStudentBody) UnmarshalBinary(b []byte) error
- func (o *AssignSubjectToStudentBody) Validate(formats strfmt.Registry) error
- type AssignSubjectToStudentHandler
- type AssignSubjectToStudentHandlerFunc
- type AssignSubjectToStudentInternalServerError
- type AssignSubjectToStudentNotFound
- type AssignSubjectToStudentOK
- type AssignSubjectToStudentParams
- type AssignSubjectToStudentURL
- func (o *AssignSubjectToStudentURL) Build() (*url.URL, error)
- func (o *AssignSubjectToStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssignSubjectToStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *AssignSubjectToStudentURL) SetBasePath(bp string)
- func (o *AssignSubjectToStudentURL) String() string
- func (o *AssignSubjectToStudentURL) StringFull(scheme, host string) string
- func (o *AssignSubjectToStudentURL) WithBasePath(bp string) *AssignSubjectToStudentURL
- type AssignSubjectToTeacher
- type AssignSubjectToTeacherBody
- func (o *AssignSubjectToTeacherBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *AssignSubjectToTeacherBody) MarshalBinary() ([]byte, error)
- func (o *AssignSubjectToTeacherBody) UnmarshalBinary(b []byte) error
- func (o *AssignSubjectToTeacherBody) Validate(formats strfmt.Registry) error
- type AssignSubjectToTeacherHandler
- type AssignSubjectToTeacherHandlerFunc
- type AssignSubjectToTeacherInternalServerError
- type AssignSubjectToTeacherNotFound
- type AssignSubjectToTeacherOK
- type AssignSubjectToTeacherParams
- type AssignSubjectToTeacherURL
- func (o *AssignSubjectToTeacherURL) Build() (*url.URL, error)
- func (o *AssignSubjectToTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssignSubjectToTeacherURL) Must(u *url.URL, err error) *url.URL
- func (o *AssignSubjectToTeacherURL) SetBasePath(bp string)
- func (o *AssignSubjectToTeacherURL) String() string
- func (o *AssignSubjectToTeacherURL) StringFull(scheme, host string) string
- func (o *AssignSubjectToTeacherURL) WithBasePath(bp string) *AssignSubjectToTeacherURL
- type DeleteAccount
- type DeleteAccountHandler
- type DeleteAccountHandlerFunc
- type DeleteAccountInternalServerError
- type DeleteAccountNoContent
- type DeleteAccountNotFound
- type DeleteAccountParams
- type DeleteAccountURL
- func (o *DeleteAccountURL) Build() (*url.URL, error)
- func (o *DeleteAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAccountURL) SetBasePath(bp string)
- func (o *DeleteAccountURL) String() string
- func (o *DeleteAccountURL) StringFull(scheme, host string) string
- func (o *DeleteAccountURL) WithBasePath(bp string) *DeleteAccountURL
- type DeleteClass
- type DeleteClassHandler
- type DeleteClassHandlerFunc
- type DeleteClassInternalServerError
- type DeleteClassNoContent
- type DeleteClassNotFound
- type DeleteClassParams
- type DeleteClassURL
- func (o *DeleteClassURL) Build() (*url.URL, error)
- func (o *DeleteClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteClassURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteClassURL) SetBasePath(bp string)
- func (o *DeleteClassURL) String() string
- func (o *DeleteClassURL) StringFull(scheme, host string) string
- func (o *DeleteClassURL) WithBasePath(bp string) *DeleteClassURL
- type DeleteStudent
- type DeleteStudentHandler
- type DeleteStudentHandlerFunc
- type DeleteStudentInternalServerError
- type DeleteStudentNoContent
- type DeleteStudentNotFound
- type DeleteStudentParams
- type DeleteStudentURL
- func (o *DeleteStudentURL) Build() (*url.URL, error)
- func (o *DeleteStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteStudentURL) SetBasePath(bp string)
- func (o *DeleteStudentURL) String() string
- func (o *DeleteStudentURL) StringFull(scheme, host string) string
- func (o *DeleteStudentURL) WithBasePath(bp string) *DeleteStudentURL
- type DeleteSubject
- type DeleteSubjectHandler
- type DeleteSubjectHandlerFunc
- type DeleteSubjectInternalServerError
- type DeleteSubjectNoContent
- type DeleteSubjectNotFound
- type DeleteSubjectParams
- type DeleteSubjectURL
- func (o *DeleteSubjectURL) Build() (*url.URL, error)
- func (o *DeleteSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSubjectURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSubjectURL) SetBasePath(bp string)
- func (o *DeleteSubjectURL) String() string
- func (o *DeleteSubjectURL) StringFull(scheme, host string) string
- func (o *DeleteSubjectURL) WithBasePath(bp string) *DeleteSubjectURL
- type DeleteTeacher
- type DeleteTeacherHandler
- type DeleteTeacherHandlerFunc
- type DeleteTeacherInternalServerError
- type DeleteTeacherNoContent
- type DeleteTeacherNotFound
- type DeleteTeacherParams
- type DeleteTeacherURL
- func (o *DeleteTeacherURL) Build() (*url.URL, error)
- func (o *DeleteTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTeacherURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTeacherURL) SetBasePath(bp string)
- func (o *DeleteTeacherURL) String() string
- func (o *DeleteTeacherURL) StringFull(scheme, host string) string
- func (o *DeleteTeacherURL) WithBasePath(bp string) *DeleteTeacherURL
- type GetAccountByID
- type GetAccountByIDHandler
- type GetAccountByIDHandlerFunc
- type GetAccountByIDInternalServerError
- type GetAccountByIDNotFound
- type GetAccountByIDOK
- type GetAccountByIDParams
- type GetAccountByIDURL
- func (o *GetAccountByIDURL) Build() (*url.URL, error)
- func (o *GetAccountByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountByIDURL) SetBasePath(bp string)
- func (o *GetAccountByIDURL) String() string
- func (o *GetAccountByIDURL) StringFull(scheme, host string) string
- func (o *GetAccountByIDURL) WithBasePath(bp string) *GetAccountByIDURL
- type GetAccounts
- type GetAccountsHandler
- type GetAccountsHandlerFunc
- type GetAccountsInternalServerError
- type GetAccountsNotFound
- type GetAccountsOK
- type GetAccountsParams
- type GetAccountsURL
- func (o *GetAccountsURL) Build() (*url.URL, error)
- func (o *GetAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountsURL) SetBasePath(bp string)
- func (o *GetAccountsURL) String() string
- func (o *GetAccountsURL) StringFull(scheme, host string) string
- func (o *GetAccountsURL) WithBasePath(bp string) *GetAccountsURL
- type GetClassByID
- type GetClassByIDHandler
- type GetClassByIDHandlerFunc
- type GetClassByIDInternalServerError
- type GetClassByIDNotFound
- type GetClassByIDOK
- type GetClassByIDParams
- type GetClassByIDURL
- func (o *GetClassByIDURL) Build() (*url.URL, error)
- func (o *GetClassByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClassByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClassByIDURL) SetBasePath(bp string)
- func (o *GetClassByIDURL) String() string
- func (o *GetClassByIDURL) StringFull(scheme, host string) string
- func (o *GetClassByIDURL) WithBasePath(bp string) *GetClassByIDURL
- type GetClassOfTeacher
- type GetClassOfTeacherHandler
- type GetClassOfTeacherHandlerFunc
- type GetClassOfTeacherInternalServerError
- type GetClassOfTeacherNotFound
- type GetClassOfTeacherOK
- type GetClassOfTeacherParams
- type GetClassOfTeacherURL
- func (o *GetClassOfTeacherURL) Build() (*url.URL, error)
- func (o *GetClassOfTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClassOfTeacherURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClassOfTeacherURL) SetBasePath(bp string)
- func (o *GetClassOfTeacherURL) String() string
- func (o *GetClassOfTeacherURL) StringFull(scheme, host string) string
- func (o *GetClassOfTeacherURL) WithBasePath(bp string) *GetClassOfTeacherURL
- type GetClasses
- type GetClassesHandler
- type GetClassesHandlerFunc
- type GetClassesInternalServerError
- type GetClassesNotFound
- type GetClassesOK
- type GetClassesOfStudent
- type GetClassesOfStudentHandler
- type GetClassesOfStudentHandlerFunc
- type GetClassesOfStudentInternalServerError
- type GetClassesOfStudentNotFound
- type GetClassesOfStudentOK
- type GetClassesOfStudentParams
- type GetClassesOfStudentURL
- func (o *GetClassesOfStudentURL) Build() (*url.URL, error)
- func (o *GetClassesOfStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClassesOfStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClassesOfStudentURL) SetBasePath(bp string)
- func (o *GetClassesOfStudentURL) String() string
- func (o *GetClassesOfStudentURL) StringFull(scheme, host string) string
- func (o *GetClassesOfStudentURL) WithBasePath(bp string) *GetClassesOfStudentURL
- type GetClassesParams
- type GetClassesURL
- func (o *GetClassesURL) Build() (*url.URL, error)
- func (o *GetClassesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetClassesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetClassesURL) SetBasePath(bp string)
- func (o *GetClassesURL) String() string
- func (o *GetClassesURL) StringFull(scheme, host string) string
- func (o *GetClassesURL) WithBasePath(bp string) *GetClassesURL
- type GetDefaultedStudentAccounts
- type GetDefaultedStudentAccountsHandler
- type GetDefaultedStudentAccountsHandlerFunc
- type GetDefaultedStudentAccountsInternalServerError
- type GetDefaultedStudentAccountsNotFound
- type GetDefaultedStudentAccountsOK
- type GetDefaultedStudentAccountsParams
- type GetDefaultedStudentAccountsURL
- func (o *GetDefaultedStudentAccountsURL) Build() (*url.URL, error)
- func (o *GetDefaultedStudentAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDefaultedStudentAccountsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDefaultedStudentAccountsURL) SetBasePath(bp string)
- func (o *GetDefaultedStudentAccountsURL) String() string
- func (o *GetDefaultedStudentAccountsURL) StringFull(scheme, host string) string
- func (o *GetDefaultedStudentAccountsURL) WithBasePath(bp string) *GetDefaultedStudentAccountsURL
- type GetStudentAccounts
- type GetStudentAccountsHandler
- type GetStudentAccountsHandlerFunc
- type GetStudentAccountsInternalServerError
- type GetStudentAccountsNotFound
- type GetStudentAccountsOK
- type GetStudentAccountsParams
- type GetStudentAccountsURL
- func (o *GetStudentAccountsURL) Build() (*url.URL, error)
- func (o *GetStudentAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentAccountsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentAccountsURL) SetBasePath(bp string)
- func (o *GetStudentAccountsURL) String() string
- func (o *GetStudentAccountsURL) StringFull(scheme, host string) string
- func (o *GetStudentAccountsURL) WithBasePath(bp string) *GetStudentAccountsURL
- type GetStudentByID
- type GetStudentByIDHandler
- type GetStudentByIDHandlerFunc
- type GetStudentByIDInternalServerError
- type GetStudentByIDNotFound
- type GetStudentByIDOK
- type GetStudentByIDParams
- type GetStudentByIDURL
- func (o *GetStudentByIDURL) Build() (*url.URL, error)
- func (o *GetStudentByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentByIDURL) SetBasePath(bp string)
- func (o *GetStudentByIDURL) String() string
- func (o *GetStudentByIDURL) StringFull(scheme, host string) string
- func (o *GetStudentByIDURL) WithBasePath(bp string) *GetStudentByIDURL
- type GetStudents
- type GetStudentsHandler
- type GetStudentsHandlerFunc
- type GetStudentsInternalServerError
- type GetStudentsNotFound
- type GetStudentsOK
- type GetStudentsOfClass
- type GetStudentsOfClassHandler
- type GetStudentsOfClassHandlerFunc
- type GetStudentsOfClassInternalServerError
- type GetStudentsOfClassNotFound
- type GetStudentsOfClassOK
- type GetStudentsOfClassParams
- type GetStudentsOfClassURL
- func (o *GetStudentsOfClassURL) Build() (*url.URL, error)
- func (o *GetStudentsOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentsOfClassURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentsOfClassURL) SetBasePath(bp string)
- func (o *GetStudentsOfClassURL) String() string
- func (o *GetStudentsOfClassURL) StringFull(scheme, host string) string
- func (o *GetStudentsOfClassURL) WithBasePath(bp string) *GetStudentsOfClassURL
- type GetStudentsOfSubject
- type GetStudentsOfSubjectHandler
- type GetStudentsOfSubjectHandlerFunc
- type GetStudentsOfSubjectInternalServerError
- type GetStudentsOfSubjectNotFound
- type GetStudentsOfSubjectOK
- type GetStudentsOfSubjectParams
- type GetStudentsOfSubjectURL
- func (o *GetStudentsOfSubjectURL) Build() (*url.URL, error)
- func (o *GetStudentsOfSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentsOfSubjectURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentsOfSubjectURL) SetBasePath(bp string)
- func (o *GetStudentsOfSubjectURL) String() string
- func (o *GetStudentsOfSubjectURL) StringFull(scheme, host string) string
- func (o *GetStudentsOfSubjectURL) WithBasePath(bp string) *GetStudentsOfSubjectURL
- type GetStudentsOfTeacher
- type GetStudentsOfTeacherHandler
- type GetStudentsOfTeacherHandlerFunc
- type GetStudentsOfTeacherInternalServerError
- type GetStudentsOfTeacherNotFound
- type GetStudentsOfTeacherOK
- type GetStudentsOfTeacherParams
- type GetStudentsOfTeacherURL
- func (o *GetStudentsOfTeacherURL) Build() (*url.URL, error)
- func (o *GetStudentsOfTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentsOfTeacherURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentsOfTeacherURL) SetBasePath(bp string)
- func (o *GetStudentsOfTeacherURL) String() string
- func (o *GetStudentsOfTeacherURL) StringFull(scheme, host string) string
- func (o *GetStudentsOfTeacherURL) WithBasePath(bp string) *GetStudentsOfTeacherURL
- type GetStudentsParams
- type GetStudentsURL
- func (o *GetStudentsURL) Build() (*url.URL, error)
- func (o *GetStudentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStudentsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStudentsURL) SetBasePath(bp string)
- func (o *GetStudentsURL) String() string
- func (o *GetStudentsURL) StringFull(scheme, host string) string
- func (o *GetStudentsURL) WithBasePath(bp string) *GetStudentsURL
- type GetSubjectByID
- type GetSubjectByIDHandler
- type GetSubjectByIDHandlerFunc
- type GetSubjectByIDInternalServerError
- type GetSubjectByIDNotFound
- type GetSubjectByIDOK
- type GetSubjectByIDParams
- type GetSubjectByIDURL
- func (o *GetSubjectByIDURL) Build() (*url.URL, error)
- func (o *GetSubjectByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubjectByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubjectByIDURL) SetBasePath(bp string)
- func (o *GetSubjectByIDURL) String() string
- func (o *GetSubjectByIDURL) StringFull(scheme, host string) string
- func (o *GetSubjectByIDURL) WithBasePath(bp string) *GetSubjectByIDURL
- type GetSubjects
- type GetSubjectsHandler
- type GetSubjectsHandlerFunc
- type GetSubjectsInternalServerError
- type GetSubjectsNotFound
- type GetSubjectsOK
- type GetSubjectsOfClass
- type GetSubjectsOfClassHandler
- type GetSubjectsOfClassHandlerFunc
- type GetSubjectsOfClassInternalServerError
- type GetSubjectsOfClassNotFound
- type GetSubjectsOfClassOK
- type GetSubjectsOfClassParams
- type GetSubjectsOfClassURL
- func (o *GetSubjectsOfClassURL) Build() (*url.URL, error)
- func (o *GetSubjectsOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubjectsOfClassURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubjectsOfClassURL) SetBasePath(bp string)
- func (o *GetSubjectsOfClassURL) String() string
- func (o *GetSubjectsOfClassURL) StringFull(scheme, host string) string
- func (o *GetSubjectsOfClassURL) WithBasePath(bp string) *GetSubjectsOfClassURL
- type GetSubjectsOfStudent
- type GetSubjectsOfStudentHandler
- type GetSubjectsOfStudentHandlerFunc
- type GetSubjectsOfStudentInternalServerError
- type GetSubjectsOfStudentNotFound
- type GetSubjectsOfStudentOK
- type GetSubjectsOfStudentParams
- type GetSubjectsOfStudentURL
- func (o *GetSubjectsOfStudentURL) Build() (*url.URL, error)
- func (o *GetSubjectsOfStudentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubjectsOfStudentURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubjectsOfStudentURL) SetBasePath(bp string)
- func (o *GetSubjectsOfStudentURL) String() string
- func (o *GetSubjectsOfStudentURL) StringFull(scheme, host string) string
- func (o *GetSubjectsOfStudentURL) WithBasePath(bp string) *GetSubjectsOfStudentURL
- type GetSubjectsParams
- type GetSubjectsURL
- func (o *GetSubjectsURL) Build() (*url.URL, error)
- func (o *GetSubjectsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSubjectsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSubjectsURL) SetBasePath(bp string)
- func (o *GetSubjectsURL) String() string
- func (o *GetSubjectsURL) StringFull(scheme, host string) string
- func (o *GetSubjectsURL) WithBasePath(bp string) *GetSubjectsURL
- type GetTeacherAccounts
- type GetTeacherAccountsHandler
- type GetTeacherAccountsHandlerFunc
- type GetTeacherAccountsInternalServerError
- type GetTeacherAccountsNotFound
- type GetTeacherAccountsOK
- type GetTeacherAccountsParams
- type GetTeacherAccountsURL
- func (o *GetTeacherAccountsURL) Build() (*url.URL, error)
- func (o *GetTeacherAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTeacherAccountsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTeacherAccountsURL) SetBasePath(bp string)
- func (o *GetTeacherAccountsURL) String() string
- func (o *GetTeacherAccountsURL) StringFull(scheme, host string) string
- func (o *GetTeacherAccountsURL) WithBasePath(bp string) *GetTeacherAccountsURL
- type GetTeacherByID
- type GetTeacherByIDHandler
- type GetTeacherByIDHandlerFunc
- type GetTeacherByIDInternalServerError
- type GetTeacherByIDNotFound
- type GetTeacherByIDOK
- type GetTeacherByIDParams
- type GetTeacherByIDURL
- func (o *GetTeacherByIDURL) Build() (*url.URL, error)
- func (o *GetTeacherByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTeacherByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTeacherByIDURL) SetBasePath(bp string)
- func (o *GetTeacherByIDURL) String() string
- func (o *GetTeacherByIDURL) StringFull(scheme, host string) string
- func (o *GetTeacherByIDURL) WithBasePath(bp string) *GetTeacherByIDURL
- type GetTeacherOfSubject
- type GetTeacherOfSubjectHandler
- type GetTeacherOfSubjectHandlerFunc
- type GetTeacherOfSubjectInternalServerError
- type GetTeacherOfSubjectNotFound
- type GetTeacherOfSubjectOK
- type GetTeacherOfSubjectParams
- type GetTeacherOfSubjectURL
- func (o *GetTeacherOfSubjectURL) Build() (*url.URL, error)
- func (o *GetTeacherOfSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTeacherOfSubjectURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTeacherOfSubjectURL) SetBasePath(bp string)
- func (o *GetTeacherOfSubjectURL) String() string
- func (o *GetTeacherOfSubjectURL) StringFull(scheme, host string) string
- func (o *GetTeacherOfSubjectURL) WithBasePath(bp string) *GetTeacherOfSubjectURL
- type GetTeachers
- type GetTeachersHandler
- type GetTeachersHandlerFunc
- type GetTeachersInternalServerError
- type GetTeachersNotFound
- type GetTeachersOK
- type GetTeachersOfClass
- type GetTeachersOfClassHandler
- type GetTeachersOfClassHandlerFunc
- type GetTeachersOfClassInternalServerError
- type GetTeachersOfClassNotFound
- type GetTeachersOfClassOK
- type GetTeachersOfClassParams
- type GetTeachersOfClassURL
- func (o *GetTeachersOfClassURL) Build() (*url.URL, error)
- func (o *GetTeachersOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTeachersOfClassURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTeachersOfClassURL) SetBasePath(bp string)
- func (o *GetTeachersOfClassURL) String() string
- func (o *GetTeachersOfClassURL) StringFull(scheme, host string) string
- func (o *GetTeachersOfClassURL) WithBasePath(bp string) *GetTeachersOfClassURL
- type GetTeachersParams
- type GetTeachersURL
- func (o *GetTeachersURL) Build() (*url.URL, error)
- func (o *GetTeachersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTeachersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTeachersURL) SetBasePath(bp string)
- func (o *GetTeachersURL) String() string
- func (o *GetTeachersURL) StringFull(scheme, host string) string
- func (o *GetTeachersURL) WithBasePath(bp string) *GetTeachersURL
- type UpdateAccount
- type UpdateAccountHandler
- type UpdateAccountHandlerFunc
- type UpdateAccountInternalServerError
- type UpdateAccountNotFound
- type UpdateAccountOK
- type UpdateAccountParams
- type UpdateAccountURL
- func (o *UpdateAccountURL) Build() (*url.URL, error)
- func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateAccountURL) SetBasePath(bp string)
- func (o *UpdateAccountURL) String() string
- func (o *UpdateAccountURL) StringFull(scheme, host string) string
- func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
- type UpdateClassName
- type UpdateClassNameBody
- type UpdateClassNameHandler
- type UpdateClassNameHandlerFunc
- type UpdateClassNameInternalServerError
- type UpdateClassNameNotFound
- type UpdateClassNameOK
- type UpdateClassNameParams
- type UpdateClassNameURL
- func (o *UpdateClassNameURL) Build() (*url.URL, error)
- func (o *UpdateClassNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateClassNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateClassNameURL) SetBasePath(bp string)
- func (o *UpdateClassNameURL) String() string
- func (o *UpdateClassNameURL) StringFull(scheme, host string) string
- func (o *UpdateClassNameURL) WithBasePath(bp string) *UpdateClassNameURL
- type UpdateGPA
- type UpdateGPABody
- type UpdateGPAHandler
- type UpdateGPAHandlerFunc
- type UpdateGPAInternalServerError
- type UpdateGPANotFound
- type UpdateGPAOK
- type UpdateGPAParams
- type UpdateGPAURL
- func (o *UpdateGPAURL) Build() (*url.URL, error)
- func (o *UpdateGPAURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateGPAURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateGPAURL) SetBasePath(bp string)
- func (o *UpdateGPAURL) String() string
- func (o *UpdateGPAURL) StringFull(scheme, host string) string
- func (o *UpdateGPAURL) WithBasePath(bp string) *UpdateGPAURL
- type UpdateStudentName
- type UpdateStudentNameBody
- type UpdateStudentNameHandler
- type UpdateStudentNameHandlerFunc
- type UpdateStudentNameInternalServerError
- type UpdateStudentNameNotFound
- type UpdateStudentNameOK
- type UpdateStudentNameParams
- type UpdateStudentNameURL
- func (o *UpdateStudentNameURL) Build() (*url.URL, error)
- func (o *UpdateStudentNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateStudentNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateStudentNameURL) SetBasePath(bp string)
- func (o *UpdateStudentNameURL) String() string
- func (o *UpdateStudentNameURL) StringFull(scheme, host string) string
- func (o *UpdateStudentNameURL) WithBasePath(bp string) *UpdateStudentNameURL
- type UpdateSubjectName
- type UpdateSubjectNameBody
- type UpdateSubjectNameHandler
- type UpdateSubjectNameHandlerFunc
- type UpdateSubjectNameInternalServerError
- type UpdateSubjectNameNotFound
- type UpdateSubjectNameOK
- type UpdateSubjectNameParams
- type UpdateSubjectNameURL
- func (o *UpdateSubjectNameURL) Build() (*url.URL, error)
- func (o *UpdateSubjectNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSubjectNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSubjectNameURL) SetBasePath(bp string)
- func (o *UpdateSubjectNameURL) String() string
- func (o *UpdateSubjectNameURL) StringFull(scheme, host string) string
- func (o *UpdateSubjectNameURL) WithBasePath(bp string) *UpdateSubjectNameURL
- type UpdateTeacherName
- type UpdateTeacherNameBody
- type UpdateTeacherNameHandler
- type UpdateTeacherNameHandlerFunc
- type UpdateTeacherNameInternalServerError
- type UpdateTeacherNameNotFound
- type UpdateTeacherNameOK
- type UpdateTeacherNameParams
- type UpdateTeacherNameURL
- func (o *UpdateTeacherNameURL) Build() (*url.URL, error)
- func (o *UpdateTeacherNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateTeacherNameURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateTeacherNameURL) SetBasePath(bp string)
- func (o *UpdateTeacherNameURL) String() string
- func (o *UpdateTeacherNameURL) StringFull(scheme, host string) string
- func (o *UpdateTeacherNameURL) WithBasePath(bp string) *UpdateTeacherNameURL
Constants ¶
const AddAccountConflictCode int = 409
AddAccountConflictCode is the HTTP code returned for type AddAccountConflict
const AddAccountCreatedCode int = 201
AddAccountCreatedCode is the HTTP code returned for type AddAccountCreated
const AddAccountInternalServerErrorCode int = 500
AddAccountInternalServerErrorCode is the HTTP code returned for type AddAccountInternalServerError
const AddClassConflictCode int = 409
AddClassConflictCode is the HTTP code returned for type AddClassConflict
const AddClassCreatedCode int = 201
AddClassCreatedCode is the HTTP code returned for type AddClassCreated
const AddClassInternalServerErrorCode int = 500
AddClassInternalServerErrorCode is the HTTP code returned for type AddClassInternalServerError
const AddOrRemoveStudentInternalServerErrorCode int = 500
AddOrRemoveStudentInternalServerErrorCode is the HTTP code returned for type AddOrRemoveStudentInternalServerError
const AddOrRemoveStudentNotFoundCode int = 404
AddOrRemoveStudentNotFoundCode is the HTTP code returned for type AddOrRemoveStudentNotFound
const AddOrRemoveStudentOKCode int = 200
AddOrRemoveStudentOKCode is the HTTP code returned for type AddOrRemoveStudentOK
const AddStudentConflictCode int = 409
AddStudentConflictCode is the HTTP code returned for type AddStudentConflict
const AddStudentCreatedCode int = 201
AddStudentCreatedCode is the HTTP code returned for type AddStudentCreated
const AddStudentInternalServerErrorCode int = 500
AddStudentInternalServerErrorCode is the HTTP code returned for type AddStudentInternalServerError
const AddSubjectConflictCode int = 409
AddSubjectConflictCode is the HTTP code returned for type AddSubjectConflict
const AddSubjectCreatedCode int = 201
AddSubjectCreatedCode is the HTTP code returned for type AddSubjectCreated
const AddSubjectInternalServerErrorCode int = 500
AddSubjectInternalServerErrorCode is the HTTP code returned for type AddSubjectInternalServerError
const AddTeacherConflictCode int = 409
AddTeacherConflictCode is the HTTP code returned for type AddTeacherConflict
const AddTeacherCreatedCode int = 201
AddTeacherCreatedCode is the HTTP code returned for type AddTeacherCreated
const AddTeacherInternalServerErrorCode int = 500
AddTeacherInternalServerErrorCode is the HTTP code returned for type AddTeacherInternalServerError
const AssignClassInternalServerErrorCode int = 500
AssignClassInternalServerErrorCode is the HTTP code returned for type AssignClassInternalServerError
const AssignClassNotFoundCode int = 404
AssignClassNotFoundCode is the HTTP code returned for type AssignClassNotFound
const AssignClassOKCode int = 200
AssignClassOKCode is the HTTP code returned for type AssignClassOK
const AssignSubjectToStudentInternalServerErrorCode int = 500
AssignSubjectToStudentInternalServerErrorCode is the HTTP code returned for type AssignSubjectToStudentInternalServerError
const AssignSubjectToStudentNotFoundCode int = 404
AssignSubjectToStudentNotFoundCode is the HTTP code returned for type AssignSubjectToStudentNotFound
const AssignSubjectToStudentOKCode int = 200
AssignSubjectToStudentOKCode is the HTTP code returned for type AssignSubjectToStudentOK
const AssignSubjectToTeacherInternalServerErrorCode int = 500
AssignSubjectToTeacherInternalServerErrorCode is the HTTP code returned for type AssignSubjectToTeacherInternalServerError
const AssignSubjectToTeacherNotFoundCode int = 404
AssignSubjectToTeacherNotFoundCode is the HTTP code returned for type AssignSubjectToTeacherNotFound
const AssignSubjectToTeacherOKCode int = 200
AssignSubjectToTeacherOKCode is the HTTP code returned for type AssignSubjectToTeacherOK
const DeleteAccountInternalServerErrorCode int = 500
DeleteAccountInternalServerErrorCode is the HTTP code returned for type DeleteAccountInternalServerError
const DeleteAccountNoContentCode int = 204
DeleteAccountNoContentCode is the HTTP code returned for type DeleteAccountNoContent
const DeleteAccountNotFoundCode int = 404
DeleteAccountNotFoundCode is the HTTP code returned for type DeleteAccountNotFound
const DeleteClassInternalServerErrorCode int = 500
DeleteClassInternalServerErrorCode is the HTTP code returned for type DeleteClassInternalServerError
const DeleteClassNoContentCode int = 204
DeleteClassNoContentCode is the HTTP code returned for type DeleteClassNoContent
const DeleteClassNotFoundCode int = 404
DeleteClassNotFoundCode is the HTTP code returned for type DeleteClassNotFound
const DeleteStudentInternalServerErrorCode int = 500
DeleteStudentInternalServerErrorCode is the HTTP code returned for type DeleteStudentInternalServerError
const DeleteStudentNoContentCode int = 204
DeleteStudentNoContentCode is the HTTP code returned for type DeleteStudentNoContent
const DeleteStudentNotFoundCode int = 404
DeleteStudentNotFoundCode is the HTTP code returned for type DeleteStudentNotFound
const DeleteSubjectInternalServerErrorCode int = 500
DeleteSubjectInternalServerErrorCode is the HTTP code returned for type DeleteSubjectInternalServerError
const DeleteSubjectNoContentCode int = 204
DeleteSubjectNoContentCode is the HTTP code returned for type DeleteSubjectNoContent
const DeleteSubjectNotFoundCode int = 404
DeleteSubjectNotFoundCode is the HTTP code returned for type DeleteSubjectNotFound
const DeleteTeacherInternalServerErrorCode int = 500
DeleteTeacherInternalServerErrorCode is the HTTP code returned for type DeleteTeacherInternalServerError
const DeleteTeacherNoContentCode int = 204
DeleteTeacherNoContentCode is the HTTP code returned for type DeleteTeacherNoContent
const DeleteTeacherNotFoundCode int = 404
DeleteTeacherNotFoundCode is the HTTP code returned for type DeleteTeacherNotFound
const GetAccountByIDInternalServerErrorCode int = 500
GetAccountByIDInternalServerErrorCode is the HTTP code returned for type GetAccountByIDInternalServerError
const GetAccountByIDNotFoundCode int = 404
GetAccountByIDNotFoundCode is the HTTP code returned for type GetAccountByIDNotFound
const GetAccountByIDOKCode int = 200
GetAccountByIDOKCode is the HTTP code returned for type GetAccountByIDOK
const GetAccountsInternalServerErrorCode int = 500
GetAccountsInternalServerErrorCode is the HTTP code returned for type GetAccountsInternalServerError
const GetAccountsNotFoundCode int = 404
GetAccountsNotFoundCode is the HTTP code returned for type GetAccountsNotFound
const GetAccountsOKCode int = 200
GetAccountsOKCode is the HTTP code returned for type GetAccountsOK
const GetClassByIDInternalServerErrorCode int = 500
GetClassByIDInternalServerErrorCode is the HTTP code returned for type GetClassByIDInternalServerError
const GetClassByIDNotFoundCode int = 404
GetClassByIDNotFoundCode is the HTTP code returned for type GetClassByIDNotFound
const GetClassByIDOKCode int = 200
GetClassByIDOKCode is the HTTP code returned for type GetClassByIDOK
const GetClassOfTeacherInternalServerErrorCode int = 500
GetClassOfTeacherInternalServerErrorCode is the HTTP code returned for type GetClassOfTeacherInternalServerError
const GetClassOfTeacherNotFoundCode int = 404
GetClassOfTeacherNotFoundCode is the HTTP code returned for type GetClassOfTeacherNotFound
const GetClassOfTeacherOKCode int = 200
GetClassOfTeacherOKCode is the HTTP code returned for type GetClassOfTeacherOK
const GetClassesInternalServerErrorCode int = 500
GetClassesInternalServerErrorCode is the HTTP code returned for type GetClassesInternalServerError
const GetClassesNotFoundCode int = 404
GetClassesNotFoundCode is the HTTP code returned for type GetClassesNotFound
const GetClassesOKCode int = 200
GetClassesOKCode is the HTTP code returned for type GetClassesOK
const GetClassesOfStudentInternalServerErrorCode int = 500
GetClassesOfStudentInternalServerErrorCode is the HTTP code returned for type GetClassesOfStudentInternalServerError
const GetClassesOfStudentNotFoundCode int = 404
GetClassesOfStudentNotFoundCode is the HTTP code returned for type GetClassesOfStudentNotFound
const GetClassesOfStudentOKCode int = 200
GetClassesOfStudentOKCode is the HTTP code returned for type GetClassesOfStudentOK
const GetDefaultedStudentAccountsInternalServerErrorCode int = 500
GetDefaultedStudentAccountsInternalServerErrorCode is the HTTP code returned for type GetDefaultedStudentAccountsInternalServerError
const GetDefaultedStudentAccountsNotFoundCode int = 404
GetDefaultedStudentAccountsNotFoundCode is the HTTP code returned for type GetDefaultedStudentAccountsNotFound
const GetDefaultedStudentAccountsOKCode int = 200
GetDefaultedStudentAccountsOKCode is the HTTP code returned for type GetDefaultedStudentAccountsOK
const GetStudentAccountsInternalServerErrorCode int = 500
GetStudentAccountsInternalServerErrorCode is the HTTP code returned for type GetStudentAccountsInternalServerError
const GetStudentAccountsNotFoundCode int = 404
GetStudentAccountsNotFoundCode is the HTTP code returned for type GetStudentAccountsNotFound
const GetStudentAccountsOKCode int = 200
GetStudentAccountsOKCode is the HTTP code returned for type GetStudentAccountsOK
const GetStudentByIDInternalServerErrorCode int = 500
GetStudentByIDInternalServerErrorCode is the HTTP code returned for type GetStudentByIDInternalServerError
const GetStudentByIDNotFoundCode int = 404
GetStudentByIDNotFoundCode is the HTTP code returned for type GetStudentByIDNotFound
const GetStudentByIDOKCode int = 200
GetStudentByIDOKCode is the HTTP code returned for type GetStudentByIDOK
const GetStudentsInternalServerErrorCode int = 500
GetStudentsInternalServerErrorCode is the HTTP code returned for type GetStudentsInternalServerError
const GetStudentsNotFoundCode int = 404
GetStudentsNotFoundCode is the HTTP code returned for type GetStudentsNotFound
const GetStudentsOKCode int = 200
GetStudentsOKCode is the HTTP code returned for type GetStudentsOK
const GetStudentsOfClassInternalServerErrorCode int = 500
GetStudentsOfClassInternalServerErrorCode is the HTTP code returned for type GetStudentsOfClassInternalServerError
const GetStudentsOfClassNotFoundCode int = 404
GetStudentsOfClassNotFoundCode is the HTTP code returned for type GetStudentsOfClassNotFound
const GetStudentsOfClassOKCode int = 200
GetStudentsOfClassOKCode is the HTTP code returned for type GetStudentsOfClassOK
const GetStudentsOfSubjectInternalServerErrorCode int = 500
GetStudentsOfSubjectInternalServerErrorCode is the HTTP code returned for type GetStudentsOfSubjectInternalServerError
const GetStudentsOfSubjectNotFoundCode int = 404
GetStudentsOfSubjectNotFoundCode is the HTTP code returned for type GetStudentsOfSubjectNotFound
const GetStudentsOfSubjectOKCode int = 200
GetStudentsOfSubjectOKCode is the HTTP code returned for type GetStudentsOfSubjectOK
const GetStudentsOfTeacherInternalServerErrorCode int = 500
GetStudentsOfTeacherInternalServerErrorCode is the HTTP code returned for type GetStudentsOfTeacherInternalServerError
const GetStudentsOfTeacherNotFoundCode int = 404
GetStudentsOfTeacherNotFoundCode is the HTTP code returned for type GetStudentsOfTeacherNotFound
const GetStudentsOfTeacherOKCode int = 200
GetStudentsOfTeacherOKCode is the HTTP code returned for type GetStudentsOfTeacherOK
const GetSubjectByIDInternalServerErrorCode int = 500
GetSubjectByIDInternalServerErrorCode is the HTTP code returned for type GetSubjectByIDInternalServerError
const GetSubjectByIDNotFoundCode int = 404
GetSubjectByIDNotFoundCode is the HTTP code returned for type GetSubjectByIDNotFound
const GetSubjectByIDOKCode int = 200
GetSubjectByIDOKCode is the HTTP code returned for type GetSubjectByIDOK
const GetSubjectsInternalServerErrorCode int = 500
GetSubjectsInternalServerErrorCode is the HTTP code returned for type GetSubjectsInternalServerError
const GetSubjectsNotFoundCode int = 404
GetSubjectsNotFoundCode is the HTTP code returned for type GetSubjectsNotFound
const GetSubjectsOKCode int = 200
GetSubjectsOKCode is the HTTP code returned for type GetSubjectsOK
const GetSubjectsOfClassInternalServerErrorCode int = 500
GetSubjectsOfClassInternalServerErrorCode is the HTTP code returned for type GetSubjectsOfClassInternalServerError
const GetSubjectsOfClassNotFoundCode int = 404
GetSubjectsOfClassNotFoundCode is the HTTP code returned for type GetSubjectsOfClassNotFound
const GetSubjectsOfClassOKCode int = 200
GetSubjectsOfClassOKCode is the HTTP code returned for type GetSubjectsOfClassOK
const GetSubjectsOfStudentInternalServerErrorCode int = 500
GetSubjectsOfStudentInternalServerErrorCode is the HTTP code returned for type GetSubjectsOfStudentInternalServerError
const GetSubjectsOfStudentNotFoundCode int = 404
GetSubjectsOfStudentNotFoundCode is the HTTP code returned for type GetSubjectsOfStudentNotFound
const GetSubjectsOfStudentOKCode int = 200
GetSubjectsOfStudentOKCode is the HTTP code returned for type GetSubjectsOfStudentOK
const GetTeacherAccountsInternalServerErrorCode int = 500
GetTeacherAccountsInternalServerErrorCode is the HTTP code returned for type GetTeacherAccountsInternalServerError
const GetTeacherAccountsNotFoundCode int = 404
GetTeacherAccountsNotFoundCode is the HTTP code returned for type GetTeacherAccountsNotFound
const GetTeacherAccountsOKCode int = 200
GetTeacherAccountsOKCode is the HTTP code returned for type GetTeacherAccountsOK
const GetTeacherByIDInternalServerErrorCode int = 500
GetTeacherByIDInternalServerErrorCode is the HTTP code returned for type GetTeacherByIDInternalServerError
const GetTeacherByIDNotFoundCode int = 404
GetTeacherByIDNotFoundCode is the HTTP code returned for type GetTeacherByIDNotFound
const GetTeacherByIDOKCode int = 200
GetTeacherByIDOKCode is the HTTP code returned for type GetTeacherByIDOK
const GetTeacherOfSubjectInternalServerErrorCode int = 500
GetTeacherOfSubjectInternalServerErrorCode is the HTTP code returned for type GetTeacherOfSubjectInternalServerError
const GetTeacherOfSubjectNotFoundCode int = 404
GetTeacherOfSubjectNotFoundCode is the HTTP code returned for type GetTeacherOfSubjectNotFound
const GetTeacherOfSubjectOKCode int = 200
GetTeacherOfSubjectOKCode is the HTTP code returned for type GetTeacherOfSubjectOK
const GetTeachersInternalServerErrorCode int = 500
GetTeachersInternalServerErrorCode is the HTTP code returned for type GetTeachersInternalServerError
const GetTeachersNotFoundCode int = 404
GetTeachersNotFoundCode is the HTTP code returned for type GetTeachersNotFound
const GetTeachersOKCode int = 200
GetTeachersOKCode is the HTTP code returned for type GetTeachersOK
const GetTeachersOfClassInternalServerErrorCode int = 500
GetTeachersOfClassInternalServerErrorCode is the HTTP code returned for type GetTeachersOfClassInternalServerError
const GetTeachersOfClassNotFoundCode int = 404
GetTeachersOfClassNotFoundCode is the HTTP code returned for type GetTeachersOfClassNotFound
const GetTeachersOfClassOKCode int = 200
GetTeachersOfClassOKCode is the HTTP code returned for type GetTeachersOfClassOK
const UpdateAccountInternalServerErrorCode int = 500
UpdateAccountInternalServerErrorCode is the HTTP code returned for type UpdateAccountInternalServerError
const UpdateAccountNotFoundCode int = 404
UpdateAccountNotFoundCode is the HTTP code returned for type UpdateAccountNotFound
const UpdateAccountOKCode int = 200
UpdateAccountOKCode is the HTTP code returned for type UpdateAccountOK
const UpdateClassNameInternalServerErrorCode int = 500
UpdateClassNameInternalServerErrorCode is the HTTP code returned for type UpdateClassNameInternalServerError
const UpdateClassNameNotFoundCode int = 404
UpdateClassNameNotFoundCode is the HTTP code returned for type UpdateClassNameNotFound
const UpdateClassNameOKCode int = 200
UpdateClassNameOKCode is the HTTP code returned for type UpdateClassNameOK
const UpdateGPAInternalServerErrorCode int = 500
UpdateGPAInternalServerErrorCode is the HTTP code returned for type UpdateGPAInternalServerError
const UpdateGPANotFoundCode int = 404
UpdateGPANotFoundCode is the HTTP code returned for type UpdateGPANotFound
const UpdateGPAOKCode int = 200
UpdateGPAOKCode is the HTTP code returned for type UpdateGPAOK
const UpdateStudentNameInternalServerErrorCode int = 500
UpdateStudentNameInternalServerErrorCode is the HTTP code returned for type UpdateStudentNameInternalServerError
const UpdateStudentNameNotFoundCode int = 404
UpdateStudentNameNotFoundCode is the HTTP code returned for type UpdateStudentNameNotFound
const UpdateStudentNameOKCode int = 200
UpdateStudentNameOKCode is the HTTP code returned for type UpdateStudentNameOK
const UpdateSubjectNameInternalServerErrorCode int = 500
UpdateSubjectNameInternalServerErrorCode is the HTTP code returned for type UpdateSubjectNameInternalServerError
const UpdateSubjectNameNotFoundCode int = 404
UpdateSubjectNameNotFoundCode is the HTTP code returned for type UpdateSubjectNameNotFound
const UpdateSubjectNameOKCode int = 200
UpdateSubjectNameOKCode is the HTTP code returned for type UpdateSubjectNameOK
const UpdateTeacherNameInternalServerErrorCode int = 500
UpdateTeacherNameInternalServerErrorCode is the HTTP code returned for type UpdateTeacherNameInternalServerError
const UpdateTeacherNameNotFoundCode int = 404
UpdateTeacherNameNotFoundCode is the HTTP code returned for type UpdateTeacherNameNotFound
const UpdateTeacherNameOKCode int = 200
UpdateTeacherNameOKCode is the HTTP code returned for type UpdateTeacherNameOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAccount ¶
type AddAccount struct { Context *middleware.Context Handler AddAccountHandler }
AddAccount swagger:route POST /account addAccount
AddAccount add account API
func NewAddAccount ¶
func NewAddAccount(ctx *middleware.Context, handler AddAccountHandler) *AddAccount
NewAddAccount creates a new http.Handler for the add account operation
func (*AddAccount) ServeHTTP ¶
func (o *AddAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddAccountConflict ¶
type AddAccountConflict struct { }
AddAccountConflict Account already exists
swagger:response addAccountConflict
func NewAddAccountConflict ¶
func NewAddAccountConflict() *AddAccountConflict
NewAddAccountConflict creates AddAccountConflict with default headers values
func (*AddAccountConflict) WriteResponse ¶
func (o *AddAccountConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAccountCreated ¶
AddAccountCreated Account added Successfully
swagger:response addAccountCreated
func NewAddAccountCreated ¶
func NewAddAccountCreated() *AddAccountCreated
NewAddAccountCreated creates AddAccountCreated with default headers values
func (*AddAccountCreated) SetPayload ¶
func (o *AddAccountCreated) SetPayload(payload *models.Account)
SetPayload sets the payload to the add account created response
func (*AddAccountCreated) WithPayload ¶
func (o *AddAccountCreated) WithPayload(payload *models.Account) *AddAccountCreated
WithPayload adds the payload to the add account created response
func (*AddAccountCreated) WriteResponse ¶
func (o *AddAccountCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAccountHandler ¶
type AddAccountHandler interface {
Handle(AddAccountParams) middleware.Responder
}
AddAccountHandler interface for that can handle valid add account params
type AddAccountHandlerFunc ¶
type AddAccountHandlerFunc func(AddAccountParams) middleware.Responder
AddAccountHandlerFunc turns a function with the right signature into a add account handler
func (AddAccountHandlerFunc) Handle ¶
func (fn AddAccountHandlerFunc) Handle(params AddAccountParams) middleware.Responder
Handle executing the request and returning a response
type AddAccountInternalServerError ¶
type AddAccountInternalServerError struct { }
AddAccountInternalServerError Internal server error
swagger:response addAccountInternalServerError
func NewAddAccountInternalServerError ¶
func NewAddAccountInternalServerError() *AddAccountInternalServerError
NewAddAccountInternalServerError creates AddAccountInternalServerError with default headers values
func (*AddAccountInternalServerError) WriteResponse ¶
func (o *AddAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAccountParams ¶
type AddAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account to be added Required: true In: body */ Account *models.Account }
AddAccountParams contains all the bound params for the add account operation typically these are obtained from a http.Request
swagger:parameters addAccount
func NewAddAccountParams ¶
func NewAddAccountParams() AddAccountParams
NewAddAccountParams creates a new AddAccountParams object
There are no default values defined in the spec.
func (*AddAccountParams) BindRequest ¶
func (o *AddAccountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddAccountParams() beforehand.
type AddAccountURL ¶
type AddAccountURL struct {
// contains filtered or unexported fields
}
AddAccountURL generates an URL for the add account operation
func (*AddAccountURL) Build ¶
func (o *AddAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddAccountURL) BuildFull ¶
func (o *AddAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddAccountURL) SetBasePath ¶
func (o *AddAccountURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddAccountURL) String ¶
func (o *AddAccountURL) String() string
String returns the string representation of the path with query string
func (*AddAccountURL) StringFull ¶
func (o *AddAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddAccountURL) WithBasePath ¶
func (o *AddAccountURL) WithBasePath(bp string) *AddAccountURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddClass ¶
type AddClass struct { Context *middleware.Context Handler AddClassHandler }
AddClass swagger:route POST /class addClass
AddClass add class API
func NewAddClass ¶
func NewAddClass(ctx *middleware.Context, handler AddClassHandler) *AddClass
NewAddClass creates a new http.Handler for the add class operation
type AddClassConflict ¶
type AddClassConflict struct { }
AddClassConflict Class already exists
swagger:response addClassConflict
func NewAddClassConflict ¶
func NewAddClassConflict() *AddClassConflict
NewAddClassConflict creates AddClassConflict with default headers values
func (*AddClassConflict) WriteResponse ¶
func (o *AddClassConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClassCreated ¶
AddClassCreated Class added Successfully
swagger:response addClassCreated
func NewAddClassCreated ¶
func NewAddClassCreated() *AddClassCreated
NewAddClassCreated creates AddClassCreated with default headers values
func (*AddClassCreated) SetPayload ¶
func (o *AddClassCreated) SetPayload(payload *models.Class)
SetPayload sets the payload to the add class created response
func (*AddClassCreated) WithPayload ¶
func (o *AddClassCreated) WithPayload(payload *models.Class) *AddClassCreated
WithPayload adds the payload to the add class created response
func (*AddClassCreated) WriteResponse ¶
func (o *AddClassCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClassHandler ¶
type AddClassHandler interface {
Handle(AddClassParams) middleware.Responder
}
AddClassHandler interface for that can handle valid add class params
type AddClassHandlerFunc ¶
type AddClassHandlerFunc func(AddClassParams) middleware.Responder
AddClassHandlerFunc turns a function with the right signature into a add class handler
func (AddClassHandlerFunc) Handle ¶
func (fn AddClassHandlerFunc) Handle(params AddClassParams) middleware.Responder
Handle executing the request and returning a response
type AddClassInternalServerError ¶
type AddClassInternalServerError struct { }
AddClassInternalServerError Internal server error
swagger:response addClassInternalServerError
func NewAddClassInternalServerError ¶
func NewAddClassInternalServerError() *AddClassInternalServerError
NewAddClassInternalServerError creates AddClassInternalServerError with default headers values
func (*AddClassInternalServerError) WriteResponse ¶
func (o *AddClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddClassParams ¶
type AddClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Class to be added Required: true In: body */ Class *models.Class }
AddClassParams contains all the bound params for the add class operation typically these are obtained from a http.Request
swagger:parameters addClass
func NewAddClassParams ¶
func NewAddClassParams() AddClassParams
NewAddClassParams creates a new AddClassParams object
There are no default values defined in the spec.
func (*AddClassParams) BindRequest ¶
func (o *AddClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddClassParams() beforehand.
type AddClassURL ¶
type AddClassURL struct {
// contains filtered or unexported fields
}
AddClassURL generates an URL for the add class operation
func (*AddClassURL) Build ¶
func (o *AddClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddClassURL) BuildFull ¶
func (o *AddClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddClassURL) SetBasePath ¶
func (o *AddClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddClassURL) String ¶
func (o *AddClassURL) String() string
String returns the string representation of the path with query string
func (*AddClassURL) StringFull ¶
func (o *AddClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddClassURL) WithBasePath ¶
func (o *AddClassURL) WithBasePath(bp string) *AddClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddOrRemoveStudent ¶
type AddOrRemoveStudent struct { Context *middleware.Context Handler AddOrRemoveStudentHandler }
AddOrRemoveStudent swagger:route PATCH /class/{ID}/student addOrRemoveStudent
AddOrRemoveStudent add or remove student API
func NewAddOrRemoveStudent ¶
func NewAddOrRemoveStudent(ctx *middleware.Context, handler AddOrRemoveStudentHandler) *AddOrRemoveStudent
NewAddOrRemoveStudent creates a new http.Handler for the add or remove student operation
func (*AddOrRemoveStudent) ServeHTTP ¶
func (o *AddOrRemoveStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddOrRemoveStudentBody ¶
type AddOrRemoveStudentBody struct { // add Add bool `json:"Add,omitempty"` // student ID StudentID int64 `json:"StudentID,omitempty"` }
AddOrRemoveStudentBody add or remove student body
swagger:model AddOrRemoveStudentBody
func (*AddOrRemoveStudentBody) ContextValidate ¶
func (o *AddOrRemoveStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this add or remove student body based on context it is used
func (*AddOrRemoveStudentBody) MarshalBinary ¶
func (o *AddOrRemoveStudentBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddOrRemoveStudentBody) UnmarshalBinary ¶
func (o *AddOrRemoveStudentBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddOrRemoveStudentHandler ¶
type AddOrRemoveStudentHandler interface {
Handle(AddOrRemoveStudentParams) middleware.Responder
}
AddOrRemoveStudentHandler interface for that can handle valid add or remove student params
type AddOrRemoveStudentHandlerFunc ¶
type AddOrRemoveStudentHandlerFunc func(AddOrRemoveStudentParams) middleware.Responder
AddOrRemoveStudentHandlerFunc turns a function with the right signature into a add or remove student handler
func (AddOrRemoveStudentHandlerFunc) Handle ¶
func (fn AddOrRemoveStudentHandlerFunc) Handle(params AddOrRemoveStudentParams) middleware.Responder
Handle executing the request and returning a response
type AddOrRemoveStudentInternalServerError ¶
type AddOrRemoveStudentInternalServerError struct { }
AddOrRemoveStudentInternalServerError Internal Server Error
swagger:response addOrRemoveStudentInternalServerError
func NewAddOrRemoveStudentInternalServerError ¶
func NewAddOrRemoveStudentInternalServerError() *AddOrRemoveStudentInternalServerError
NewAddOrRemoveStudentInternalServerError creates AddOrRemoveStudentInternalServerError with default headers values
func (*AddOrRemoveStudentInternalServerError) WriteResponse ¶
func (o *AddOrRemoveStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddOrRemoveStudentNotFound ¶
type AddOrRemoveStudentNotFound struct { }
AddOrRemoveStudentNotFound Class Not found!
swagger:response addOrRemoveStudentNotFound
func NewAddOrRemoveStudentNotFound ¶
func NewAddOrRemoveStudentNotFound() *AddOrRemoveStudentNotFound
NewAddOrRemoveStudentNotFound creates AddOrRemoveStudentNotFound with default headers values
func (*AddOrRemoveStudentNotFound) WriteResponse ¶
func (o *AddOrRemoveStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddOrRemoveStudentOK ¶
type AddOrRemoveStudentOK struct { /*The ID of the Class! In: Body */ Payload int64 `json:"body,omitempty"` }
AddOrRemoveStudentOK Student added/removed to Class
swagger:response addOrRemoveStudentOK
func NewAddOrRemoveStudentOK ¶
func NewAddOrRemoveStudentOK() *AddOrRemoveStudentOK
NewAddOrRemoveStudentOK creates AddOrRemoveStudentOK with default headers values
func (*AddOrRemoveStudentOK) SetPayload ¶
func (o *AddOrRemoveStudentOK) SetPayload(payload int64)
SetPayload sets the payload to the add or remove student o k response
func (*AddOrRemoveStudentOK) WithPayload ¶
func (o *AddOrRemoveStudentOK) WithPayload(payload int64) *AddOrRemoveStudentOK
WithPayload adds the payload to the add or remove student o k response
func (*AddOrRemoveStudentOK) WriteResponse ¶
func (o *AddOrRemoveStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddOrRemoveStudentParams ¶
type AddOrRemoveStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Class ID Required: true In: path */ ID int64 /*The object containing ID of Student to be added or removed with operation Required: true In: body */ Student AddOrRemoveStudentBody }
AddOrRemoveStudentParams contains all the bound params for the add or remove student operation typically these are obtained from a http.Request
swagger:parameters addOrRemoveStudent
func NewAddOrRemoveStudentParams ¶
func NewAddOrRemoveStudentParams() AddOrRemoveStudentParams
NewAddOrRemoveStudentParams creates a new AddOrRemoveStudentParams object
There are no default values defined in the spec.
func (*AddOrRemoveStudentParams) BindRequest ¶
func (o *AddOrRemoveStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddOrRemoveStudentParams() beforehand.
type AddOrRemoveStudentURL ¶
type AddOrRemoveStudentURL struct { ID int64 // contains filtered or unexported fields }
AddOrRemoveStudentURL generates an URL for the add or remove student operation
func (*AddOrRemoveStudentURL) Build ¶
func (o *AddOrRemoveStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddOrRemoveStudentURL) BuildFull ¶
func (o *AddOrRemoveStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddOrRemoveStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddOrRemoveStudentURL) SetBasePath ¶
func (o *AddOrRemoveStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddOrRemoveStudentURL) String ¶
func (o *AddOrRemoveStudentURL) String() string
String returns the string representation of the path with query string
func (*AddOrRemoveStudentURL) StringFull ¶
func (o *AddOrRemoveStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddOrRemoveStudentURL) WithBasePath ¶
func (o *AddOrRemoveStudentURL) WithBasePath(bp string) *AddOrRemoveStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddStudent ¶
type AddStudent struct { Context *middleware.Context Handler AddStudentHandler }
AddStudent swagger:route POST /student addStudent
AddStudent add student API
func NewAddStudent ¶
func NewAddStudent(ctx *middleware.Context, handler AddStudentHandler) *AddStudent
NewAddStudent creates a new http.Handler for the add student operation
func (*AddStudent) ServeHTTP ¶
func (o *AddStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddStudentConflict ¶
type AddStudentConflict struct { }
AddStudentConflict Student already exists
swagger:response addStudentConflict
func NewAddStudentConflict ¶
func NewAddStudentConflict() *AddStudentConflict
NewAddStudentConflict creates AddStudentConflict with default headers values
func (*AddStudentConflict) WriteResponse ¶
func (o *AddStudentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddStudentCreated ¶
AddStudentCreated Student added Successfully
swagger:response addStudentCreated
func NewAddStudentCreated ¶
func NewAddStudentCreated() *AddStudentCreated
NewAddStudentCreated creates AddStudentCreated with default headers values
func (*AddStudentCreated) SetPayload ¶
func (o *AddStudentCreated) SetPayload(payload *models.Student)
SetPayload sets the payload to the add student created response
func (*AddStudentCreated) WithPayload ¶
func (o *AddStudentCreated) WithPayload(payload *models.Student) *AddStudentCreated
WithPayload adds the payload to the add student created response
func (*AddStudentCreated) WriteResponse ¶
func (o *AddStudentCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddStudentHandler ¶
type AddStudentHandler interface {
Handle(AddStudentParams) middleware.Responder
}
AddStudentHandler interface for that can handle valid add student params
type AddStudentHandlerFunc ¶
type AddStudentHandlerFunc func(AddStudentParams) middleware.Responder
AddStudentHandlerFunc turns a function with the right signature into a add student handler
func (AddStudentHandlerFunc) Handle ¶
func (fn AddStudentHandlerFunc) Handle(params AddStudentParams) middleware.Responder
Handle executing the request and returning a response
type AddStudentInternalServerError ¶
type AddStudentInternalServerError struct { }
AddStudentInternalServerError Internal server error
swagger:response addStudentInternalServerError
func NewAddStudentInternalServerError ¶
func NewAddStudentInternalServerError() *AddStudentInternalServerError
NewAddStudentInternalServerError creates AddStudentInternalServerError with default headers values
func (*AddStudentInternalServerError) WriteResponse ¶
func (o *AddStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddStudentParams ¶
type AddStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Student to be added Required: true In: body */ Student *models.Student }
AddStudentParams contains all the bound params for the add student operation typically these are obtained from a http.Request
swagger:parameters addStudent
func NewAddStudentParams ¶
func NewAddStudentParams() AddStudentParams
NewAddStudentParams creates a new AddStudentParams object
There are no default values defined in the spec.
func (*AddStudentParams) BindRequest ¶
func (o *AddStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddStudentParams() beforehand.
type AddStudentURL ¶
type AddStudentURL struct {
// contains filtered or unexported fields
}
AddStudentURL generates an URL for the add student operation
func (*AddStudentURL) Build ¶
func (o *AddStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddStudentURL) BuildFull ¶
func (o *AddStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddStudentURL) SetBasePath ¶
func (o *AddStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddStudentURL) String ¶
func (o *AddStudentURL) String() string
String returns the string representation of the path with query string
func (*AddStudentURL) StringFull ¶
func (o *AddStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddStudentURL) WithBasePath ¶
func (o *AddStudentURL) WithBasePath(bp string) *AddStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddSubject ¶
type AddSubject struct { Context *middleware.Context Handler AddSubjectHandler }
AddSubject swagger:route POST /subject addSubject
AddSubject add subject API
func NewAddSubject ¶
func NewAddSubject(ctx *middleware.Context, handler AddSubjectHandler) *AddSubject
NewAddSubject creates a new http.Handler for the add subject operation
func (*AddSubject) ServeHTTP ¶
func (o *AddSubject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddSubjectConflict ¶
type AddSubjectConflict struct { }
AddSubjectConflict Subject already exists
swagger:response addSubjectConflict
func NewAddSubjectConflict ¶
func NewAddSubjectConflict() *AddSubjectConflict
NewAddSubjectConflict creates AddSubjectConflict with default headers values
func (*AddSubjectConflict) WriteResponse ¶
func (o *AddSubjectConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddSubjectCreated ¶
AddSubjectCreated Subject added Successfully
swagger:response addSubjectCreated
func NewAddSubjectCreated ¶
func NewAddSubjectCreated() *AddSubjectCreated
NewAddSubjectCreated creates AddSubjectCreated with default headers values
func (*AddSubjectCreated) SetPayload ¶
func (o *AddSubjectCreated) SetPayload(payload *models.Subject)
SetPayload sets the payload to the add subject created response
func (*AddSubjectCreated) WithPayload ¶
func (o *AddSubjectCreated) WithPayload(payload *models.Subject) *AddSubjectCreated
WithPayload adds the payload to the add subject created response
func (*AddSubjectCreated) WriteResponse ¶
func (o *AddSubjectCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddSubjectHandler ¶
type AddSubjectHandler interface {
Handle(AddSubjectParams) middleware.Responder
}
AddSubjectHandler interface for that can handle valid add subject params
type AddSubjectHandlerFunc ¶
type AddSubjectHandlerFunc func(AddSubjectParams) middleware.Responder
AddSubjectHandlerFunc turns a function with the right signature into a add subject handler
func (AddSubjectHandlerFunc) Handle ¶
func (fn AddSubjectHandlerFunc) Handle(params AddSubjectParams) middleware.Responder
Handle executing the request and returning a response
type AddSubjectInternalServerError ¶
type AddSubjectInternalServerError struct { }
AddSubjectInternalServerError Internal server error
swagger:response addSubjectInternalServerError
func NewAddSubjectInternalServerError ¶
func NewAddSubjectInternalServerError() *AddSubjectInternalServerError
NewAddSubjectInternalServerError creates AddSubjectInternalServerError with default headers values
func (*AddSubjectInternalServerError) WriteResponse ¶
func (o *AddSubjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddSubjectParams ¶
type AddSubjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Subject to be added Required: true In: body */ Subject *models.Subject }
AddSubjectParams contains all the bound params for the add subject operation typically these are obtained from a http.Request
swagger:parameters addSubject
func NewAddSubjectParams ¶
func NewAddSubjectParams() AddSubjectParams
NewAddSubjectParams creates a new AddSubjectParams object
There are no default values defined in the spec.
func (*AddSubjectParams) BindRequest ¶
func (o *AddSubjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddSubjectParams() beforehand.
type AddSubjectURL ¶
type AddSubjectURL struct {
// contains filtered or unexported fields
}
AddSubjectURL generates an URL for the add subject operation
func (*AddSubjectURL) Build ¶
func (o *AddSubjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddSubjectURL) BuildFull ¶
func (o *AddSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddSubjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddSubjectURL) SetBasePath ¶
func (o *AddSubjectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddSubjectURL) String ¶
func (o *AddSubjectURL) String() string
String returns the string representation of the path with query string
func (*AddSubjectURL) StringFull ¶
func (o *AddSubjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddSubjectURL) WithBasePath ¶
func (o *AddSubjectURL) WithBasePath(bp string) *AddSubjectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddTeacher ¶
type AddTeacher struct { Context *middleware.Context Handler AddTeacherHandler }
AddTeacher swagger:route POST /teacher addTeacher
AddTeacher add teacher API
func NewAddTeacher ¶
func NewAddTeacher(ctx *middleware.Context, handler AddTeacherHandler) *AddTeacher
NewAddTeacher creates a new http.Handler for the add teacher operation
func (*AddTeacher) ServeHTTP ¶
func (o *AddTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddTeacherConflict ¶
type AddTeacherConflict struct { }
AddTeacherConflict Teacher already exists
swagger:response addTeacherConflict
func NewAddTeacherConflict ¶
func NewAddTeacherConflict() *AddTeacherConflict
NewAddTeacherConflict creates AddTeacherConflict with default headers values
func (*AddTeacherConflict) WriteResponse ¶
func (o *AddTeacherConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTeacherCreated ¶
AddTeacherCreated Teacher registered Successfully!
swagger:response addTeacherCreated
func NewAddTeacherCreated ¶
func NewAddTeacherCreated() *AddTeacherCreated
NewAddTeacherCreated creates AddTeacherCreated with default headers values
func (*AddTeacherCreated) SetPayload ¶
func (o *AddTeacherCreated) SetPayload(payload *models.Teacher)
SetPayload sets the payload to the add teacher created response
func (*AddTeacherCreated) WithPayload ¶
func (o *AddTeacherCreated) WithPayload(payload *models.Teacher) *AddTeacherCreated
WithPayload adds the payload to the add teacher created response
func (*AddTeacherCreated) WriteResponse ¶
func (o *AddTeacherCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTeacherHandler ¶
type AddTeacherHandler interface {
Handle(AddTeacherParams) middleware.Responder
}
AddTeacherHandler interface for that can handle valid add teacher params
type AddTeacherHandlerFunc ¶
type AddTeacherHandlerFunc func(AddTeacherParams) middleware.Responder
AddTeacherHandlerFunc turns a function with the right signature into a add teacher handler
func (AddTeacherHandlerFunc) Handle ¶
func (fn AddTeacherHandlerFunc) Handle(params AddTeacherParams) middleware.Responder
Handle executing the request and returning a response
type AddTeacherInternalServerError ¶
type AddTeacherInternalServerError struct { }
AddTeacherInternalServerError Internal Server Error
swagger:response addTeacherInternalServerError
func NewAddTeacherInternalServerError ¶
func NewAddTeacherInternalServerError() *AddTeacherInternalServerError
NewAddTeacherInternalServerError creates AddTeacherInternalServerError with default headers values
func (*AddTeacherInternalServerError) WriteResponse ¶
func (o *AddTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTeacherParams ¶
type AddTeacherParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Teacher Registration Data Required: true In: body */ Teacher *models.Teacher }
AddTeacherParams contains all the bound params for the add teacher operation typically these are obtained from a http.Request
swagger:parameters addTeacher
func NewAddTeacherParams ¶
func NewAddTeacherParams() AddTeacherParams
NewAddTeacherParams creates a new AddTeacherParams object
There are no default values defined in the spec.
func (*AddTeacherParams) BindRequest ¶
func (o *AddTeacherParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddTeacherParams() beforehand.
type AddTeacherURL ¶
type AddTeacherURL struct {
// contains filtered or unexported fields
}
AddTeacherURL generates an URL for the add teacher operation
func (*AddTeacherURL) Build ¶
func (o *AddTeacherURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddTeacherURL) BuildFull ¶
func (o *AddTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddTeacherURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddTeacherURL) SetBasePath ¶
func (o *AddTeacherURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddTeacherURL) String ¶
func (o *AddTeacherURL) String() string
String returns the string representation of the path with query string
func (*AddTeacherURL) StringFull ¶
func (o *AddTeacherURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddTeacherURL) WithBasePath ¶
func (o *AddTeacherURL) WithBasePath(bp string) *AddTeacherURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ApniUniversityAPI ¶
type ApniUniversityAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // AddAccountHandler sets the operation handler for the add account operation AddAccountHandler AddAccountHandler // AddClassHandler sets the operation handler for the add class operation AddClassHandler AddClassHandler // AddOrRemoveStudentHandler sets the operation handler for the add or remove student operation AddOrRemoveStudentHandler AddOrRemoveStudentHandler // AddStudentHandler sets the operation handler for the add student operation AddStudentHandler AddStudentHandler // AddSubjectHandler sets the operation handler for the add subject operation AddSubjectHandler AddSubjectHandler // AddTeacherHandler sets the operation handler for the add teacher operation AddTeacherHandler AddTeacherHandler // AssignClassHandler sets the operation handler for the assign class operation AssignClassHandler AssignClassHandler // AssignSubjectToStudentHandler sets the operation handler for the assign subject to student operation AssignSubjectToStudentHandler AssignSubjectToStudentHandler // AssignSubjectToTeacherHandler sets the operation handler for the assign subject to teacher operation AssignSubjectToTeacherHandler AssignSubjectToTeacherHandler // DeleteAccountHandler sets the operation handler for the delete account operation DeleteAccountHandler DeleteAccountHandler // DeleteClassHandler sets the operation handler for the delete class operation DeleteClassHandler DeleteClassHandler // DeleteStudentHandler sets the operation handler for the delete student operation DeleteStudentHandler DeleteStudentHandler // DeleteSubjectHandler sets the operation handler for the delete subject operation DeleteSubjectHandler DeleteSubjectHandler // DeleteTeacherHandler sets the operation handler for the delete teacher operation DeleteTeacherHandler DeleteTeacherHandler // GetAccountByIDHandler sets the operation handler for the get account by ID operation GetAccountByIDHandler GetAccountByIDHandler // GetAccountsHandler sets the operation handler for the get accounts operation GetAccountsHandler GetAccountsHandler // GetClassByIDHandler sets the operation handler for the get class by ID operation GetClassByIDHandler GetClassByIDHandler // GetClassOfTeacherHandler sets the operation handler for the get class of teacher operation GetClassOfTeacherHandler GetClassOfTeacherHandler // GetClassesHandler sets the operation handler for the get classes operation GetClassesHandler GetClassesHandler // GetClassesOfStudentHandler sets the operation handler for the get classes of student operation GetClassesOfStudentHandler GetClassesOfStudentHandler // GetDefaultedStudentAccountsHandler sets the operation handler for the get defaulted student accounts operation GetDefaultedStudentAccountsHandler GetDefaultedStudentAccountsHandler // GetStudentAccountsHandler sets the operation handler for the get student accounts operation GetStudentAccountsHandler GetStudentAccountsHandler // GetStudentByIDHandler sets the operation handler for the get student by ID operation GetStudentByIDHandler GetStudentByIDHandler // GetStudentsHandler sets the operation handler for the get students operation GetStudentsHandler GetStudentsHandler // GetStudentsOfClassHandler sets the operation handler for the get students of class operation GetStudentsOfClassHandler GetStudentsOfClassHandler // GetStudentsOfSubjectHandler sets the operation handler for the get students of subject operation GetStudentsOfSubjectHandler GetStudentsOfSubjectHandler // GetStudentsOfTeacherHandler sets the operation handler for the get students of teacher operation GetStudentsOfTeacherHandler GetStudentsOfTeacherHandler // GetSubjectByIDHandler sets the operation handler for the get subject by ID operation GetSubjectByIDHandler GetSubjectByIDHandler // GetSubjectsHandler sets the operation handler for the get subjects operation GetSubjectsHandler GetSubjectsHandler // GetSubjectsOfClassHandler sets the operation handler for the get subjects of class operation GetSubjectsOfClassHandler GetSubjectsOfClassHandler // GetSubjectsOfStudentHandler sets the operation handler for the get subjects of student operation GetSubjectsOfStudentHandler GetSubjectsOfStudentHandler // GetTeacherAccountsHandler sets the operation handler for the get teacher accounts operation GetTeacherAccountsHandler GetTeacherAccountsHandler // GetTeacherByIDHandler sets the operation handler for the get teacher by ID operation GetTeacherByIDHandler GetTeacherByIDHandler // GetTeacherOfSubjectHandler sets the operation handler for the get teacher of subject operation GetTeacherOfSubjectHandler GetTeacherOfSubjectHandler // GetTeachersHandler sets the operation handler for the get teachers operation GetTeachersHandler GetTeachersHandler // GetTeachersOfClassHandler sets the operation handler for the get teachers of class operation GetTeachersOfClassHandler GetTeachersOfClassHandler // UpdateAccountHandler sets the operation handler for the update account operation UpdateAccountHandler UpdateAccountHandler // UpdateClassNameHandler sets the operation handler for the update class name operation UpdateClassNameHandler UpdateClassNameHandler // UpdateGPAHandler sets the operation handler for the update g p a operation UpdateGPAHandler UpdateGPAHandler // UpdateStudentNameHandler sets the operation handler for the update student name operation UpdateStudentNameHandler UpdateStudentNameHandler // UpdateSubjectNameHandler sets the operation handler for the update subject name operation UpdateSubjectNameHandler UpdateSubjectNameHandler // UpdateTeacherNameHandler sets the operation handler for the update teacher name operation UpdateTeacherNameHandler UpdateTeacherNameHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
ApniUniversityAPI Apni University is microservices based web application. It aims of the management of students and teachers of the Apni University. It includes the management of their academic as well as accounts details.
func NewApniUniversityAPI ¶
func NewApniUniversityAPI(spec *loads.Document) *ApniUniversityAPI
NewApniUniversityAPI creates a new ApniUniversity instance
func (*ApniUniversityAPI) AddMiddlewareFor ¶
func (o *ApniUniversityAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*ApniUniversityAPI) AuthenticatorsFor ¶
func (o *ApniUniversityAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*ApniUniversityAPI) Authorizer ¶
func (o *ApniUniversityAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*ApniUniversityAPI) ConsumersFor ¶
func (o *ApniUniversityAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*ApniUniversityAPI) Context ¶
func (o *ApniUniversityAPI) Context() *middleware.Context
Context returns the middleware context for the apni university API
func (*ApniUniversityAPI) DefaultConsumes ¶
func (o *ApniUniversityAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*ApniUniversityAPI) DefaultProduces ¶
func (o *ApniUniversityAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*ApniUniversityAPI) Formats ¶
func (o *ApniUniversityAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*ApniUniversityAPI) HandlerFor ¶
func (o *ApniUniversityAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*ApniUniversityAPI) Init ¶
func (o *ApniUniversityAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*ApniUniversityAPI) ProducersFor ¶
func (o *ApniUniversityAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*ApniUniversityAPI) RegisterConsumer ¶
func (o *ApniUniversityAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*ApniUniversityAPI) RegisterFormat ¶
func (o *ApniUniversityAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*ApniUniversityAPI) RegisterProducer ¶
func (o *ApniUniversityAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*ApniUniversityAPI) Serve ¶
func (o *ApniUniversityAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*ApniUniversityAPI) ServeErrorFor ¶
func (o *ApniUniversityAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*ApniUniversityAPI) SetDefaultConsumes ¶
func (o *ApniUniversityAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*ApniUniversityAPI) SetDefaultProduces ¶
func (o *ApniUniversityAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*ApniUniversityAPI) SetSpec ¶
func (o *ApniUniversityAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*ApniUniversityAPI) UseRedoc ¶
func (o *ApniUniversityAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*ApniUniversityAPI) UseSwaggerUI ¶
func (o *ApniUniversityAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*ApniUniversityAPI) Validate ¶
func (o *ApniUniversityAPI) Validate() error
Validate validates the registrations in the ApniUniversityAPI
type AssignClass ¶
type AssignClass struct { Context *middleware.Context Handler AssignClassHandler }
AssignClass swagger:route PATCH /subject/{ID}/class assignClass
AssignClass assign class API
func NewAssignClass ¶
func NewAssignClass(ctx *middleware.Context, handler AssignClassHandler) *AssignClass
NewAssignClass creates a new http.Handler for the assign class operation
func (*AssignClass) ServeHTTP ¶
func (o *AssignClass) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssignClassBody ¶
type AssignClassBody struct { // class ID ClassID int64 `json:"ClassID,omitempty"` }
AssignClassBody assign class body
swagger:model AssignClassBody
func (*AssignClassBody) ContextValidate ¶
ContextValidate validates this assign class body based on context it is used
func (*AssignClassBody) MarshalBinary ¶
func (o *AssignClassBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AssignClassBody) UnmarshalBinary ¶
func (o *AssignClassBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AssignClassHandler ¶
type AssignClassHandler interface {
Handle(AssignClassParams) middleware.Responder
}
AssignClassHandler interface for that can handle valid assign class params
type AssignClassHandlerFunc ¶
type AssignClassHandlerFunc func(AssignClassParams) middleware.Responder
AssignClassHandlerFunc turns a function with the right signature into a assign class handler
func (AssignClassHandlerFunc) Handle ¶
func (fn AssignClassHandlerFunc) Handle(params AssignClassParams) middleware.Responder
Handle executing the request and returning a response
type AssignClassInternalServerError ¶
type AssignClassInternalServerError struct { }
AssignClassInternalServerError Internal Server Error
swagger:response assignClassInternalServerError
func NewAssignClassInternalServerError ¶
func NewAssignClassInternalServerError() *AssignClassInternalServerError
NewAssignClassInternalServerError creates AssignClassInternalServerError with default headers values
func (*AssignClassInternalServerError) WriteResponse ¶
func (o *AssignClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignClassNotFound ¶
type AssignClassNotFound struct { }
AssignClassNotFound Subject Not found!
swagger:response assignClassNotFound
func NewAssignClassNotFound ¶
func NewAssignClassNotFound() *AssignClassNotFound
NewAssignClassNotFound creates AssignClassNotFound with default headers values
func (*AssignClassNotFound) WriteResponse ¶
func (o *AssignClassNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignClassOK ¶
type AssignClassOK struct { /*The ID of the Subject! In: Body */ Payload int64 `json:"body,omitempty"` }
AssignClassOK Subject successfully assigned to Class
swagger:response assignClassOK
func NewAssignClassOK ¶
func NewAssignClassOK() *AssignClassOK
NewAssignClassOK creates AssignClassOK with default headers values
func (*AssignClassOK) SetPayload ¶
func (o *AssignClassOK) SetPayload(payload int64)
SetPayload sets the payload to the assign class o k response
func (*AssignClassOK) WithPayload ¶
func (o *AssignClassOK) WithPayload(payload int64) *AssignClassOK
WithPayload adds the payload to the assign class o k response
func (*AssignClassOK) WriteResponse ¶
func (o *AssignClassOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignClassParams ¶
type AssignClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Subject ID Required: true In: path */ ID int64 /*The object containing ID of the class to be assigned Required: true In: body */ Class AssignClassBody }
AssignClassParams contains all the bound params for the assign class operation typically these are obtained from a http.Request
swagger:parameters assignClass
func NewAssignClassParams ¶
func NewAssignClassParams() AssignClassParams
NewAssignClassParams creates a new AssignClassParams object
There are no default values defined in the spec.
func (*AssignClassParams) BindRequest ¶
func (o *AssignClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssignClassParams() beforehand.
type AssignClassURL ¶
type AssignClassURL struct { ID int64 // contains filtered or unexported fields }
AssignClassURL generates an URL for the assign class operation
func (*AssignClassURL) Build ¶
func (o *AssignClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssignClassURL) BuildFull ¶
func (o *AssignClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssignClassURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssignClassURL) SetBasePath ¶
func (o *AssignClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssignClassURL) String ¶
func (o *AssignClassURL) String() string
String returns the string representation of the path with query string
func (*AssignClassURL) StringFull ¶
func (o *AssignClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssignClassURL) WithBasePath ¶
func (o *AssignClassURL) WithBasePath(bp string) *AssignClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AssignSubjectToStudent ¶
type AssignSubjectToStudent struct { Context *middleware.Context Handler AssignSubjectToStudentHandler }
AssignSubjectToStudent swagger:route PATCH /student/{ID}/subject assignSubjectToStudent
AssignSubjectToStudent assign subject to student API
func NewAssignSubjectToStudent ¶
func NewAssignSubjectToStudent(ctx *middleware.Context, handler AssignSubjectToStudentHandler) *AssignSubjectToStudent
NewAssignSubjectToStudent creates a new http.Handler for the assign subject to student operation
func (*AssignSubjectToStudent) ServeHTTP ¶
func (o *AssignSubjectToStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssignSubjectToStudentBody ¶
type AssignSubjectToStudentBody struct { // assign Assign bool `json:"Assign,omitempty"` // subject ID SubjectID int64 `json:"SubjectID,omitempty"` }
AssignSubjectToStudentBody assign subject to student body
swagger:model AssignSubjectToStudentBody
func (*AssignSubjectToStudentBody) ContextValidate ¶
func (o *AssignSubjectToStudentBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this assign subject to student body based on context it is used
func (*AssignSubjectToStudentBody) MarshalBinary ¶
func (o *AssignSubjectToStudentBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AssignSubjectToStudentBody) UnmarshalBinary ¶
func (o *AssignSubjectToStudentBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AssignSubjectToStudentHandler ¶
type AssignSubjectToStudentHandler interface {
Handle(AssignSubjectToStudentParams) middleware.Responder
}
AssignSubjectToStudentHandler interface for that can handle valid assign subject to student params
type AssignSubjectToStudentHandlerFunc ¶
type AssignSubjectToStudentHandlerFunc func(AssignSubjectToStudentParams) middleware.Responder
AssignSubjectToStudentHandlerFunc turns a function with the right signature into a assign subject to student handler
func (AssignSubjectToStudentHandlerFunc) Handle ¶
func (fn AssignSubjectToStudentHandlerFunc) Handle(params AssignSubjectToStudentParams) middleware.Responder
Handle executing the request and returning a response
type AssignSubjectToStudentInternalServerError ¶
type AssignSubjectToStudentInternalServerError struct { }
AssignSubjectToStudentInternalServerError Internal Server Error
swagger:response assignSubjectToStudentInternalServerError
func NewAssignSubjectToStudentInternalServerError ¶
func NewAssignSubjectToStudentInternalServerError() *AssignSubjectToStudentInternalServerError
NewAssignSubjectToStudentInternalServerError creates AssignSubjectToStudentInternalServerError with default headers values
func (*AssignSubjectToStudentInternalServerError) WriteResponse ¶
func (o *AssignSubjectToStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToStudentNotFound ¶
type AssignSubjectToStudentNotFound struct { }
AssignSubjectToStudentNotFound Student Not found!
swagger:response assignSubjectToStudentNotFound
func NewAssignSubjectToStudentNotFound ¶
func NewAssignSubjectToStudentNotFound() *AssignSubjectToStudentNotFound
NewAssignSubjectToStudentNotFound creates AssignSubjectToStudentNotFound with default headers values
func (*AssignSubjectToStudentNotFound) WriteResponse ¶
func (o *AssignSubjectToStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToStudentOK ¶
type AssignSubjectToStudentOK struct { /*The ID of the Student! In: Body */ Payload int64 `json:"body,omitempty"` }
AssignSubjectToStudentOK Subject assigned/de-assigned to Student
swagger:response assignSubjectToStudentOK
func NewAssignSubjectToStudentOK ¶
func NewAssignSubjectToStudentOK() *AssignSubjectToStudentOK
NewAssignSubjectToStudentOK creates AssignSubjectToStudentOK with default headers values
func (*AssignSubjectToStudentOK) SetPayload ¶
func (o *AssignSubjectToStudentOK) SetPayload(payload int64)
SetPayload sets the payload to the assign subject to student o k response
func (*AssignSubjectToStudentOK) WithPayload ¶
func (o *AssignSubjectToStudentOK) WithPayload(payload int64) *AssignSubjectToStudentOK
WithPayload adds the payload to the assign subject to student o k response
func (*AssignSubjectToStudentOK) WriteResponse ¶
func (o *AssignSubjectToStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToStudentParams ¶
type AssignSubjectToStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Student ID Required: true In: path */ ID int64 /*The object containing ID of subject to be assigned Required: true In: body */ Subject AssignSubjectToStudentBody }
AssignSubjectToStudentParams contains all the bound params for the assign subject to student operation typically these are obtained from a http.Request
swagger:parameters assignSubjectToStudent
func NewAssignSubjectToStudentParams ¶
func NewAssignSubjectToStudentParams() AssignSubjectToStudentParams
NewAssignSubjectToStudentParams creates a new AssignSubjectToStudentParams object
There are no default values defined in the spec.
func (*AssignSubjectToStudentParams) BindRequest ¶
func (o *AssignSubjectToStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssignSubjectToStudentParams() beforehand.
type AssignSubjectToStudentURL ¶
type AssignSubjectToStudentURL struct { ID int64 // contains filtered or unexported fields }
AssignSubjectToStudentURL generates an URL for the assign subject to student operation
func (*AssignSubjectToStudentURL) Build ¶
func (o *AssignSubjectToStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssignSubjectToStudentURL) BuildFull ¶
func (o *AssignSubjectToStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssignSubjectToStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssignSubjectToStudentURL) SetBasePath ¶
func (o *AssignSubjectToStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssignSubjectToStudentURL) String ¶
func (o *AssignSubjectToStudentURL) String() string
String returns the string representation of the path with query string
func (*AssignSubjectToStudentURL) StringFull ¶
func (o *AssignSubjectToStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssignSubjectToStudentURL) WithBasePath ¶
func (o *AssignSubjectToStudentURL) WithBasePath(bp string) *AssignSubjectToStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AssignSubjectToTeacher ¶
type AssignSubjectToTeacher struct { Context *middleware.Context Handler AssignSubjectToTeacherHandler }
AssignSubjectToTeacher swagger:route PATCH /teacher/{ID}/subject assignSubjectToTeacher
AssignSubjectToTeacher assign subject to teacher API
func NewAssignSubjectToTeacher ¶
func NewAssignSubjectToTeacher(ctx *middleware.Context, handler AssignSubjectToTeacherHandler) *AssignSubjectToTeacher
NewAssignSubjectToTeacher creates a new http.Handler for the assign subject to teacher operation
func (*AssignSubjectToTeacher) ServeHTTP ¶
func (o *AssignSubjectToTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssignSubjectToTeacherBody ¶
type AssignSubjectToTeacherBody struct { // subject ID SubjectID int64 `json:"SubjectID,omitempty"` }
AssignSubjectToTeacherBody assign subject to teacher body
swagger:model AssignSubjectToTeacherBody
func (*AssignSubjectToTeacherBody) ContextValidate ¶
func (o *AssignSubjectToTeacherBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this assign subject to teacher body based on context it is used
func (*AssignSubjectToTeacherBody) MarshalBinary ¶
func (o *AssignSubjectToTeacherBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AssignSubjectToTeacherBody) UnmarshalBinary ¶
func (o *AssignSubjectToTeacherBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AssignSubjectToTeacherHandler ¶
type AssignSubjectToTeacherHandler interface {
Handle(AssignSubjectToTeacherParams) middleware.Responder
}
AssignSubjectToTeacherHandler interface for that can handle valid assign subject to teacher params
type AssignSubjectToTeacherHandlerFunc ¶
type AssignSubjectToTeacherHandlerFunc func(AssignSubjectToTeacherParams) middleware.Responder
AssignSubjectToTeacherHandlerFunc turns a function with the right signature into a assign subject to teacher handler
func (AssignSubjectToTeacherHandlerFunc) Handle ¶
func (fn AssignSubjectToTeacherHandlerFunc) Handle(params AssignSubjectToTeacherParams) middleware.Responder
Handle executing the request and returning a response
type AssignSubjectToTeacherInternalServerError ¶
type AssignSubjectToTeacherInternalServerError struct { }
AssignSubjectToTeacherInternalServerError Internal Server Error
swagger:response assignSubjectToTeacherInternalServerError
func NewAssignSubjectToTeacherInternalServerError ¶
func NewAssignSubjectToTeacherInternalServerError() *AssignSubjectToTeacherInternalServerError
NewAssignSubjectToTeacherInternalServerError creates AssignSubjectToTeacherInternalServerError with default headers values
func (*AssignSubjectToTeacherInternalServerError) WriteResponse ¶
func (o *AssignSubjectToTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToTeacherNotFound ¶
type AssignSubjectToTeacherNotFound struct { }
AssignSubjectToTeacherNotFound Teacher not found!
swagger:response assignSubjectToTeacherNotFound
func NewAssignSubjectToTeacherNotFound ¶
func NewAssignSubjectToTeacherNotFound() *AssignSubjectToTeacherNotFound
NewAssignSubjectToTeacherNotFound creates AssignSubjectToTeacherNotFound with default headers values
func (*AssignSubjectToTeacherNotFound) WriteResponse ¶
func (o *AssignSubjectToTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToTeacherOK ¶
type AssignSubjectToTeacherOK struct { /*The ID of the Teacher! In: Body */ Payload int64 `json:"body,omitempty"` }
AssignSubjectToTeacherOK Subject assigned to Teacher
swagger:response assignSubjectToTeacherOK
func NewAssignSubjectToTeacherOK ¶
func NewAssignSubjectToTeacherOK() *AssignSubjectToTeacherOK
NewAssignSubjectToTeacherOK creates AssignSubjectToTeacherOK with default headers values
func (*AssignSubjectToTeacherOK) SetPayload ¶
func (o *AssignSubjectToTeacherOK) SetPayload(payload int64)
SetPayload sets the payload to the assign subject to teacher o k response
func (*AssignSubjectToTeacherOK) WithPayload ¶
func (o *AssignSubjectToTeacherOK) WithPayload(payload int64) *AssignSubjectToTeacherOK
WithPayload adds the payload to the assign subject to teacher o k response
func (*AssignSubjectToTeacherOK) WriteResponse ¶
func (o *AssignSubjectToTeacherOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignSubjectToTeacherParams ¶
type AssignSubjectToTeacherParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Teacher ID Required: true In: path */ ID int64 /*The object containing ID of the subject to be assigned Required: true In: body */ Subject AssignSubjectToTeacherBody }
AssignSubjectToTeacherParams contains all the bound params for the assign subject to teacher operation typically these are obtained from a http.Request
swagger:parameters assignSubjectToTeacher
func NewAssignSubjectToTeacherParams ¶
func NewAssignSubjectToTeacherParams() AssignSubjectToTeacherParams
NewAssignSubjectToTeacherParams creates a new AssignSubjectToTeacherParams object
There are no default values defined in the spec.
func (*AssignSubjectToTeacherParams) BindRequest ¶
func (o *AssignSubjectToTeacherParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssignSubjectToTeacherParams() beforehand.
type AssignSubjectToTeacherURL ¶
type AssignSubjectToTeacherURL struct { ID int64 // contains filtered or unexported fields }
AssignSubjectToTeacherURL generates an URL for the assign subject to teacher operation
func (*AssignSubjectToTeacherURL) Build ¶
func (o *AssignSubjectToTeacherURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssignSubjectToTeacherURL) BuildFull ¶
func (o *AssignSubjectToTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssignSubjectToTeacherURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssignSubjectToTeacherURL) SetBasePath ¶
func (o *AssignSubjectToTeacherURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssignSubjectToTeacherURL) String ¶
func (o *AssignSubjectToTeacherURL) String() string
String returns the string representation of the path with query string
func (*AssignSubjectToTeacherURL) StringFull ¶
func (o *AssignSubjectToTeacherURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssignSubjectToTeacherURL) WithBasePath ¶
func (o *AssignSubjectToTeacherURL) WithBasePath(bp string) *AssignSubjectToTeacherURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteAccount ¶
type DeleteAccount struct { Context *middleware.Context Handler DeleteAccountHandler }
DeleteAccount swagger:route DELETE /account/{ID} deleteAccount
DeleteAccount delete account API
func NewDeleteAccount ¶
func NewDeleteAccount(ctx *middleware.Context, handler DeleteAccountHandler) *DeleteAccount
NewDeleteAccount creates a new http.Handler for the delete account operation
func (*DeleteAccount) ServeHTTP ¶
func (o *DeleteAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteAccountHandler ¶
type DeleteAccountHandler interface {
Handle(DeleteAccountParams) middleware.Responder
}
DeleteAccountHandler interface for that can handle valid delete account params
type DeleteAccountHandlerFunc ¶
type DeleteAccountHandlerFunc func(DeleteAccountParams) middleware.Responder
DeleteAccountHandlerFunc turns a function with the right signature into a delete account handler
func (DeleteAccountHandlerFunc) Handle ¶
func (fn DeleteAccountHandlerFunc) Handle(params DeleteAccountParams) middleware.Responder
Handle executing the request and returning a response
type DeleteAccountInternalServerError ¶
type DeleteAccountInternalServerError struct { }
DeleteAccountInternalServerError Internal server error
swagger:response deleteAccountInternalServerError
func NewDeleteAccountInternalServerError ¶
func NewDeleteAccountInternalServerError() *DeleteAccountInternalServerError
NewDeleteAccountInternalServerError creates DeleteAccountInternalServerError with default headers values
func (*DeleteAccountInternalServerError) WriteResponse ¶
func (o *DeleteAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountNoContent ¶
type DeleteAccountNoContent struct { }
DeleteAccountNoContent Account Deleted Successfully!
swagger:response deleteAccountNoContent
func NewDeleteAccountNoContent ¶
func NewDeleteAccountNoContent() *DeleteAccountNoContent
NewDeleteAccountNoContent creates DeleteAccountNoContent with default headers values
func (*DeleteAccountNoContent) WriteResponse ¶
func (o *DeleteAccountNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountNotFound ¶
type DeleteAccountNotFound struct { }
DeleteAccountNotFound Account not found
swagger:response deleteAccountNotFound
func NewDeleteAccountNotFound ¶
func NewDeleteAccountNotFound() *DeleteAccountNotFound
NewDeleteAccountNotFound creates DeleteAccountNotFound with default headers values
func (*DeleteAccountNotFound) WriteResponse ¶
func (o *DeleteAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountParams ¶
type DeleteAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Account Required: true In: path */ ID int64 }
DeleteAccountParams contains all the bound params for the delete account operation typically these are obtained from a http.Request
swagger:parameters deleteAccount
func NewDeleteAccountParams ¶
func NewDeleteAccountParams() DeleteAccountParams
NewDeleteAccountParams creates a new DeleteAccountParams object
There are no default values defined in the spec.
func (*DeleteAccountParams) BindRequest ¶
func (o *DeleteAccountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteAccountParams() beforehand.
type DeleteAccountURL ¶
type DeleteAccountURL struct { ID int64 // contains filtered or unexported fields }
DeleteAccountURL generates an URL for the delete account operation
func (*DeleteAccountURL) Build ¶
func (o *DeleteAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAccountURL) BuildFull ¶
func (o *DeleteAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteAccountURL) SetBasePath ¶
func (o *DeleteAccountURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteAccountURL) String ¶
func (o *DeleteAccountURL) String() string
String returns the string representation of the path with query string
func (*DeleteAccountURL) StringFull ¶
func (o *DeleteAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAccountURL) WithBasePath ¶
func (o *DeleteAccountURL) WithBasePath(bp string) *DeleteAccountURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteClass ¶
type DeleteClass struct { Context *middleware.Context Handler DeleteClassHandler }
DeleteClass swagger:route DELETE /class/{ID} deleteClass
DeleteClass delete class API
func NewDeleteClass ¶
func NewDeleteClass(ctx *middleware.Context, handler DeleteClassHandler) *DeleteClass
NewDeleteClass creates a new http.Handler for the delete class operation
func (*DeleteClass) ServeHTTP ¶
func (o *DeleteClass) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteClassHandler ¶
type DeleteClassHandler interface {
Handle(DeleteClassParams) middleware.Responder
}
DeleteClassHandler interface for that can handle valid delete class params
type DeleteClassHandlerFunc ¶
type DeleteClassHandlerFunc func(DeleteClassParams) middleware.Responder
DeleteClassHandlerFunc turns a function with the right signature into a delete class handler
func (DeleteClassHandlerFunc) Handle ¶
func (fn DeleteClassHandlerFunc) Handle(params DeleteClassParams) middleware.Responder
Handle executing the request and returning a response
type DeleteClassInternalServerError ¶
type DeleteClassInternalServerError struct { }
DeleteClassInternalServerError Internal server error
swagger:response deleteClassInternalServerError
func NewDeleteClassInternalServerError ¶
func NewDeleteClassInternalServerError() *DeleteClassInternalServerError
NewDeleteClassInternalServerError creates DeleteClassInternalServerError with default headers values
func (*DeleteClassInternalServerError) WriteResponse ¶
func (o *DeleteClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClassNoContent ¶
type DeleteClassNoContent struct { }
DeleteClassNoContent Class Deleted Successfully!
swagger:response deleteClassNoContent
func NewDeleteClassNoContent ¶
func NewDeleteClassNoContent() *DeleteClassNoContent
NewDeleteClassNoContent creates DeleteClassNoContent with default headers values
func (*DeleteClassNoContent) WriteResponse ¶
func (o *DeleteClassNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClassNotFound ¶
type DeleteClassNotFound struct { }
DeleteClassNotFound Class not found
swagger:response deleteClassNotFound
func NewDeleteClassNotFound ¶
func NewDeleteClassNotFound() *DeleteClassNotFound
NewDeleteClassNotFound creates DeleteClassNotFound with default headers values
func (*DeleteClassNotFound) WriteResponse ¶
func (o *DeleteClassNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteClassParams ¶
type DeleteClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Class Required: true In: path */ ID int64 }
DeleteClassParams contains all the bound params for the delete class operation typically these are obtained from a http.Request
swagger:parameters deleteClass
func NewDeleteClassParams ¶
func NewDeleteClassParams() DeleteClassParams
NewDeleteClassParams creates a new DeleteClassParams object
There are no default values defined in the spec.
func (*DeleteClassParams) BindRequest ¶
func (o *DeleteClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteClassParams() beforehand.
type DeleteClassURL ¶
type DeleteClassURL struct { ID int64 // contains filtered or unexported fields }
DeleteClassURL generates an URL for the delete class operation
func (*DeleteClassURL) Build ¶
func (o *DeleteClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteClassURL) BuildFull ¶
func (o *DeleteClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteClassURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteClassURL) SetBasePath ¶
func (o *DeleteClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteClassURL) String ¶
func (o *DeleteClassURL) String() string
String returns the string representation of the path with query string
func (*DeleteClassURL) StringFull ¶
func (o *DeleteClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteClassURL) WithBasePath ¶
func (o *DeleteClassURL) WithBasePath(bp string) *DeleteClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteStudent ¶
type DeleteStudent struct { Context *middleware.Context Handler DeleteStudentHandler }
DeleteStudent swagger:route DELETE /student/{ID} deleteStudent
DeleteStudent delete student API
func NewDeleteStudent ¶
func NewDeleteStudent(ctx *middleware.Context, handler DeleteStudentHandler) *DeleteStudent
NewDeleteStudent creates a new http.Handler for the delete student operation
func (*DeleteStudent) ServeHTTP ¶
func (o *DeleteStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteStudentHandler ¶
type DeleteStudentHandler interface {
Handle(DeleteStudentParams) middleware.Responder
}
DeleteStudentHandler interface for that can handle valid delete student params
type DeleteStudentHandlerFunc ¶
type DeleteStudentHandlerFunc func(DeleteStudentParams) middleware.Responder
DeleteStudentHandlerFunc turns a function with the right signature into a delete student handler
func (DeleteStudentHandlerFunc) Handle ¶
func (fn DeleteStudentHandlerFunc) Handle(params DeleteStudentParams) middleware.Responder
Handle executing the request and returning a response
type DeleteStudentInternalServerError ¶
type DeleteStudentInternalServerError struct { }
DeleteStudentInternalServerError Internal server error
swagger:response deleteStudentInternalServerError
func NewDeleteStudentInternalServerError ¶
func NewDeleteStudentInternalServerError() *DeleteStudentInternalServerError
NewDeleteStudentInternalServerError creates DeleteStudentInternalServerError with default headers values
func (*DeleteStudentInternalServerError) WriteResponse ¶
func (o *DeleteStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStudentNoContent ¶
type DeleteStudentNoContent struct { }
DeleteStudentNoContent Student Deleted Successfully!
swagger:response deleteStudentNoContent
func NewDeleteStudentNoContent ¶
func NewDeleteStudentNoContent() *DeleteStudentNoContent
NewDeleteStudentNoContent creates DeleteStudentNoContent with default headers values
func (*DeleteStudentNoContent) WriteResponse ¶
func (o *DeleteStudentNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStudentNotFound ¶
type DeleteStudentNotFound struct { }
DeleteStudentNotFound Student not found
swagger:response deleteStudentNotFound
func NewDeleteStudentNotFound ¶
func NewDeleteStudentNotFound() *DeleteStudentNotFound
NewDeleteStudentNotFound creates DeleteStudentNotFound with default headers values
func (*DeleteStudentNotFound) WriteResponse ¶
func (o *DeleteStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteStudentParams ¶
type DeleteStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Student Required: true In: path */ ID int64 }
DeleteStudentParams contains all the bound params for the delete student operation typically these are obtained from a http.Request
swagger:parameters deleteStudent
func NewDeleteStudentParams ¶
func NewDeleteStudentParams() DeleteStudentParams
NewDeleteStudentParams creates a new DeleteStudentParams object
There are no default values defined in the spec.
func (*DeleteStudentParams) BindRequest ¶
func (o *DeleteStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteStudentParams() beforehand.
type DeleteStudentURL ¶
type DeleteStudentURL struct { ID int64 // contains filtered or unexported fields }
DeleteStudentURL generates an URL for the delete student operation
func (*DeleteStudentURL) Build ¶
func (o *DeleteStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteStudentURL) BuildFull ¶
func (o *DeleteStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteStudentURL) SetBasePath ¶
func (o *DeleteStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteStudentURL) String ¶
func (o *DeleteStudentURL) String() string
String returns the string representation of the path with query string
func (*DeleteStudentURL) StringFull ¶
func (o *DeleteStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteStudentURL) WithBasePath ¶
func (o *DeleteStudentURL) WithBasePath(bp string) *DeleteStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteSubject ¶
type DeleteSubject struct { Context *middleware.Context Handler DeleteSubjectHandler }
DeleteSubject swagger:route DELETE /subject/{ID} deleteSubject
DeleteSubject delete subject API
func NewDeleteSubject ¶
func NewDeleteSubject(ctx *middleware.Context, handler DeleteSubjectHandler) *DeleteSubject
NewDeleteSubject creates a new http.Handler for the delete subject operation
func (*DeleteSubject) ServeHTTP ¶
func (o *DeleteSubject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSubjectHandler ¶
type DeleteSubjectHandler interface {
Handle(DeleteSubjectParams) middleware.Responder
}
DeleteSubjectHandler interface for that can handle valid delete subject params
type DeleteSubjectHandlerFunc ¶
type DeleteSubjectHandlerFunc func(DeleteSubjectParams) middleware.Responder
DeleteSubjectHandlerFunc turns a function with the right signature into a delete subject handler
func (DeleteSubjectHandlerFunc) Handle ¶
func (fn DeleteSubjectHandlerFunc) Handle(params DeleteSubjectParams) middleware.Responder
Handle executing the request and returning a response
type DeleteSubjectInternalServerError ¶
type DeleteSubjectInternalServerError struct { }
DeleteSubjectInternalServerError Internal server error
swagger:response deleteSubjectInternalServerError
func NewDeleteSubjectInternalServerError ¶
func NewDeleteSubjectInternalServerError() *DeleteSubjectInternalServerError
NewDeleteSubjectInternalServerError creates DeleteSubjectInternalServerError with default headers values
func (*DeleteSubjectInternalServerError) WriteResponse ¶
func (o *DeleteSubjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubjectNoContent ¶
type DeleteSubjectNoContent struct { }
DeleteSubjectNoContent Subject Deleted Successfully!
swagger:response deleteSubjectNoContent
func NewDeleteSubjectNoContent ¶
func NewDeleteSubjectNoContent() *DeleteSubjectNoContent
NewDeleteSubjectNoContent creates DeleteSubjectNoContent with default headers values
func (*DeleteSubjectNoContent) WriteResponse ¶
func (o *DeleteSubjectNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubjectNotFound ¶
type DeleteSubjectNotFound struct { }
DeleteSubjectNotFound Subject not found
swagger:response deleteSubjectNotFound
func NewDeleteSubjectNotFound ¶
func NewDeleteSubjectNotFound() *DeleteSubjectNotFound
NewDeleteSubjectNotFound creates DeleteSubjectNotFound with default headers values
func (*DeleteSubjectNotFound) WriteResponse ¶
func (o *DeleteSubjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSubjectParams ¶
type DeleteSubjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Subject Required: true In: path */ ID int64 }
DeleteSubjectParams contains all the bound params for the delete subject operation typically these are obtained from a http.Request
swagger:parameters deleteSubject
func NewDeleteSubjectParams ¶
func NewDeleteSubjectParams() DeleteSubjectParams
NewDeleteSubjectParams creates a new DeleteSubjectParams object
There are no default values defined in the spec.
func (*DeleteSubjectParams) BindRequest ¶
func (o *DeleteSubjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteSubjectParams() beforehand.
type DeleteSubjectURL ¶
type DeleteSubjectURL struct { ID int64 // contains filtered or unexported fields }
DeleteSubjectURL generates an URL for the delete subject operation
func (*DeleteSubjectURL) Build ¶
func (o *DeleteSubjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSubjectURL) BuildFull ¶
func (o *DeleteSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSubjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSubjectURL) SetBasePath ¶
func (o *DeleteSubjectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteSubjectURL) String ¶
func (o *DeleteSubjectURL) String() string
String returns the string representation of the path with query string
func (*DeleteSubjectURL) StringFull ¶
func (o *DeleteSubjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSubjectURL) WithBasePath ¶
func (o *DeleteSubjectURL) WithBasePath(bp string) *DeleteSubjectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteTeacher ¶
type DeleteTeacher struct { Context *middleware.Context Handler DeleteTeacherHandler }
DeleteTeacher swagger:route DELETE /teacher/{ID} deleteTeacher
DeleteTeacher delete teacher API
func NewDeleteTeacher ¶
func NewDeleteTeacher(ctx *middleware.Context, handler DeleteTeacherHandler) *DeleteTeacher
NewDeleteTeacher creates a new http.Handler for the delete teacher operation
func (*DeleteTeacher) ServeHTTP ¶
func (o *DeleteTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTeacherHandler ¶
type DeleteTeacherHandler interface {
Handle(DeleteTeacherParams) middleware.Responder
}
DeleteTeacherHandler interface for that can handle valid delete teacher params
type DeleteTeacherHandlerFunc ¶
type DeleteTeacherHandlerFunc func(DeleteTeacherParams) middleware.Responder
DeleteTeacherHandlerFunc turns a function with the right signature into a delete teacher handler
func (DeleteTeacherHandlerFunc) Handle ¶
func (fn DeleteTeacherHandlerFunc) Handle(params DeleteTeacherParams) middleware.Responder
Handle executing the request and returning a response
type DeleteTeacherInternalServerError ¶
type DeleteTeacherInternalServerError struct { }
DeleteTeacherInternalServerError Internal server error
swagger:response deleteTeacherInternalServerError
func NewDeleteTeacherInternalServerError ¶
func NewDeleteTeacherInternalServerError() *DeleteTeacherInternalServerError
NewDeleteTeacherInternalServerError creates DeleteTeacherInternalServerError with default headers values
func (*DeleteTeacherInternalServerError) WriteResponse ¶
func (o *DeleteTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeacherNoContent ¶
type DeleteTeacherNoContent struct { }
DeleteTeacherNoContent Teacher Deleted Successfully!
swagger:response deleteTeacherNoContent
func NewDeleteTeacherNoContent ¶
func NewDeleteTeacherNoContent() *DeleteTeacherNoContent
NewDeleteTeacherNoContent creates DeleteTeacherNoContent with default headers values
func (*DeleteTeacherNoContent) WriteResponse ¶
func (o *DeleteTeacherNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeacherNotFound ¶
type DeleteTeacherNotFound struct { }
DeleteTeacherNotFound Teacher not found
swagger:response deleteTeacherNotFound
func NewDeleteTeacherNotFound ¶
func NewDeleteTeacherNotFound() *DeleteTeacherNotFound
NewDeleteTeacherNotFound creates DeleteTeacherNotFound with default headers values
func (*DeleteTeacherNotFound) WriteResponse ¶
func (o *DeleteTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTeacherParams ¶
type DeleteTeacherParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Teacher Required: true In: path */ ID int64 }
DeleteTeacherParams contains all the bound params for the delete teacher operation typically these are obtained from a http.Request
swagger:parameters deleteTeacher
func NewDeleteTeacherParams ¶
func NewDeleteTeacherParams() DeleteTeacherParams
NewDeleteTeacherParams creates a new DeleteTeacherParams object
There are no default values defined in the spec.
func (*DeleteTeacherParams) BindRequest ¶
func (o *DeleteTeacherParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteTeacherParams() beforehand.
type DeleteTeacherURL ¶
type DeleteTeacherURL struct { ID int64 // contains filtered or unexported fields }
DeleteTeacherURL generates an URL for the delete teacher operation
func (*DeleteTeacherURL) Build ¶
func (o *DeleteTeacherURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTeacherURL) BuildFull ¶
func (o *DeleteTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTeacherURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTeacherURL) SetBasePath ¶
func (o *DeleteTeacherURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteTeacherURL) String ¶
func (o *DeleteTeacherURL) String() string
String returns the string representation of the path with query string
func (*DeleteTeacherURL) StringFull ¶
func (o *DeleteTeacherURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTeacherURL) WithBasePath ¶
func (o *DeleteTeacherURL) WithBasePath(bp string) *DeleteTeacherURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetAccountByID ¶
type GetAccountByID struct { Context *middleware.Context Handler GetAccountByIDHandler }
GetAccountByID swagger:route GET /account/{ID} getAccountById
GetAccountByID get account by ID API
func NewGetAccountByID ¶
func NewGetAccountByID(ctx *middleware.Context, handler GetAccountByIDHandler) *GetAccountByID
NewGetAccountByID creates a new http.Handler for the get account by ID operation
func (*GetAccountByID) ServeHTTP ¶
func (o *GetAccountByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountByIDHandler ¶
type GetAccountByIDHandler interface {
Handle(GetAccountByIDParams) middleware.Responder
}
GetAccountByIDHandler interface for that can handle valid get account by ID params
type GetAccountByIDHandlerFunc ¶
type GetAccountByIDHandlerFunc func(GetAccountByIDParams) middleware.Responder
GetAccountByIDHandlerFunc turns a function with the right signature into a get account by ID handler
func (GetAccountByIDHandlerFunc) Handle ¶
func (fn GetAccountByIDHandlerFunc) Handle(params GetAccountByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountByIDInternalServerError ¶
type GetAccountByIDInternalServerError struct { }
GetAccountByIDInternalServerError Internal server error
swagger:response getAccountByIdInternalServerError
func NewGetAccountByIDInternalServerError ¶
func NewGetAccountByIDInternalServerError() *GetAccountByIDInternalServerError
NewGetAccountByIDInternalServerError creates GetAccountByIDInternalServerError with default headers values
func (*GetAccountByIDInternalServerError) WriteResponse ¶
func (o *GetAccountByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountByIDNotFound ¶
type GetAccountByIDNotFound struct { }
GetAccountByIDNotFound Account not found
swagger:response getAccountByIdNotFound
func NewGetAccountByIDNotFound ¶
func NewGetAccountByIDNotFound() *GetAccountByIDNotFound
NewGetAccountByIDNotFound creates GetAccountByIDNotFound with default headers values
func (*GetAccountByIDNotFound) WriteResponse ¶
func (o *GetAccountByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountByIDOK ¶
GetAccountByIDOK Account response
swagger:response getAccountByIdOK
func NewGetAccountByIDOK ¶
func NewGetAccountByIDOK() *GetAccountByIDOK
NewGetAccountByIDOK creates GetAccountByIDOK with default headers values
func (*GetAccountByIDOK) SetPayload ¶
func (o *GetAccountByIDOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the get account by Id o k response
func (*GetAccountByIDOK) WithPayload ¶
func (o *GetAccountByIDOK) WithPayload(payload *models.Account) *GetAccountByIDOK
WithPayload adds the payload to the get account by Id o k response
func (*GetAccountByIDOK) WriteResponse ¶
func (o *GetAccountByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountByIDParams ¶
type GetAccountByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Account Required: true In: path */ ID int64 }
GetAccountByIDParams contains all the bound params for the get account by ID operation typically these are obtained from a http.Request
swagger:parameters getAccountByID
func NewGetAccountByIDParams ¶
func NewGetAccountByIDParams() GetAccountByIDParams
NewGetAccountByIDParams creates a new GetAccountByIDParams object
There are no default values defined in the spec.
func (*GetAccountByIDParams) BindRequest ¶
func (o *GetAccountByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetAccountByIDParams() beforehand.
type GetAccountByIDURL ¶
type GetAccountByIDURL struct { ID int64 // contains filtered or unexported fields }
GetAccountByIDURL generates an URL for the get account by ID operation
func (*GetAccountByIDURL) Build ¶
func (o *GetAccountByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountByIDURL) BuildFull ¶
func (o *GetAccountByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountByIDURL) SetBasePath ¶
func (o *GetAccountByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetAccountByIDURL) String ¶
func (o *GetAccountByIDURL) String() string
String returns the string representation of the path with query string
func (*GetAccountByIDURL) StringFull ¶
func (o *GetAccountByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountByIDURL) WithBasePath ¶
func (o *GetAccountByIDURL) WithBasePath(bp string) *GetAccountByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetAccounts ¶
type GetAccounts struct { Context *middleware.Context Handler GetAccountsHandler }
GetAccounts swagger:route GET /account getAccounts
Get all Accounts
func NewGetAccounts ¶
func NewGetAccounts(ctx *middleware.Context, handler GetAccountsHandler) *GetAccounts
NewGetAccounts creates a new http.Handler for the get accounts operation
func (*GetAccounts) ServeHTTP ¶
func (o *GetAccounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountsHandler ¶
type GetAccountsHandler interface {
Handle(GetAccountsParams) middleware.Responder
}
GetAccountsHandler interface for that can handle valid get accounts params
type GetAccountsHandlerFunc ¶
type GetAccountsHandlerFunc func(GetAccountsParams) middleware.Responder
GetAccountsHandlerFunc turns a function with the right signature into a get accounts handler
func (GetAccountsHandlerFunc) Handle ¶
func (fn GetAccountsHandlerFunc) Handle(params GetAccountsParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountsInternalServerError ¶
type GetAccountsInternalServerError struct { }
GetAccountsInternalServerError Internal server error
swagger:response getAccountsInternalServerError
func NewGetAccountsInternalServerError ¶
func NewGetAccountsInternalServerError() *GetAccountsInternalServerError
NewGetAccountsInternalServerError creates GetAccountsInternalServerError with default headers values
func (*GetAccountsInternalServerError) WriteResponse ¶
func (o *GetAccountsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountsNotFound ¶
type GetAccountsNotFound struct { }
GetAccountsNotFound Account not found
swagger:response getAccountsNotFound
func NewGetAccountsNotFound ¶
func NewGetAccountsNotFound() *GetAccountsNotFound
NewGetAccountsNotFound creates GetAccountsNotFound with default headers values
func (*GetAccountsNotFound) WriteResponse ¶
func (o *GetAccountsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountsOK ¶
GetAccountsOK Accounts' response
swagger:response getAccountsOK
func NewGetAccountsOK ¶
func NewGetAccountsOK() *GetAccountsOK
NewGetAccountsOK creates GetAccountsOK with default headers values
func (*GetAccountsOK) SetPayload ¶
func (o *GetAccountsOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the get accounts o k response
func (*GetAccountsOK) WithPayload ¶
func (o *GetAccountsOK) WithPayload(payload []*models.Account) *GetAccountsOK
WithPayload adds the payload to the get accounts o k response
func (*GetAccountsOK) WriteResponse ¶
func (o *GetAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountsParams ¶
GetAccountsParams contains all the bound params for the get accounts operation typically these are obtained from a http.Request
swagger:parameters getAccounts
func NewGetAccountsParams ¶
func NewGetAccountsParams() GetAccountsParams
NewGetAccountsParams creates a new GetAccountsParams object
There are no default values defined in the spec.
func (*GetAccountsParams) BindRequest ¶
func (o *GetAccountsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetAccountsParams() beforehand.
type GetAccountsURL ¶
type GetAccountsURL struct {
// contains filtered or unexported fields
}
GetAccountsURL generates an URL for the get accounts operation
func (*GetAccountsURL) Build ¶
func (o *GetAccountsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountsURL) BuildFull ¶
func (o *GetAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountsURL) SetBasePath ¶
func (o *GetAccountsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetAccountsURL) String ¶
func (o *GetAccountsURL) String() string
String returns the string representation of the path with query string
func (*GetAccountsURL) StringFull ¶
func (o *GetAccountsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountsURL) WithBasePath ¶
func (o *GetAccountsURL) WithBasePath(bp string) *GetAccountsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetClassByID ¶
type GetClassByID struct { Context *middleware.Context Handler GetClassByIDHandler }
GetClassByID swagger:route GET /class/{ID} getClassById
GetClassByID get class by ID API
func NewGetClassByID ¶
func NewGetClassByID(ctx *middleware.Context, handler GetClassByIDHandler) *GetClassByID
NewGetClassByID creates a new http.Handler for the get class by ID operation
func (*GetClassByID) ServeHTTP ¶
func (o *GetClassByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClassByIDHandler ¶
type GetClassByIDHandler interface {
Handle(GetClassByIDParams) middleware.Responder
}
GetClassByIDHandler interface for that can handle valid get class by ID params
type GetClassByIDHandlerFunc ¶
type GetClassByIDHandlerFunc func(GetClassByIDParams) middleware.Responder
GetClassByIDHandlerFunc turns a function with the right signature into a get class by ID handler
func (GetClassByIDHandlerFunc) Handle ¶
func (fn GetClassByIDHandlerFunc) Handle(params GetClassByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetClassByIDInternalServerError ¶
type GetClassByIDInternalServerError struct { }
GetClassByIDInternalServerError Internal server error
swagger:response getClassByIdInternalServerError
func NewGetClassByIDInternalServerError ¶
func NewGetClassByIDInternalServerError() *GetClassByIDInternalServerError
NewGetClassByIDInternalServerError creates GetClassByIDInternalServerError with default headers values
func (*GetClassByIDInternalServerError) WriteResponse ¶
func (o *GetClassByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassByIDNotFound ¶
type GetClassByIDNotFound struct { }
GetClassByIDNotFound Class not found
swagger:response getClassByIdNotFound
func NewGetClassByIDNotFound ¶
func NewGetClassByIDNotFound() *GetClassByIDNotFound
NewGetClassByIDNotFound creates GetClassByIDNotFound with default headers values
func (*GetClassByIDNotFound) WriteResponse ¶
func (o *GetClassByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassByIDOK ¶
GetClassByIDOK Class response
swagger:response getClassByIdOK
func NewGetClassByIDOK ¶
func NewGetClassByIDOK() *GetClassByIDOK
NewGetClassByIDOK creates GetClassByIDOK with default headers values
func (*GetClassByIDOK) SetPayload ¶
func (o *GetClassByIDOK) SetPayload(payload *models.Class)
SetPayload sets the payload to the get class by Id o k response
func (*GetClassByIDOK) WithPayload ¶
func (o *GetClassByIDOK) WithPayload(payload *models.Class) *GetClassByIDOK
WithPayload adds the payload to the get class by Id o k response
func (*GetClassByIDOK) WriteResponse ¶
func (o *GetClassByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassByIDParams ¶
type GetClassByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Class Required: true In: path */ ID int64 }
GetClassByIDParams contains all the bound params for the get class by ID operation typically these are obtained from a http.Request
swagger:parameters getClassByID
func NewGetClassByIDParams ¶
func NewGetClassByIDParams() GetClassByIDParams
NewGetClassByIDParams creates a new GetClassByIDParams object
There are no default values defined in the spec.
func (*GetClassByIDParams) BindRequest ¶
func (o *GetClassByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetClassByIDParams() beforehand.
type GetClassByIDURL ¶
type GetClassByIDURL struct { ID int64 // contains filtered or unexported fields }
GetClassByIDURL generates an URL for the get class by ID operation
func (*GetClassByIDURL) Build ¶
func (o *GetClassByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClassByIDURL) BuildFull ¶
func (o *GetClassByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClassByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClassByIDURL) SetBasePath ¶
func (o *GetClassByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetClassByIDURL) String ¶
func (o *GetClassByIDURL) String() string
String returns the string representation of the path with query string
func (*GetClassByIDURL) StringFull ¶
func (o *GetClassByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClassByIDURL) WithBasePath ¶
func (o *GetClassByIDURL) WithBasePath(bp string) *GetClassByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetClassOfTeacher ¶
type GetClassOfTeacher struct { Context *middleware.Context Handler GetClassOfTeacherHandler }
GetClassOfTeacher swagger:route GET /teacher/{ID}/class getClassOfTeacher
GetClassOfTeacher get class of teacher API
func NewGetClassOfTeacher ¶
func NewGetClassOfTeacher(ctx *middleware.Context, handler GetClassOfTeacherHandler) *GetClassOfTeacher
NewGetClassOfTeacher creates a new http.Handler for the get class of teacher operation
func (*GetClassOfTeacher) ServeHTTP ¶
func (o *GetClassOfTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClassOfTeacherHandler ¶
type GetClassOfTeacherHandler interface {
Handle(GetClassOfTeacherParams) middleware.Responder
}
GetClassOfTeacherHandler interface for that can handle valid get class of teacher params
type GetClassOfTeacherHandlerFunc ¶
type GetClassOfTeacherHandlerFunc func(GetClassOfTeacherParams) middleware.Responder
GetClassOfTeacherHandlerFunc turns a function with the right signature into a get class of teacher handler
func (GetClassOfTeacherHandlerFunc) Handle ¶
func (fn GetClassOfTeacherHandlerFunc) Handle(params GetClassOfTeacherParams) middleware.Responder
Handle executing the request and returning a response
type GetClassOfTeacherInternalServerError ¶
type GetClassOfTeacherInternalServerError struct { }
GetClassOfTeacherInternalServerError Internal server error
swagger:response getClassOfTeacherInternalServerError
func NewGetClassOfTeacherInternalServerError ¶
func NewGetClassOfTeacherInternalServerError() *GetClassOfTeacherInternalServerError
NewGetClassOfTeacherInternalServerError creates GetClassOfTeacherInternalServerError with default headers values
func (*GetClassOfTeacherInternalServerError) WriteResponse ¶
func (o *GetClassOfTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassOfTeacherNotFound ¶
type GetClassOfTeacherNotFound struct { }
GetClassOfTeacherNotFound Class not found
swagger:response getClassOfTeacherNotFound
func NewGetClassOfTeacherNotFound ¶
func NewGetClassOfTeacherNotFound() *GetClassOfTeacherNotFound
NewGetClassOfTeacherNotFound creates GetClassOfTeacherNotFound with default headers values
func (*GetClassOfTeacherNotFound) WriteResponse ¶
func (o *GetClassOfTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassOfTeacherOK ¶
GetClassOfTeacherOK Teacher's Class response
swagger:response getClassOfTeacherOK
func NewGetClassOfTeacherOK ¶
func NewGetClassOfTeacherOK() *GetClassOfTeacherOK
NewGetClassOfTeacherOK creates GetClassOfTeacherOK with default headers values
func (*GetClassOfTeacherOK) SetPayload ¶
func (o *GetClassOfTeacherOK) SetPayload(payload *models.Class)
SetPayload sets the payload to the get class of teacher o k response
func (*GetClassOfTeacherOK) WithPayload ¶
func (o *GetClassOfTeacherOK) WithPayload(payload *models.Class) *GetClassOfTeacherOK
WithPayload adds the payload to the get class of teacher o k response
func (*GetClassOfTeacherOK) WriteResponse ¶
func (o *GetClassOfTeacherOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassOfTeacherParams ¶
type GetClassOfTeacherParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Teacher Required: true In: path */ ID int64 }
GetClassOfTeacherParams contains all the bound params for the get class of teacher operation typically these are obtained from a http.Request
swagger:parameters getClassOfTeacher
func NewGetClassOfTeacherParams ¶
func NewGetClassOfTeacherParams() GetClassOfTeacherParams
NewGetClassOfTeacherParams creates a new GetClassOfTeacherParams object
There are no default values defined in the spec.
func (*GetClassOfTeacherParams) BindRequest ¶
func (o *GetClassOfTeacherParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetClassOfTeacherParams() beforehand.
type GetClassOfTeacherURL ¶
type GetClassOfTeacherURL struct { ID int64 // contains filtered or unexported fields }
GetClassOfTeacherURL generates an URL for the get class of teacher operation
func (*GetClassOfTeacherURL) Build ¶
func (o *GetClassOfTeacherURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClassOfTeacherURL) BuildFull ¶
func (o *GetClassOfTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClassOfTeacherURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClassOfTeacherURL) SetBasePath ¶
func (o *GetClassOfTeacherURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetClassOfTeacherURL) String ¶
func (o *GetClassOfTeacherURL) String() string
String returns the string representation of the path with query string
func (*GetClassOfTeacherURL) StringFull ¶
func (o *GetClassOfTeacherURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClassOfTeacherURL) WithBasePath ¶
func (o *GetClassOfTeacherURL) WithBasePath(bp string) *GetClassOfTeacherURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetClasses ¶
type GetClasses struct { Context *middleware.Context Handler GetClassesHandler }
GetClasses swagger:route GET /class getClasses
Get all Classes
func NewGetClasses ¶
func NewGetClasses(ctx *middleware.Context, handler GetClassesHandler) *GetClasses
NewGetClasses creates a new http.Handler for the get classes operation
func (*GetClasses) ServeHTTP ¶
func (o *GetClasses) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClassesHandler ¶
type GetClassesHandler interface {
Handle(GetClassesParams) middleware.Responder
}
GetClassesHandler interface for that can handle valid get classes params
type GetClassesHandlerFunc ¶
type GetClassesHandlerFunc func(GetClassesParams) middleware.Responder
GetClassesHandlerFunc turns a function with the right signature into a get classes handler
func (GetClassesHandlerFunc) Handle ¶
func (fn GetClassesHandlerFunc) Handle(params GetClassesParams) middleware.Responder
Handle executing the request and returning a response
type GetClassesInternalServerError ¶
type GetClassesInternalServerError struct { }
GetClassesInternalServerError Internal server error
swagger:response getClassesInternalServerError
func NewGetClassesInternalServerError ¶
func NewGetClassesInternalServerError() *GetClassesInternalServerError
NewGetClassesInternalServerError creates GetClassesInternalServerError with default headers values
func (*GetClassesInternalServerError) WriteResponse ¶
func (o *GetClassesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesNotFound ¶
type GetClassesNotFound struct { }
GetClassesNotFound Class not found
swagger:response getClassesNotFound
func NewGetClassesNotFound ¶
func NewGetClassesNotFound() *GetClassesNotFound
NewGetClassesNotFound creates GetClassesNotFound with default headers values
func (*GetClassesNotFound) WriteResponse ¶
func (o *GetClassesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesOK ¶
GetClassesOK Classes' response
swagger:response getClassesOK
func NewGetClassesOK ¶
func NewGetClassesOK() *GetClassesOK
NewGetClassesOK creates GetClassesOK with default headers values
func (*GetClassesOK) SetPayload ¶
func (o *GetClassesOK) SetPayload(payload []*models.Class)
SetPayload sets the payload to the get classes o k response
func (*GetClassesOK) WithPayload ¶
func (o *GetClassesOK) WithPayload(payload []*models.Class) *GetClassesOK
WithPayload adds the payload to the get classes o k response
func (*GetClassesOK) WriteResponse ¶
func (o *GetClassesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesOfStudent ¶
type GetClassesOfStudent struct { Context *middleware.Context Handler GetClassesOfStudentHandler }
GetClassesOfStudent swagger:route GET /student/{ID}/classes getClassesOfStudent
GetClassesOfStudent get classes of student API
func NewGetClassesOfStudent ¶
func NewGetClassesOfStudent(ctx *middleware.Context, handler GetClassesOfStudentHandler) *GetClassesOfStudent
NewGetClassesOfStudent creates a new http.Handler for the get classes of student operation
func (*GetClassesOfStudent) ServeHTTP ¶
func (o *GetClassesOfStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetClassesOfStudentHandler ¶
type GetClassesOfStudentHandler interface {
Handle(GetClassesOfStudentParams) middleware.Responder
}
GetClassesOfStudentHandler interface for that can handle valid get classes of student params
type GetClassesOfStudentHandlerFunc ¶
type GetClassesOfStudentHandlerFunc func(GetClassesOfStudentParams) middleware.Responder
GetClassesOfStudentHandlerFunc turns a function with the right signature into a get classes of student handler
func (GetClassesOfStudentHandlerFunc) Handle ¶
func (fn GetClassesOfStudentHandlerFunc) Handle(params GetClassesOfStudentParams) middleware.Responder
Handle executing the request and returning a response
type GetClassesOfStudentInternalServerError ¶
type GetClassesOfStudentInternalServerError struct { }
GetClassesOfStudentInternalServerError Internal server error
swagger:response getClassesOfStudentInternalServerError
func NewGetClassesOfStudentInternalServerError ¶
func NewGetClassesOfStudentInternalServerError() *GetClassesOfStudentInternalServerError
NewGetClassesOfStudentInternalServerError creates GetClassesOfStudentInternalServerError with default headers values
func (*GetClassesOfStudentInternalServerError) WriteResponse ¶
func (o *GetClassesOfStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesOfStudentNotFound ¶
type GetClassesOfStudentNotFound struct { }
GetClassesOfStudentNotFound Student not found
swagger:response getClassesOfStudentNotFound
func NewGetClassesOfStudentNotFound ¶
func NewGetClassesOfStudentNotFound() *GetClassesOfStudentNotFound
NewGetClassesOfStudentNotFound creates GetClassesOfStudentNotFound with default headers values
func (*GetClassesOfStudentNotFound) WriteResponse ¶
func (o *GetClassesOfStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesOfStudentOK ¶
type GetClassesOfStudentOK struct { /* In: Body */ Payload []*models.Class `json:"body,omitempty"` }
GetClassesOfStudentOK Student's Class as response
swagger:response getClassesOfStudentOK
func NewGetClassesOfStudentOK ¶
func NewGetClassesOfStudentOK() *GetClassesOfStudentOK
NewGetClassesOfStudentOK creates GetClassesOfStudentOK with default headers values
func (*GetClassesOfStudentOK) SetPayload ¶
func (o *GetClassesOfStudentOK) SetPayload(payload []*models.Class)
SetPayload sets the payload to the get classes of student o k response
func (*GetClassesOfStudentOK) WithPayload ¶
func (o *GetClassesOfStudentOK) WithPayload(payload []*models.Class) *GetClassesOfStudentOK
WithPayload adds the payload to the get classes of student o k response
func (*GetClassesOfStudentOK) WriteResponse ¶
func (o *GetClassesOfStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetClassesOfStudentParams ¶
type GetClassesOfStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Student Required: true In: path */ ID int64 }
GetClassesOfStudentParams contains all the bound params for the get classes of student operation typically these are obtained from a http.Request
swagger:parameters getClassesOfStudent
func NewGetClassesOfStudentParams ¶
func NewGetClassesOfStudentParams() GetClassesOfStudentParams
NewGetClassesOfStudentParams creates a new GetClassesOfStudentParams object
There are no default values defined in the spec.
func (*GetClassesOfStudentParams) BindRequest ¶
func (o *GetClassesOfStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetClassesOfStudentParams() beforehand.
type GetClassesOfStudentURL ¶
type GetClassesOfStudentURL struct { ID int64 // contains filtered or unexported fields }
GetClassesOfStudentURL generates an URL for the get classes of student operation
func (*GetClassesOfStudentURL) Build ¶
func (o *GetClassesOfStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClassesOfStudentURL) BuildFull ¶
func (o *GetClassesOfStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClassesOfStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClassesOfStudentURL) SetBasePath ¶
func (o *GetClassesOfStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetClassesOfStudentURL) String ¶
func (o *GetClassesOfStudentURL) String() string
String returns the string representation of the path with query string
func (*GetClassesOfStudentURL) StringFull ¶
func (o *GetClassesOfStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClassesOfStudentURL) WithBasePath ¶
func (o *GetClassesOfStudentURL) WithBasePath(bp string) *GetClassesOfStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetClassesParams ¶
GetClassesParams contains all the bound params for the get classes operation typically these are obtained from a http.Request
swagger:parameters getClasses
func NewGetClassesParams ¶
func NewGetClassesParams() GetClassesParams
NewGetClassesParams creates a new GetClassesParams object
There are no default values defined in the spec.
func (*GetClassesParams) BindRequest ¶
func (o *GetClassesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetClassesParams() beforehand.
type GetClassesURL ¶
type GetClassesURL struct {
// contains filtered or unexported fields
}
GetClassesURL generates an URL for the get classes operation
func (*GetClassesURL) Build ¶
func (o *GetClassesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetClassesURL) BuildFull ¶
func (o *GetClassesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetClassesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetClassesURL) SetBasePath ¶
func (o *GetClassesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetClassesURL) String ¶
func (o *GetClassesURL) String() string
String returns the string representation of the path with query string
func (*GetClassesURL) StringFull ¶
func (o *GetClassesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetClassesURL) WithBasePath ¶
func (o *GetClassesURL) WithBasePath(bp string) *GetClassesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetDefaultedStudentAccounts ¶
type GetDefaultedStudentAccounts struct { Context *middleware.Context Handler GetDefaultedStudentAccountsHandler }
GetDefaultedStudentAccounts swagger:route GET /account/student/default getDefaultedStudentAccounts
Get Defaulted Student Accounts
func NewGetDefaultedStudentAccounts ¶
func NewGetDefaultedStudentAccounts(ctx *middleware.Context, handler GetDefaultedStudentAccountsHandler) *GetDefaultedStudentAccounts
NewGetDefaultedStudentAccounts creates a new http.Handler for the get defaulted student accounts operation
func (*GetDefaultedStudentAccounts) ServeHTTP ¶
func (o *GetDefaultedStudentAccounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetDefaultedStudentAccountsHandler ¶
type GetDefaultedStudentAccountsHandler interface {
Handle(GetDefaultedStudentAccountsParams) middleware.Responder
}
GetDefaultedStudentAccountsHandler interface for that can handle valid get defaulted student accounts params
type GetDefaultedStudentAccountsHandlerFunc ¶
type GetDefaultedStudentAccountsHandlerFunc func(GetDefaultedStudentAccountsParams) middleware.Responder
GetDefaultedStudentAccountsHandlerFunc turns a function with the right signature into a get defaulted student accounts handler
func (GetDefaultedStudentAccountsHandlerFunc) Handle ¶
func (fn GetDefaultedStudentAccountsHandlerFunc) Handle(params GetDefaultedStudentAccountsParams) middleware.Responder
Handle executing the request and returning a response
type GetDefaultedStudentAccountsInternalServerError ¶
type GetDefaultedStudentAccountsInternalServerError struct { }
GetDefaultedStudentAccountsInternalServerError Internal server error
swagger:response getDefaultedStudentAccountsInternalServerError
func NewGetDefaultedStudentAccountsInternalServerError ¶
func NewGetDefaultedStudentAccountsInternalServerError() *GetDefaultedStudentAccountsInternalServerError
NewGetDefaultedStudentAccountsInternalServerError creates GetDefaultedStudentAccountsInternalServerError with default headers values
func (*GetDefaultedStudentAccountsInternalServerError) WriteResponse ¶
func (o *GetDefaultedStudentAccountsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDefaultedStudentAccountsNotFound ¶
type GetDefaultedStudentAccountsNotFound struct { }
GetDefaultedStudentAccountsNotFound Default Student Account not found
swagger:response getDefaultedStudentAccountsNotFound
func NewGetDefaultedStudentAccountsNotFound ¶
func NewGetDefaultedStudentAccountsNotFound() *GetDefaultedStudentAccountsNotFound
NewGetDefaultedStudentAccountsNotFound creates GetDefaultedStudentAccountsNotFound with default headers values
func (*GetDefaultedStudentAccountsNotFound) WriteResponse ¶
func (o *GetDefaultedStudentAccountsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDefaultedStudentAccountsOK ¶
type GetDefaultedStudentAccountsOK struct { /* In: Body */ Payload []*models.Account `json:"body,omitempty"` }
GetDefaultedStudentAccountsOK Defaulted Student Accounts' response
swagger:response getDefaultedStudentAccountsOK
func NewGetDefaultedStudentAccountsOK ¶
func NewGetDefaultedStudentAccountsOK() *GetDefaultedStudentAccountsOK
NewGetDefaultedStudentAccountsOK creates GetDefaultedStudentAccountsOK with default headers values
func (*GetDefaultedStudentAccountsOK) SetPayload ¶
func (o *GetDefaultedStudentAccountsOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the get defaulted student accounts o k response
func (*GetDefaultedStudentAccountsOK) WithPayload ¶
func (o *GetDefaultedStudentAccountsOK) WithPayload(payload []*models.Account) *GetDefaultedStudentAccountsOK
WithPayload adds the payload to the get defaulted student accounts o k response
func (*GetDefaultedStudentAccountsOK) WriteResponse ¶
func (o *GetDefaultedStudentAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDefaultedStudentAccountsParams ¶
type GetDefaultedStudentAccountsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetDefaultedStudentAccountsParams contains all the bound params for the get defaulted student accounts operation typically these are obtained from a http.Request
swagger:parameters getDefaultedStudentAccounts
func NewGetDefaultedStudentAccountsParams ¶
func NewGetDefaultedStudentAccountsParams() GetDefaultedStudentAccountsParams
NewGetDefaultedStudentAccountsParams creates a new GetDefaultedStudentAccountsParams object
There are no default values defined in the spec.
func (*GetDefaultedStudentAccountsParams) BindRequest ¶
func (o *GetDefaultedStudentAccountsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetDefaultedStudentAccountsParams() beforehand.
type GetDefaultedStudentAccountsURL ¶
type GetDefaultedStudentAccountsURL struct {
// contains filtered or unexported fields
}
GetDefaultedStudentAccountsURL generates an URL for the get defaulted student accounts operation
func (*GetDefaultedStudentAccountsURL) Build ¶
func (o *GetDefaultedStudentAccountsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetDefaultedStudentAccountsURL) BuildFull ¶
func (o *GetDefaultedStudentAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetDefaultedStudentAccountsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetDefaultedStudentAccountsURL) SetBasePath ¶
func (o *GetDefaultedStudentAccountsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetDefaultedStudentAccountsURL) String ¶
func (o *GetDefaultedStudentAccountsURL) String() string
String returns the string representation of the path with query string
func (*GetDefaultedStudentAccountsURL) StringFull ¶
func (o *GetDefaultedStudentAccountsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetDefaultedStudentAccountsURL) WithBasePath ¶
func (o *GetDefaultedStudentAccountsURL) WithBasePath(bp string) *GetDefaultedStudentAccountsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudentAccounts ¶
type GetStudentAccounts struct { Context *middleware.Context Handler GetStudentAccountsHandler }
GetStudentAccounts swagger:route GET /account/student getStudentAccounts
Get all Student Accounts
func NewGetStudentAccounts ¶
func NewGetStudentAccounts(ctx *middleware.Context, handler GetStudentAccountsHandler) *GetStudentAccounts
NewGetStudentAccounts creates a new http.Handler for the get student accounts operation
func (*GetStudentAccounts) ServeHTTP ¶
func (o *GetStudentAccounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentAccountsHandler ¶
type GetStudentAccountsHandler interface {
Handle(GetStudentAccountsParams) middleware.Responder
}
GetStudentAccountsHandler interface for that can handle valid get student accounts params
type GetStudentAccountsHandlerFunc ¶
type GetStudentAccountsHandlerFunc func(GetStudentAccountsParams) middleware.Responder
GetStudentAccountsHandlerFunc turns a function with the right signature into a get student accounts handler
func (GetStudentAccountsHandlerFunc) Handle ¶
func (fn GetStudentAccountsHandlerFunc) Handle(params GetStudentAccountsParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentAccountsInternalServerError ¶
type GetStudentAccountsInternalServerError struct { }
GetStudentAccountsInternalServerError Internal server error
swagger:response getStudentAccountsInternalServerError
func NewGetStudentAccountsInternalServerError ¶
func NewGetStudentAccountsInternalServerError() *GetStudentAccountsInternalServerError
NewGetStudentAccountsInternalServerError creates GetStudentAccountsInternalServerError with default headers values
func (*GetStudentAccountsInternalServerError) WriteResponse ¶
func (o *GetStudentAccountsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentAccountsNotFound ¶
type GetStudentAccountsNotFound struct { }
GetStudentAccountsNotFound Student Account not found
swagger:response getStudentAccountsNotFound
func NewGetStudentAccountsNotFound ¶
func NewGetStudentAccountsNotFound() *GetStudentAccountsNotFound
NewGetStudentAccountsNotFound creates GetStudentAccountsNotFound with default headers values
func (*GetStudentAccountsNotFound) WriteResponse ¶
func (o *GetStudentAccountsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentAccountsOK ¶
type GetStudentAccountsOK struct { /* In: Body */ Payload []*models.Account `json:"body,omitempty"` }
GetStudentAccountsOK Student Accounts' response
swagger:response getStudentAccountsOK
func NewGetStudentAccountsOK ¶
func NewGetStudentAccountsOK() *GetStudentAccountsOK
NewGetStudentAccountsOK creates GetStudentAccountsOK with default headers values
func (*GetStudentAccountsOK) SetPayload ¶
func (o *GetStudentAccountsOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the get student accounts o k response
func (*GetStudentAccountsOK) WithPayload ¶
func (o *GetStudentAccountsOK) WithPayload(payload []*models.Account) *GetStudentAccountsOK
WithPayload adds the payload to the get student accounts o k response
func (*GetStudentAccountsOK) WriteResponse ¶
func (o *GetStudentAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentAccountsParams ¶
type GetStudentAccountsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetStudentAccountsParams contains all the bound params for the get student accounts operation typically these are obtained from a http.Request
swagger:parameters getStudentAccounts
func NewGetStudentAccountsParams ¶
func NewGetStudentAccountsParams() GetStudentAccountsParams
NewGetStudentAccountsParams creates a new GetStudentAccountsParams object
There are no default values defined in the spec.
func (*GetStudentAccountsParams) BindRequest ¶
func (o *GetStudentAccountsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentAccountsParams() beforehand.
type GetStudentAccountsURL ¶
type GetStudentAccountsURL struct {
// contains filtered or unexported fields
}
GetStudentAccountsURL generates an URL for the get student accounts operation
func (*GetStudentAccountsURL) Build ¶
func (o *GetStudentAccountsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentAccountsURL) BuildFull ¶
func (o *GetStudentAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentAccountsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentAccountsURL) SetBasePath ¶
func (o *GetStudentAccountsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentAccountsURL) String ¶
func (o *GetStudentAccountsURL) String() string
String returns the string representation of the path with query string
func (*GetStudentAccountsURL) StringFull ¶
func (o *GetStudentAccountsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentAccountsURL) WithBasePath ¶
func (o *GetStudentAccountsURL) WithBasePath(bp string) *GetStudentAccountsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudentByID ¶
type GetStudentByID struct { Context *middleware.Context Handler GetStudentByIDHandler }
GetStudentByID swagger:route GET /student/{ID} getStudentById
GetStudentByID get student by ID API
func NewGetStudentByID ¶
func NewGetStudentByID(ctx *middleware.Context, handler GetStudentByIDHandler) *GetStudentByID
NewGetStudentByID creates a new http.Handler for the get student by ID operation
func (*GetStudentByID) ServeHTTP ¶
func (o *GetStudentByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentByIDHandler ¶
type GetStudentByIDHandler interface {
Handle(GetStudentByIDParams) middleware.Responder
}
GetStudentByIDHandler interface for that can handle valid get student by ID params
type GetStudentByIDHandlerFunc ¶
type GetStudentByIDHandlerFunc func(GetStudentByIDParams) middleware.Responder
GetStudentByIDHandlerFunc turns a function with the right signature into a get student by ID handler
func (GetStudentByIDHandlerFunc) Handle ¶
func (fn GetStudentByIDHandlerFunc) Handle(params GetStudentByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentByIDInternalServerError ¶
type GetStudentByIDInternalServerError struct { }
GetStudentByIDInternalServerError Internal server error
swagger:response getStudentByIdInternalServerError
func NewGetStudentByIDInternalServerError ¶
func NewGetStudentByIDInternalServerError() *GetStudentByIDInternalServerError
NewGetStudentByIDInternalServerError creates GetStudentByIDInternalServerError with default headers values
func (*GetStudentByIDInternalServerError) WriteResponse ¶
func (o *GetStudentByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentByIDNotFound ¶
type GetStudentByIDNotFound struct { }
GetStudentByIDNotFound Student not found
swagger:response getStudentByIdNotFound
func NewGetStudentByIDNotFound ¶
func NewGetStudentByIDNotFound() *GetStudentByIDNotFound
NewGetStudentByIDNotFound creates GetStudentByIDNotFound with default headers values
func (*GetStudentByIDNotFound) WriteResponse ¶
func (o *GetStudentByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentByIDOK ¶
GetStudentByIDOK Student response
swagger:response getStudentByIdOK
func NewGetStudentByIDOK ¶
func NewGetStudentByIDOK() *GetStudentByIDOK
NewGetStudentByIDOK creates GetStudentByIDOK with default headers values
func (*GetStudentByIDOK) SetPayload ¶
func (o *GetStudentByIDOK) SetPayload(payload *models.Student)
SetPayload sets the payload to the get student by Id o k response
func (*GetStudentByIDOK) WithPayload ¶
func (o *GetStudentByIDOK) WithPayload(payload *models.Student) *GetStudentByIDOK
WithPayload adds the payload to the get student by Id o k response
func (*GetStudentByIDOK) WriteResponse ¶
func (o *GetStudentByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentByIDParams ¶
type GetStudentByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Student Required: true In: path */ ID int64 }
GetStudentByIDParams contains all the bound params for the get student by ID operation typically these are obtained from a http.Request
swagger:parameters getStudentByID
func NewGetStudentByIDParams ¶
func NewGetStudentByIDParams() GetStudentByIDParams
NewGetStudentByIDParams creates a new GetStudentByIDParams object
There are no default values defined in the spec.
func (*GetStudentByIDParams) BindRequest ¶
func (o *GetStudentByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentByIDParams() beforehand.
type GetStudentByIDURL ¶
type GetStudentByIDURL struct { ID int64 // contains filtered or unexported fields }
GetStudentByIDURL generates an URL for the get student by ID operation
func (*GetStudentByIDURL) Build ¶
func (o *GetStudentByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentByIDURL) BuildFull ¶
func (o *GetStudentByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentByIDURL) SetBasePath ¶
func (o *GetStudentByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentByIDURL) String ¶
func (o *GetStudentByIDURL) String() string
String returns the string representation of the path with query string
func (*GetStudentByIDURL) StringFull ¶
func (o *GetStudentByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentByIDURL) WithBasePath ¶
func (o *GetStudentByIDURL) WithBasePath(bp string) *GetStudentByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudents ¶
type GetStudents struct { Context *middleware.Context Handler GetStudentsHandler }
GetStudents swagger:route GET /student getStudents
Get all Students
func NewGetStudents ¶
func NewGetStudents(ctx *middleware.Context, handler GetStudentsHandler) *GetStudents
NewGetStudents creates a new http.Handler for the get students operation
func (*GetStudents) ServeHTTP ¶
func (o *GetStudents) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentsHandler ¶
type GetStudentsHandler interface {
Handle(GetStudentsParams) middleware.Responder
}
GetStudentsHandler interface for that can handle valid get students params
type GetStudentsHandlerFunc ¶
type GetStudentsHandlerFunc func(GetStudentsParams) middleware.Responder
GetStudentsHandlerFunc turns a function with the right signature into a get students handler
func (GetStudentsHandlerFunc) Handle ¶
func (fn GetStudentsHandlerFunc) Handle(params GetStudentsParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentsInternalServerError ¶
type GetStudentsInternalServerError struct { }
GetStudentsInternalServerError Internal server error
swagger:response getStudentsInternalServerError
func NewGetStudentsInternalServerError ¶
func NewGetStudentsInternalServerError() *GetStudentsInternalServerError
NewGetStudentsInternalServerError creates GetStudentsInternalServerError with default headers values
func (*GetStudentsInternalServerError) WriteResponse ¶
func (o *GetStudentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsNotFound ¶
type GetStudentsNotFound struct { }
GetStudentsNotFound Students not found
swagger:response getStudentsNotFound
func NewGetStudentsNotFound ¶
func NewGetStudentsNotFound() *GetStudentsNotFound
NewGetStudentsNotFound creates GetStudentsNotFound with default headers values
func (*GetStudentsNotFound) WriteResponse ¶
func (o *GetStudentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOK ¶
GetStudentsOK Students' response
swagger:response getStudentsOK
func NewGetStudentsOK ¶
func NewGetStudentsOK() *GetStudentsOK
NewGetStudentsOK creates GetStudentsOK with default headers values
func (*GetStudentsOK) SetPayload ¶
func (o *GetStudentsOK) SetPayload(payload []*models.Student)
SetPayload sets the payload to the get students o k response
func (*GetStudentsOK) WithPayload ¶
func (o *GetStudentsOK) WithPayload(payload []*models.Student) *GetStudentsOK
WithPayload adds the payload to the get students o k response
func (*GetStudentsOK) WriteResponse ¶
func (o *GetStudentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfClass ¶
type GetStudentsOfClass struct { Context *middleware.Context Handler GetStudentsOfClassHandler }
GetStudentsOfClass swagger:route GET /class/{ID}/students getStudentsOfClass
GetStudentsOfClass get students of class API
func NewGetStudentsOfClass ¶
func NewGetStudentsOfClass(ctx *middleware.Context, handler GetStudentsOfClassHandler) *GetStudentsOfClass
NewGetStudentsOfClass creates a new http.Handler for the get students of class operation
func (*GetStudentsOfClass) ServeHTTP ¶
func (o *GetStudentsOfClass) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentsOfClassHandler ¶
type GetStudentsOfClassHandler interface {
Handle(GetStudentsOfClassParams) middleware.Responder
}
GetStudentsOfClassHandler interface for that can handle valid get students of class params
type GetStudentsOfClassHandlerFunc ¶
type GetStudentsOfClassHandlerFunc func(GetStudentsOfClassParams) middleware.Responder
GetStudentsOfClassHandlerFunc turns a function with the right signature into a get students of class handler
func (GetStudentsOfClassHandlerFunc) Handle ¶
func (fn GetStudentsOfClassHandlerFunc) Handle(params GetStudentsOfClassParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentsOfClassInternalServerError ¶
type GetStudentsOfClassInternalServerError struct { }
GetStudentsOfClassInternalServerError Internal server error
swagger:response getStudentsOfClassInternalServerError
func NewGetStudentsOfClassInternalServerError ¶
func NewGetStudentsOfClassInternalServerError() *GetStudentsOfClassInternalServerError
NewGetStudentsOfClassInternalServerError creates GetStudentsOfClassInternalServerError with default headers values
func (*GetStudentsOfClassInternalServerError) WriteResponse ¶
func (o *GetStudentsOfClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfClassNotFound ¶
type GetStudentsOfClassNotFound struct { }
GetStudentsOfClassNotFound Class not found
swagger:response getStudentsOfClassNotFound
func NewGetStudentsOfClassNotFound ¶
func NewGetStudentsOfClassNotFound() *GetStudentsOfClassNotFound
NewGetStudentsOfClassNotFound creates GetStudentsOfClassNotFound with default headers values
func (*GetStudentsOfClassNotFound) WriteResponse ¶
func (o *GetStudentsOfClassNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfClassOK ¶
type GetStudentsOfClassOK struct { /* In: Body */ Payload []*models.Student `json:"body,omitempty"` }
GetStudentsOfClassOK Class' Students as response
swagger:response getStudentsOfClassOK
func NewGetStudentsOfClassOK ¶
func NewGetStudentsOfClassOK() *GetStudentsOfClassOK
NewGetStudentsOfClassOK creates GetStudentsOfClassOK with default headers values
func (*GetStudentsOfClassOK) SetPayload ¶
func (o *GetStudentsOfClassOK) SetPayload(payload []*models.Student)
SetPayload sets the payload to the get students of class o k response
func (*GetStudentsOfClassOK) WithPayload ¶
func (o *GetStudentsOfClassOK) WithPayload(payload []*models.Student) *GetStudentsOfClassOK
WithPayload adds the payload to the get students of class o k response
func (*GetStudentsOfClassOK) WriteResponse ¶
func (o *GetStudentsOfClassOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfClassParams ¶
type GetStudentsOfClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Class Required: true In: path */ ID int64 }
GetStudentsOfClassParams contains all the bound params for the get students of class operation typically these are obtained from a http.Request
swagger:parameters getStudentsOfClass
func NewGetStudentsOfClassParams ¶
func NewGetStudentsOfClassParams() GetStudentsOfClassParams
NewGetStudentsOfClassParams creates a new GetStudentsOfClassParams object
There are no default values defined in the spec.
func (*GetStudentsOfClassParams) BindRequest ¶
func (o *GetStudentsOfClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentsOfClassParams() beforehand.
type GetStudentsOfClassURL ¶
type GetStudentsOfClassURL struct { ID int64 // contains filtered or unexported fields }
GetStudentsOfClassURL generates an URL for the get students of class operation
func (*GetStudentsOfClassURL) Build ¶
func (o *GetStudentsOfClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentsOfClassURL) BuildFull ¶
func (o *GetStudentsOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentsOfClassURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentsOfClassURL) SetBasePath ¶
func (o *GetStudentsOfClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentsOfClassURL) String ¶
func (o *GetStudentsOfClassURL) String() string
String returns the string representation of the path with query string
func (*GetStudentsOfClassURL) StringFull ¶
func (o *GetStudentsOfClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentsOfClassURL) WithBasePath ¶
func (o *GetStudentsOfClassURL) WithBasePath(bp string) *GetStudentsOfClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudentsOfSubject ¶
type GetStudentsOfSubject struct { Context *middleware.Context Handler GetStudentsOfSubjectHandler }
GetStudentsOfSubject swagger:route GET /subject/{ID}/students getStudentsOfSubject
GetStudentsOfSubject get students of subject API
func NewGetStudentsOfSubject ¶
func NewGetStudentsOfSubject(ctx *middleware.Context, handler GetStudentsOfSubjectHandler) *GetStudentsOfSubject
NewGetStudentsOfSubject creates a new http.Handler for the get students of subject operation
func (*GetStudentsOfSubject) ServeHTTP ¶
func (o *GetStudentsOfSubject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentsOfSubjectHandler ¶
type GetStudentsOfSubjectHandler interface {
Handle(GetStudentsOfSubjectParams) middleware.Responder
}
GetStudentsOfSubjectHandler interface for that can handle valid get students of subject params
type GetStudentsOfSubjectHandlerFunc ¶
type GetStudentsOfSubjectHandlerFunc func(GetStudentsOfSubjectParams) middleware.Responder
GetStudentsOfSubjectHandlerFunc turns a function with the right signature into a get students of subject handler
func (GetStudentsOfSubjectHandlerFunc) Handle ¶
func (fn GetStudentsOfSubjectHandlerFunc) Handle(params GetStudentsOfSubjectParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentsOfSubjectInternalServerError ¶
type GetStudentsOfSubjectInternalServerError struct { }
GetStudentsOfSubjectInternalServerError Internal server error
swagger:response getStudentsOfSubjectInternalServerError
func NewGetStudentsOfSubjectInternalServerError ¶
func NewGetStudentsOfSubjectInternalServerError() *GetStudentsOfSubjectInternalServerError
NewGetStudentsOfSubjectInternalServerError creates GetStudentsOfSubjectInternalServerError with default headers values
func (*GetStudentsOfSubjectInternalServerError) WriteResponse ¶
func (o *GetStudentsOfSubjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfSubjectNotFound ¶
type GetStudentsOfSubjectNotFound struct { }
GetStudentsOfSubjectNotFound Subject not found
swagger:response getStudentsOfSubjectNotFound
func NewGetStudentsOfSubjectNotFound ¶
func NewGetStudentsOfSubjectNotFound() *GetStudentsOfSubjectNotFound
NewGetStudentsOfSubjectNotFound creates GetStudentsOfSubjectNotFound with default headers values
func (*GetStudentsOfSubjectNotFound) WriteResponse ¶
func (o *GetStudentsOfSubjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfSubjectOK ¶
type GetStudentsOfSubjectOK struct { /* In: Body */ Payload []*models.Student `json:"body,omitempty"` }
GetStudentsOfSubjectOK Subject's Students response
swagger:response getStudentsOfSubjectOK
func NewGetStudentsOfSubjectOK ¶
func NewGetStudentsOfSubjectOK() *GetStudentsOfSubjectOK
NewGetStudentsOfSubjectOK creates GetStudentsOfSubjectOK with default headers values
func (*GetStudentsOfSubjectOK) SetPayload ¶
func (o *GetStudentsOfSubjectOK) SetPayload(payload []*models.Student)
SetPayload sets the payload to the get students of subject o k response
func (*GetStudentsOfSubjectOK) WithPayload ¶
func (o *GetStudentsOfSubjectOK) WithPayload(payload []*models.Student) *GetStudentsOfSubjectOK
WithPayload adds the payload to the get students of subject o k response
func (*GetStudentsOfSubjectOK) WriteResponse ¶
func (o *GetStudentsOfSubjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfSubjectParams ¶
type GetStudentsOfSubjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Subject Required: true In: path */ ID int64 }
GetStudentsOfSubjectParams contains all the bound params for the get students of subject operation typically these are obtained from a http.Request
swagger:parameters getStudentsOfSubject
func NewGetStudentsOfSubjectParams ¶
func NewGetStudentsOfSubjectParams() GetStudentsOfSubjectParams
NewGetStudentsOfSubjectParams creates a new GetStudentsOfSubjectParams object
There are no default values defined in the spec.
func (*GetStudentsOfSubjectParams) BindRequest ¶
func (o *GetStudentsOfSubjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentsOfSubjectParams() beforehand.
type GetStudentsOfSubjectURL ¶
type GetStudentsOfSubjectURL struct { ID int64 // contains filtered or unexported fields }
GetStudentsOfSubjectURL generates an URL for the get students of subject operation
func (*GetStudentsOfSubjectURL) Build ¶
func (o *GetStudentsOfSubjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentsOfSubjectURL) BuildFull ¶
func (o *GetStudentsOfSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentsOfSubjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentsOfSubjectURL) SetBasePath ¶
func (o *GetStudentsOfSubjectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentsOfSubjectURL) String ¶
func (o *GetStudentsOfSubjectURL) String() string
String returns the string representation of the path with query string
func (*GetStudentsOfSubjectURL) StringFull ¶
func (o *GetStudentsOfSubjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentsOfSubjectURL) WithBasePath ¶
func (o *GetStudentsOfSubjectURL) WithBasePath(bp string) *GetStudentsOfSubjectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudentsOfTeacher ¶
type GetStudentsOfTeacher struct { Context *middleware.Context Handler GetStudentsOfTeacherHandler }
GetStudentsOfTeacher swagger:route GET /teacher/{ID}/students getStudentsOfTeacher
GetStudentsOfTeacher get students of teacher API
func NewGetStudentsOfTeacher ¶
func NewGetStudentsOfTeacher(ctx *middleware.Context, handler GetStudentsOfTeacherHandler) *GetStudentsOfTeacher
NewGetStudentsOfTeacher creates a new http.Handler for the get students of teacher operation
func (*GetStudentsOfTeacher) ServeHTTP ¶
func (o *GetStudentsOfTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStudentsOfTeacherHandler ¶
type GetStudentsOfTeacherHandler interface {
Handle(GetStudentsOfTeacherParams) middleware.Responder
}
GetStudentsOfTeacherHandler interface for that can handle valid get students of teacher params
type GetStudentsOfTeacherHandlerFunc ¶
type GetStudentsOfTeacherHandlerFunc func(GetStudentsOfTeacherParams) middleware.Responder
GetStudentsOfTeacherHandlerFunc turns a function with the right signature into a get students of teacher handler
func (GetStudentsOfTeacherHandlerFunc) Handle ¶
func (fn GetStudentsOfTeacherHandlerFunc) Handle(params GetStudentsOfTeacherParams) middleware.Responder
Handle executing the request and returning a response
type GetStudentsOfTeacherInternalServerError ¶
type GetStudentsOfTeacherInternalServerError struct { }
GetStudentsOfTeacherInternalServerError Internal server error
swagger:response getStudentsOfTeacherInternalServerError
func NewGetStudentsOfTeacherInternalServerError ¶
func NewGetStudentsOfTeacherInternalServerError() *GetStudentsOfTeacherInternalServerError
NewGetStudentsOfTeacherInternalServerError creates GetStudentsOfTeacherInternalServerError with default headers values
func (*GetStudentsOfTeacherInternalServerError) WriteResponse ¶
func (o *GetStudentsOfTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfTeacherNotFound ¶
type GetStudentsOfTeacherNotFound struct { }
GetStudentsOfTeacherNotFound Teacher not found
swagger:response getStudentsOfTeacherNotFound
func NewGetStudentsOfTeacherNotFound ¶
func NewGetStudentsOfTeacherNotFound() *GetStudentsOfTeacherNotFound
NewGetStudentsOfTeacherNotFound creates GetStudentsOfTeacherNotFound with default headers values
func (*GetStudentsOfTeacherNotFound) WriteResponse ¶
func (o *GetStudentsOfTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfTeacherOK ¶
type GetStudentsOfTeacherOK struct { /* In: Body */ Payload []*models.Student `json:"body,omitempty"` }
GetStudentsOfTeacherOK Teacher's Students response
swagger:response getStudentsOfTeacherOK
func NewGetStudentsOfTeacherOK ¶
func NewGetStudentsOfTeacherOK() *GetStudentsOfTeacherOK
NewGetStudentsOfTeacherOK creates GetStudentsOfTeacherOK with default headers values
func (*GetStudentsOfTeacherOK) SetPayload ¶
func (o *GetStudentsOfTeacherOK) SetPayload(payload []*models.Student)
SetPayload sets the payload to the get students of teacher o k response
func (*GetStudentsOfTeacherOK) WithPayload ¶
func (o *GetStudentsOfTeacherOK) WithPayload(payload []*models.Student) *GetStudentsOfTeacherOK
WithPayload adds the payload to the get students of teacher o k response
func (*GetStudentsOfTeacherOK) WriteResponse ¶
func (o *GetStudentsOfTeacherOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStudentsOfTeacherParams ¶
type GetStudentsOfTeacherParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Teacher Required: true In: path */ ID int64 }
GetStudentsOfTeacherParams contains all the bound params for the get students of teacher operation typically these are obtained from a http.Request
swagger:parameters getStudentsOfTeacher
func NewGetStudentsOfTeacherParams ¶
func NewGetStudentsOfTeacherParams() GetStudentsOfTeacherParams
NewGetStudentsOfTeacherParams creates a new GetStudentsOfTeacherParams object
There are no default values defined in the spec.
func (*GetStudentsOfTeacherParams) BindRequest ¶
func (o *GetStudentsOfTeacherParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentsOfTeacherParams() beforehand.
type GetStudentsOfTeacherURL ¶
type GetStudentsOfTeacherURL struct { ID int64 // contains filtered or unexported fields }
GetStudentsOfTeacherURL generates an URL for the get students of teacher operation
func (*GetStudentsOfTeacherURL) Build ¶
func (o *GetStudentsOfTeacherURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentsOfTeacherURL) BuildFull ¶
func (o *GetStudentsOfTeacherURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentsOfTeacherURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentsOfTeacherURL) SetBasePath ¶
func (o *GetStudentsOfTeacherURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentsOfTeacherURL) String ¶
func (o *GetStudentsOfTeacherURL) String() string
String returns the string representation of the path with query string
func (*GetStudentsOfTeacherURL) StringFull ¶
func (o *GetStudentsOfTeacherURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentsOfTeacherURL) WithBasePath ¶
func (o *GetStudentsOfTeacherURL) WithBasePath(bp string) *GetStudentsOfTeacherURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStudentsParams ¶
GetStudentsParams contains all the bound params for the get students operation typically these are obtained from a http.Request
swagger:parameters getStudents
func NewGetStudentsParams ¶
func NewGetStudentsParams() GetStudentsParams
NewGetStudentsParams creates a new GetStudentsParams object
There are no default values defined in the spec.
func (*GetStudentsParams) BindRequest ¶
func (o *GetStudentsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStudentsParams() beforehand.
type GetStudentsURL ¶
type GetStudentsURL struct {
// contains filtered or unexported fields
}
GetStudentsURL generates an URL for the get students operation
func (*GetStudentsURL) Build ¶
func (o *GetStudentsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStudentsURL) BuildFull ¶
func (o *GetStudentsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStudentsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStudentsURL) SetBasePath ¶
func (o *GetStudentsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStudentsURL) String ¶
func (o *GetStudentsURL) String() string
String returns the string representation of the path with query string
func (*GetStudentsURL) StringFull ¶
func (o *GetStudentsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStudentsURL) WithBasePath ¶
func (o *GetStudentsURL) WithBasePath(bp string) *GetStudentsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSubjectByID ¶
type GetSubjectByID struct { Context *middleware.Context Handler GetSubjectByIDHandler }
GetSubjectByID swagger:route GET /subject/{ID} getSubjectById
GetSubjectByID get subject by ID API
func NewGetSubjectByID ¶
func NewGetSubjectByID(ctx *middleware.Context, handler GetSubjectByIDHandler) *GetSubjectByID
NewGetSubjectByID creates a new http.Handler for the get subject by ID operation
func (*GetSubjectByID) ServeHTTP ¶
func (o *GetSubjectByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubjectByIDHandler ¶
type GetSubjectByIDHandler interface {
Handle(GetSubjectByIDParams) middleware.Responder
}
GetSubjectByIDHandler interface for that can handle valid get subject by ID params
type GetSubjectByIDHandlerFunc ¶
type GetSubjectByIDHandlerFunc func(GetSubjectByIDParams) middleware.Responder
GetSubjectByIDHandlerFunc turns a function with the right signature into a get subject by ID handler
func (GetSubjectByIDHandlerFunc) Handle ¶
func (fn GetSubjectByIDHandlerFunc) Handle(params GetSubjectByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetSubjectByIDInternalServerError ¶
type GetSubjectByIDInternalServerError struct { }
GetSubjectByIDInternalServerError Internal server error
swagger:response getSubjectByIdInternalServerError
func NewGetSubjectByIDInternalServerError ¶
func NewGetSubjectByIDInternalServerError() *GetSubjectByIDInternalServerError
NewGetSubjectByIDInternalServerError creates GetSubjectByIDInternalServerError with default headers values
func (*GetSubjectByIDInternalServerError) WriteResponse ¶
func (o *GetSubjectByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectByIDNotFound ¶
type GetSubjectByIDNotFound struct { }
GetSubjectByIDNotFound Subject not found
swagger:response getSubjectByIdNotFound
func NewGetSubjectByIDNotFound ¶
func NewGetSubjectByIDNotFound() *GetSubjectByIDNotFound
NewGetSubjectByIDNotFound creates GetSubjectByIDNotFound with default headers values
func (*GetSubjectByIDNotFound) WriteResponse ¶
func (o *GetSubjectByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectByIDOK ¶
GetSubjectByIDOK Subject response
swagger:response getSubjectByIdOK
func NewGetSubjectByIDOK ¶
func NewGetSubjectByIDOK() *GetSubjectByIDOK
NewGetSubjectByIDOK creates GetSubjectByIDOK with default headers values
func (*GetSubjectByIDOK) SetPayload ¶
func (o *GetSubjectByIDOK) SetPayload(payload *models.Subject)
SetPayload sets the payload to the get subject by Id o k response
func (*GetSubjectByIDOK) WithPayload ¶
func (o *GetSubjectByIDOK) WithPayload(payload *models.Subject) *GetSubjectByIDOK
WithPayload adds the payload to the get subject by Id o k response
func (*GetSubjectByIDOK) WriteResponse ¶
func (o *GetSubjectByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectByIDParams ¶
type GetSubjectByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Subject Required: true In: path */ ID int64 }
GetSubjectByIDParams contains all the bound params for the get subject by ID operation typically these are obtained from a http.Request
swagger:parameters getSubjectByID
func NewGetSubjectByIDParams ¶
func NewGetSubjectByIDParams() GetSubjectByIDParams
NewGetSubjectByIDParams creates a new GetSubjectByIDParams object
There are no default values defined in the spec.
func (*GetSubjectByIDParams) BindRequest ¶
func (o *GetSubjectByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSubjectByIDParams() beforehand.
type GetSubjectByIDURL ¶
type GetSubjectByIDURL struct { ID int64 // contains filtered or unexported fields }
GetSubjectByIDURL generates an URL for the get subject by ID operation
func (*GetSubjectByIDURL) Build ¶
func (o *GetSubjectByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubjectByIDURL) BuildFull ¶
func (o *GetSubjectByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubjectByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubjectByIDURL) SetBasePath ¶
func (o *GetSubjectByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSubjectByIDURL) String ¶
func (o *GetSubjectByIDURL) String() string
String returns the string representation of the path with query string
func (*GetSubjectByIDURL) StringFull ¶
func (o *GetSubjectByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubjectByIDURL) WithBasePath ¶
func (o *GetSubjectByIDURL) WithBasePath(bp string) *GetSubjectByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSubjects ¶
type GetSubjects struct { Context *middleware.Context Handler GetSubjectsHandler }
GetSubjects swagger:route GET /subject getSubjects
Get all Subjects
func NewGetSubjects ¶
func NewGetSubjects(ctx *middleware.Context, handler GetSubjectsHandler) *GetSubjects
NewGetSubjects creates a new http.Handler for the get subjects operation
func (*GetSubjects) ServeHTTP ¶
func (o *GetSubjects) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubjectsHandler ¶
type GetSubjectsHandler interface {
Handle(GetSubjectsParams) middleware.Responder
}
GetSubjectsHandler interface for that can handle valid get subjects params
type GetSubjectsHandlerFunc ¶
type GetSubjectsHandlerFunc func(GetSubjectsParams) middleware.Responder
GetSubjectsHandlerFunc turns a function with the right signature into a get subjects handler
func (GetSubjectsHandlerFunc) Handle ¶
func (fn GetSubjectsHandlerFunc) Handle(params GetSubjectsParams) middleware.Responder
Handle executing the request and returning a response
type GetSubjectsInternalServerError ¶
type GetSubjectsInternalServerError struct { }
GetSubjectsInternalServerError Internal server error
swagger:response getSubjectsInternalServerError
func NewGetSubjectsInternalServerError ¶
func NewGetSubjectsInternalServerError() *GetSubjectsInternalServerError
NewGetSubjectsInternalServerError creates GetSubjectsInternalServerError with default headers values
func (*GetSubjectsInternalServerError) WriteResponse ¶
func (o *GetSubjectsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsNotFound ¶
type GetSubjectsNotFound struct { }
GetSubjectsNotFound Subjects not found
swagger:response getSubjectsNotFound
func NewGetSubjectsNotFound ¶
func NewGetSubjectsNotFound() *GetSubjectsNotFound
NewGetSubjectsNotFound creates GetSubjectsNotFound with default headers values
func (*GetSubjectsNotFound) WriteResponse ¶
func (o *GetSubjectsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOK ¶
GetSubjectsOK Subjects' response
swagger:response getSubjectsOK
func NewGetSubjectsOK ¶
func NewGetSubjectsOK() *GetSubjectsOK
NewGetSubjectsOK creates GetSubjectsOK with default headers values
func (*GetSubjectsOK) SetPayload ¶
func (o *GetSubjectsOK) SetPayload(payload []*models.Subject)
SetPayload sets the payload to the get subjects o k response
func (*GetSubjectsOK) WithPayload ¶
func (o *GetSubjectsOK) WithPayload(payload []*models.Subject) *GetSubjectsOK
WithPayload adds the payload to the get subjects o k response
func (*GetSubjectsOK) WriteResponse ¶
func (o *GetSubjectsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfClass ¶
type GetSubjectsOfClass struct { Context *middleware.Context Handler GetSubjectsOfClassHandler }
GetSubjectsOfClass swagger:route GET /class/{ID}/subjects getSubjectsOfClass
GetSubjectsOfClass get subjects of class API
func NewGetSubjectsOfClass ¶
func NewGetSubjectsOfClass(ctx *middleware.Context, handler GetSubjectsOfClassHandler) *GetSubjectsOfClass
NewGetSubjectsOfClass creates a new http.Handler for the get subjects of class operation
func (*GetSubjectsOfClass) ServeHTTP ¶
func (o *GetSubjectsOfClass) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubjectsOfClassHandler ¶
type GetSubjectsOfClassHandler interface {
Handle(GetSubjectsOfClassParams) middleware.Responder
}
GetSubjectsOfClassHandler interface for that can handle valid get subjects of class params
type GetSubjectsOfClassHandlerFunc ¶
type GetSubjectsOfClassHandlerFunc func(GetSubjectsOfClassParams) middleware.Responder
GetSubjectsOfClassHandlerFunc turns a function with the right signature into a get subjects of class handler
func (GetSubjectsOfClassHandlerFunc) Handle ¶
func (fn GetSubjectsOfClassHandlerFunc) Handle(params GetSubjectsOfClassParams) middleware.Responder
Handle executing the request and returning a response
type GetSubjectsOfClassInternalServerError ¶
type GetSubjectsOfClassInternalServerError struct { }
GetSubjectsOfClassInternalServerError Internal server error
swagger:response getSubjectsOfClassInternalServerError
func NewGetSubjectsOfClassInternalServerError ¶
func NewGetSubjectsOfClassInternalServerError() *GetSubjectsOfClassInternalServerError
NewGetSubjectsOfClassInternalServerError creates GetSubjectsOfClassInternalServerError with default headers values
func (*GetSubjectsOfClassInternalServerError) WriteResponse ¶
func (o *GetSubjectsOfClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfClassNotFound ¶
type GetSubjectsOfClassNotFound struct { }
GetSubjectsOfClassNotFound Class not found
swagger:response getSubjectsOfClassNotFound
func NewGetSubjectsOfClassNotFound ¶
func NewGetSubjectsOfClassNotFound() *GetSubjectsOfClassNotFound
NewGetSubjectsOfClassNotFound creates GetSubjectsOfClassNotFound with default headers values
func (*GetSubjectsOfClassNotFound) WriteResponse ¶
func (o *GetSubjectsOfClassNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfClassOK ¶
type GetSubjectsOfClassOK struct { /* In: Body */ Payload []*models.Subject `json:"body,omitempty"` }
GetSubjectsOfClassOK Class' Subjects as response
swagger:response getSubjectsOfClassOK
func NewGetSubjectsOfClassOK ¶
func NewGetSubjectsOfClassOK() *GetSubjectsOfClassOK
NewGetSubjectsOfClassOK creates GetSubjectsOfClassOK with default headers values
func (*GetSubjectsOfClassOK) SetPayload ¶
func (o *GetSubjectsOfClassOK) SetPayload(payload []*models.Subject)
SetPayload sets the payload to the get subjects of class o k response
func (*GetSubjectsOfClassOK) WithPayload ¶
func (o *GetSubjectsOfClassOK) WithPayload(payload []*models.Subject) *GetSubjectsOfClassOK
WithPayload adds the payload to the get subjects of class o k response
func (*GetSubjectsOfClassOK) WriteResponse ¶
func (o *GetSubjectsOfClassOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfClassParams ¶
type GetSubjectsOfClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Class Required: true In: path */ ID int64 }
GetSubjectsOfClassParams contains all the bound params for the get subjects of class operation typically these are obtained from a http.Request
swagger:parameters getSubjectsOfClass
func NewGetSubjectsOfClassParams ¶
func NewGetSubjectsOfClassParams() GetSubjectsOfClassParams
NewGetSubjectsOfClassParams creates a new GetSubjectsOfClassParams object
There are no default values defined in the spec.
func (*GetSubjectsOfClassParams) BindRequest ¶
func (o *GetSubjectsOfClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSubjectsOfClassParams() beforehand.
type GetSubjectsOfClassURL ¶
type GetSubjectsOfClassURL struct { ID int64 // contains filtered or unexported fields }
GetSubjectsOfClassURL generates an URL for the get subjects of class operation
func (*GetSubjectsOfClassURL) Build ¶
func (o *GetSubjectsOfClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubjectsOfClassURL) BuildFull ¶
func (o *GetSubjectsOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubjectsOfClassURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubjectsOfClassURL) SetBasePath ¶
func (o *GetSubjectsOfClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSubjectsOfClassURL) String ¶
func (o *GetSubjectsOfClassURL) String() string
String returns the string representation of the path with query string
func (*GetSubjectsOfClassURL) StringFull ¶
func (o *GetSubjectsOfClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubjectsOfClassURL) WithBasePath ¶
func (o *GetSubjectsOfClassURL) WithBasePath(bp string) *GetSubjectsOfClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSubjectsOfStudent ¶
type GetSubjectsOfStudent struct { Context *middleware.Context Handler GetSubjectsOfStudentHandler }
GetSubjectsOfStudent swagger:route GET /student/{ID}/subjects getSubjectsOfStudent
GetSubjectsOfStudent get subjects of student API
func NewGetSubjectsOfStudent ¶
func NewGetSubjectsOfStudent(ctx *middleware.Context, handler GetSubjectsOfStudentHandler) *GetSubjectsOfStudent
NewGetSubjectsOfStudent creates a new http.Handler for the get subjects of student operation
func (*GetSubjectsOfStudent) ServeHTTP ¶
func (o *GetSubjectsOfStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSubjectsOfStudentHandler ¶
type GetSubjectsOfStudentHandler interface {
Handle(GetSubjectsOfStudentParams) middleware.Responder
}
GetSubjectsOfStudentHandler interface for that can handle valid get subjects of student params
type GetSubjectsOfStudentHandlerFunc ¶
type GetSubjectsOfStudentHandlerFunc func(GetSubjectsOfStudentParams) middleware.Responder
GetSubjectsOfStudentHandlerFunc turns a function with the right signature into a get subjects of student handler
func (GetSubjectsOfStudentHandlerFunc) Handle ¶
func (fn GetSubjectsOfStudentHandlerFunc) Handle(params GetSubjectsOfStudentParams) middleware.Responder
Handle executing the request and returning a response
type GetSubjectsOfStudentInternalServerError ¶
type GetSubjectsOfStudentInternalServerError struct { }
GetSubjectsOfStudentInternalServerError Internal server error
swagger:response getSubjectsOfStudentInternalServerError
func NewGetSubjectsOfStudentInternalServerError ¶
func NewGetSubjectsOfStudentInternalServerError() *GetSubjectsOfStudentInternalServerError
NewGetSubjectsOfStudentInternalServerError creates GetSubjectsOfStudentInternalServerError with default headers values
func (*GetSubjectsOfStudentInternalServerError) WriteResponse ¶
func (o *GetSubjectsOfStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfStudentNotFound ¶
type GetSubjectsOfStudentNotFound struct { }
GetSubjectsOfStudentNotFound Student not found
swagger:response getSubjectsOfStudentNotFound
func NewGetSubjectsOfStudentNotFound ¶
func NewGetSubjectsOfStudentNotFound() *GetSubjectsOfStudentNotFound
NewGetSubjectsOfStudentNotFound creates GetSubjectsOfStudentNotFound with default headers values
func (*GetSubjectsOfStudentNotFound) WriteResponse ¶
func (o *GetSubjectsOfStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfStudentOK ¶
type GetSubjectsOfStudentOK struct { /* In: Body */ Payload []*models.Subject `json:"body,omitempty"` }
GetSubjectsOfStudentOK Student's Subjects as response
swagger:response getSubjectsOfStudentOK
func NewGetSubjectsOfStudentOK ¶
func NewGetSubjectsOfStudentOK() *GetSubjectsOfStudentOK
NewGetSubjectsOfStudentOK creates GetSubjectsOfStudentOK with default headers values
func (*GetSubjectsOfStudentOK) SetPayload ¶
func (o *GetSubjectsOfStudentOK) SetPayload(payload []*models.Subject)
SetPayload sets the payload to the get subjects of student o k response
func (*GetSubjectsOfStudentOK) WithPayload ¶
func (o *GetSubjectsOfStudentOK) WithPayload(payload []*models.Subject) *GetSubjectsOfStudentOK
WithPayload adds the payload to the get subjects of student o k response
func (*GetSubjectsOfStudentOK) WriteResponse ¶
func (o *GetSubjectsOfStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSubjectsOfStudentParams ¶
type GetSubjectsOfStudentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Student Required: true In: path */ ID int64 }
GetSubjectsOfStudentParams contains all the bound params for the get subjects of student operation typically these are obtained from a http.Request
swagger:parameters getSubjectsOfStudent
func NewGetSubjectsOfStudentParams ¶
func NewGetSubjectsOfStudentParams() GetSubjectsOfStudentParams
NewGetSubjectsOfStudentParams creates a new GetSubjectsOfStudentParams object
There are no default values defined in the spec.
func (*GetSubjectsOfStudentParams) BindRequest ¶
func (o *GetSubjectsOfStudentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSubjectsOfStudentParams() beforehand.
type GetSubjectsOfStudentURL ¶
type GetSubjectsOfStudentURL struct { ID int64 // contains filtered or unexported fields }
GetSubjectsOfStudentURL generates an URL for the get subjects of student operation
func (*GetSubjectsOfStudentURL) Build ¶
func (o *GetSubjectsOfStudentURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubjectsOfStudentURL) BuildFull ¶
func (o *GetSubjectsOfStudentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubjectsOfStudentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubjectsOfStudentURL) SetBasePath ¶
func (o *GetSubjectsOfStudentURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSubjectsOfStudentURL) String ¶
func (o *GetSubjectsOfStudentURL) String() string
String returns the string representation of the path with query string
func (*GetSubjectsOfStudentURL) StringFull ¶
func (o *GetSubjectsOfStudentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubjectsOfStudentURL) WithBasePath ¶
func (o *GetSubjectsOfStudentURL) WithBasePath(bp string) *GetSubjectsOfStudentURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSubjectsParams ¶
GetSubjectsParams contains all the bound params for the get subjects operation typically these are obtained from a http.Request
swagger:parameters getSubjects
func NewGetSubjectsParams ¶
func NewGetSubjectsParams() GetSubjectsParams
NewGetSubjectsParams creates a new GetSubjectsParams object
There are no default values defined in the spec.
func (*GetSubjectsParams) BindRequest ¶
func (o *GetSubjectsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSubjectsParams() beforehand.
type GetSubjectsURL ¶
type GetSubjectsURL struct {
// contains filtered or unexported fields
}
GetSubjectsURL generates an URL for the get subjects operation
func (*GetSubjectsURL) Build ¶
func (o *GetSubjectsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSubjectsURL) BuildFull ¶
func (o *GetSubjectsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSubjectsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSubjectsURL) SetBasePath ¶
func (o *GetSubjectsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSubjectsURL) String ¶
func (o *GetSubjectsURL) String() string
String returns the string representation of the path with query string
func (*GetSubjectsURL) StringFull ¶
func (o *GetSubjectsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSubjectsURL) WithBasePath ¶
func (o *GetSubjectsURL) WithBasePath(bp string) *GetSubjectsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTeacherAccounts ¶
type GetTeacherAccounts struct { Context *middleware.Context Handler GetTeacherAccountsHandler }
GetTeacherAccounts swagger:route GET /account/teacher getTeacherAccounts
Get all Teacher Accounts
func NewGetTeacherAccounts ¶
func NewGetTeacherAccounts(ctx *middleware.Context, handler GetTeacherAccountsHandler) *GetTeacherAccounts
NewGetTeacherAccounts creates a new http.Handler for the get teacher accounts operation
func (*GetTeacherAccounts) ServeHTTP ¶
func (o *GetTeacherAccounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeacherAccountsHandler ¶
type GetTeacherAccountsHandler interface {
Handle(GetTeacherAccountsParams) middleware.Responder
}
GetTeacherAccountsHandler interface for that can handle valid get teacher accounts params
type GetTeacherAccountsHandlerFunc ¶
type GetTeacherAccountsHandlerFunc func(GetTeacherAccountsParams) middleware.Responder
GetTeacherAccountsHandlerFunc turns a function with the right signature into a get teacher accounts handler
func (GetTeacherAccountsHandlerFunc) Handle ¶
func (fn GetTeacherAccountsHandlerFunc) Handle(params GetTeacherAccountsParams) middleware.Responder
Handle executing the request and returning a response
type GetTeacherAccountsInternalServerError ¶
type GetTeacherAccountsInternalServerError struct { }
GetTeacherAccountsInternalServerError Internal server error
swagger:response getTeacherAccountsInternalServerError
func NewGetTeacherAccountsInternalServerError ¶
func NewGetTeacherAccountsInternalServerError() *GetTeacherAccountsInternalServerError
NewGetTeacherAccountsInternalServerError creates GetTeacherAccountsInternalServerError with default headers values
func (*GetTeacherAccountsInternalServerError) WriteResponse ¶
func (o *GetTeacherAccountsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherAccountsNotFound ¶
type GetTeacherAccountsNotFound struct { }
GetTeacherAccountsNotFound Teacher Account not found
swagger:response getTeacherAccountsNotFound
func NewGetTeacherAccountsNotFound ¶
func NewGetTeacherAccountsNotFound() *GetTeacherAccountsNotFound
NewGetTeacherAccountsNotFound creates GetTeacherAccountsNotFound with default headers values
func (*GetTeacherAccountsNotFound) WriteResponse ¶
func (o *GetTeacherAccountsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherAccountsOK ¶
type GetTeacherAccountsOK struct { /* In: Body */ Payload []*models.Account `json:"body,omitempty"` }
GetTeacherAccountsOK Teacher Accounts' response
swagger:response getTeacherAccountsOK
func NewGetTeacherAccountsOK ¶
func NewGetTeacherAccountsOK() *GetTeacherAccountsOK
NewGetTeacherAccountsOK creates GetTeacherAccountsOK with default headers values
func (*GetTeacherAccountsOK) SetPayload ¶
func (o *GetTeacherAccountsOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the get teacher accounts o k response
func (*GetTeacherAccountsOK) WithPayload ¶
func (o *GetTeacherAccountsOK) WithPayload(payload []*models.Account) *GetTeacherAccountsOK
WithPayload adds the payload to the get teacher accounts o k response
func (*GetTeacherAccountsOK) WriteResponse ¶
func (o *GetTeacherAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherAccountsParams ¶
type GetTeacherAccountsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetTeacherAccountsParams contains all the bound params for the get teacher accounts operation typically these are obtained from a http.Request
swagger:parameters getTeacherAccounts
func NewGetTeacherAccountsParams ¶
func NewGetTeacherAccountsParams() GetTeacherAccountsParams
NewGetTeacherAccountsParams creates a new GetTeacherAccountsParams object
There are no default values defined in the spec.
func (*GetTeacherAccountsParams) BindRequest ¶
func (o *GetTeacherAccountsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTeacherAccountsParams() beforehand.
type GetTeacherAccountsURL ¶
type GetTeacherAccountsURL struct {
// contains filtered or unexported fields
}
GetTeacherAccountsURL generates an URL for the get teacher accounts operation
func (*GetTeacherAccountsURL) Build ¶
func (o *GetTeacherAccountsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTeacherAccountsURL) BuildFull ¶
func (o *GetTeacherAccountsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTeacherAccountsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTeacherAccountsURL) SetBasePath ¶
func (o *GetTeacherAccountsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTeacherAccountsURL) String ¶
func (o *GetTeacherAccountsURL) String() string
String returns the string representation of the path with query string
func (*GetTeacherAccountsURL) StringFull ¶
func (o *GetTeacherAccountsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTeacherAccountsURL) WithBasePath ¶
func (o *GetTeacherAccountsURL) WithBasePath(bp string) *GetTeacherAccountsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTeacherByID ¶
type GetTeacherByID struct { Context *middleware.Context Handler GetTeacherByIDHandler }
GetTeacherByID swagger:route GET /teacher/{ID} getTeacherById
GetTeacherByID get teacher by ID API
func NewGetTeacherByID ¶
func NewGetTeacherByID(ctx *middleware.Context, handler GetTeacherByIDHandler) *GetTeacherByID
NewGetTeacherByID creates a new http.Handler for the get teacher by ID operation
func (*GetTeacherByID) ServeHTTP ¶
func (o *GetTeacherByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeacherByIDHandler ¶
type GetTeacherByIDHandler interface {
Handle(GetTeacherByIDParams) middleware.Responder
}
GetTeacherByIDHandler interface for that can handle valid get teacher by ID params
type GetTeacherByIDHandlerFunc ¶
type GetTeacherByIDHandlerFunc func(GetTeacherByIDParams) middleware.Responder
GetTeacherByIDHandlerFunc turns a function with the right signature into a get teacher by ID handler
func (GetTeacherByIDHandlerFunc) Handle ¶
func (fn GetTeacherByIDHandlerFunc) Handle(params GetTeacherByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetTeacherByIDInternalServerError ¶
type GetTeacherByIDInternalServerError struct { }
GetTeacherByIDInternalServerError Internal server error
swagger:response getTeacherByIdInternalServerError
func NewGetTeacherByIDInternalServerError ¶
func NewGetTeacherByIDInternalServerError() *GetTeacherByIDInternalServerError
NewGetTeacherByIDInternalServerError creates GetTeacherByIDInternalServerError with default headers values
func (*GetTeacherByIDInternalServerError) WriteResponse ¶
func (o *GetTeacherByIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherByIDNotFound ¶
type GetTeacherByIDNotFound struct { }
GetTeacherByIDNotFound Teacher not found
swagger:response getTeacherByIdNotFound
func NewGetTeacherByIDNotFound ¶
func NewGetTeacherByIDNotFound() *GetTeacherByIDNotFound
NewGetTeacherByIDNotFound creates GetTeacherByIDNotFound with default headers values
func (*GetTeacherByIDNotFound) WriteResponse ¶
func (o *GetTeacherByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherByIDOK ¶
GetTeacherByIDOK Teacher response
swagger:response getTeacherByIdOK
func NewGetTeacherByIDOK ¶
func NewGetTeacherByIDOK() *GetTeacherByIDOK
NewGetTeacherByIDOK creates GetTeacherByIDOK with default headers values
func (*GetTeacherByIDOK) SetPayload ¶
func (o *GetTeacherByIDOK) SetPayload(payload *models.Teacher)
SetPayload sets the payload to the get teacher by Id o k response
func (*GetTeacherByIDOK) WithPayload ¶
func (o *GetTeacherByIDOK) WithPayload(payload *models.Teacher) *GetTeacherByIDOK
WithPayload adds the payload to the get teacher by Id o k response
func (*GetTeacherByIDOK) WriteResponse ¶
func (o *GetTeacherByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherByIDParams ¶
type GetTeacherByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the Teacher Required: true In: path */ ID int64 }
GetTeacherByIDParams contains all the bound params for the get teacher by ID operation typically these are obtained from a http.Request
swagger:parameters getTeacherByID
func NewGetTeacherByIDParams ¶
func NewGetTeacherByIDParams() GetTeacherByIDParams
NewGetTeacherByIDParams creates a new GetTeacherByIDParams object
There are no default values defined in the spec.
func (*GetTeacherByIDParams) BindRequest ¶
func (o *GetTeacherByIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTeacherByIDParams() beforehand.
type GetTeacherByIDURL ¶
type GetTeacherByIDURL struct { ID int64 // contains filtered or unexported fields }
GetTeacherByIDURL generates an URL for the get teacher by ID operation
func (*GetTeacherByIDURL) Build ¶
func (o *GetTeacherByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTeacherByIDURL) BuildFull ¶
func (o *GetTeacherByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTeacherByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTeacherByIDURL) SetBasePath ¶
func (o *GetTeacherByIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTeacherByIDURL) String ¶
func (o *GetTeacherByIDURL) String() string
String returns the string representation of the path with query string
func (*GetTeacherByIDURL) StringFull ¶
func (o *GetTeacherByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTeacherByIDURL) WithBasePath ¶
func (o *GetTeacherByIDURL) WithBasePath(bp string) *GetTeacherByIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTeacherOfSubject ¶
type GetTeacherOfSubject struct { Context *middleware.Context Handler GetTeacherOfSubjectHandler }
GetTeacherOfSubject swagger:route GET /subject/{ID}/teacher getTeacherOfSubject
GetTeacherOfSubject get teacher of subject API
func NewGetTeacherOfSubject ¶
func NewGetTeacherOfSubject(ctx *middleware.Context, handler GetTeacherOfSubjectHandler) *GetTeacherOfSubject
NewGetTeacherOfSubject creates a new http.Handler for the get teacher of subject operation
func (*GetTeacherOfSubject) ServeHTTP ¶
func (o *GetTeacherOfSubject) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeacherOfSubjectHandler ¶
type GetTeacherOfSubjectHandler interface {
Handle(GetTeacherOfSubjectParams) middleware.Responder
}
GetTeacherOfSubjectHandler interface for that can handle valid get teacher of subject params
type GetTeacherOfSubjectHandlerFunc ¶
type GetTeacherOfSubjectHandlerFunc func(GetTeacherOfSubjectParams) middleware.Responder
GetTeacherOfSubjectHandlerFunc turns a function with the right signature into a get teacher of subject handler
func (GetTeacherOfSubjectHandlerFunc) Handle ¶
func (fn GetTeacherOfSubjectHandlerFunc) Handle(params GetTeacherOfSubjectParams) middleware.Responder
Handle executing the request and returning a response
type GetTeacherOfSubjectInternalServerError ¶
type GetTeacherOfSubjectInternalServerError struct { }
GetTeacherOfSubjectInternalServerError Internal server error
swagger:response getTeacherOfSubjectInternalServerError
func NewGetTeacherOfSubjectInternalServerError ¶
func NewGetTeacherOfSubjectInternalServerError() *GetTeacherOfSubjectInternalServerError
NewGetTeacherOfSubjectInternalServerError creates GetTeacherOfSubjectInternalServerError with default headers values
func (*GetTeacherOfSubjectInternalServerError) WriteResponse ¶
func (o *GetTeacherOfSubjectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherOfSubjectNotFound ¶
type GetTeacherOfSubjectNotFound struct { }
GetTeacherOfSubjectNotFound Subject not found
swagger:response getTeacherOfSubjectNotFound
func NewGetTeacherOfSubjectNotFound ¶
func NewGetTeacherOfSubjectNotFound() *GetTeacherOfSubjectNotFound
NewGetTeacherOfSubjectNotFound creates GetTeacherOfSubjectNotFound with default headers values
func (*GetTeacherOfSubjectNotFound) WriteResponse ¶
func (o *GetTeacherOfSubjectNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherOfSubjectOK ¶
type GetTeacherOfSubjectOK struct { /* In: Body */ Payload *models.Teacher `json:"body,omitempty"` }
GetTeacherOfSubjectOK Subject's Teacher as response
swagger:response getTeacherOfSubjectOK
func NewGetTeacherOfSubjectOK ¶
func NewGetTeacherOfSubjectOK() *GetTeacherOfSubjectOK
NewGetTeacherOfSubjectOK creates GetTeacherOfSubjectOK with default headers values
func (*GetTeacherOfSubjectOK) SetPayload ¶
func (o *GetTeacherOfSubjectOK) SetPayload(payload *models.Teacher)
SetPayload sets the payload to the get teacher of subject o k response
func (*GetTeacherOfSubjectOK) WithPayload ¶
func (o *GetTeacherOfSubjectOK) WithPayload(payload *models.Teacher) *GetTeacherOfSubjectOK
WithPayload adds the payload to the get teacher of subject o k response
func (*GetTeacherOfSubjectOK) WriteResponse ¶
func (o *GetTeacherOfSubjectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeacherOfSubjectParams ¶
type GetTeacherOfSubjectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Subject Required: true In: path */ ID int64 }
GetTeacherOfSubjectParams contains all the bound params for the get teacher of subject operation typically these are obtained from a http.Request
swagger:parameters getTeacherOfSubject
func NewGetTeacherOfSubjectParams ¶
func NewGetTeacherOfSubjectParams() GetTeacherOfSubjectParams
NewGetTeacherOfSubjectParams creates a new GetTeacherOfSubjectParams object
There are no default values defined in the spec.
func (*GetTeacherOfSubjectParams) BindRequest ¶
func (o *GetTeacherOfSubjectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTeacherOfSubjectParams() beforehand.
type GetTeacherOfSubjectURL ¶
type GetTeacherOfSubjectURL struct { ID int64 // contains filtered or unexported fields }
GetTeacherOfSubjectURL generates an URL for the get teacher of subject operation
func (*GetTeacherOfSubjectURL) Build ¶
func (o *GetTeacherOfSubjectURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTeacherOfSubjectURL) BuildFull ¶
func (o *GetTeacherOfSubjectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTeacherOfSubjectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTeacherOfSubjectURL) SetBasePath ¶
func (o *GetTeacherOfSubjectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTeacherOfSubjectURL) String ¶
func (o *GetTeacherOfSubjectURL) String() string
String returns the string representation of the path with query string
func (*GetTeacherOfSubjectURL) StringFull ¶
func (o *GetTeacherOfSubjectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTeacherOfSubjectURL) WithBasePath ¶
func (o *GetTeacherOfSubjectURL) WithBasePath(bp string) *GetTeacherOfSubjectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTeachers ¶
type GetTeachers struct { Context *middleware.Context Handler GetTeachersHandler }
GetTeachers swagger:route GET /teacher getTeachers
Get all Teachers
func NewGetTeachers ¶
func NewGetTeachers(ctx *middleware.Context, handler GetTeachersHandler) *GetTeachers
NewGetTeachers creates a new http.Handler for the get teachers operation
func (*GetTeachers) ServeHTTP ¶
func (o *GetTeachers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeachersHandler ¶
type GetTeachersHandler interface {
Handle(GetTeachersParams) middleware.Responder
}
GetTeachersHandler interface for that can handle valid get teachers params
type GetTeachersHandlerFunc ¶
type GetTeachersHandlerFunc func(GetTeachersParams) middleware.Responder
GetTeachersHandlerFunc turns a function with the right signature into a get teachers handler
func (GetTeachersHandlerFunc) Handle ¶
func (fn GetTeachersHandlerFunc) Handle(params GetTeachersParams) middleware.Responder
Handle executing the request and returning a response
type GetTeachersInternalServerError ¶
type GetTeachersInternalServerError struct { }
GetTeachersInternalServerError Internal server error
swagger:response getTeachersInternalServerError
func NewGetTeachersInternalServerError ¶
func NewGetTeachersInternalServerError() *GetTeachersInternalServerError
NewGetTeachersInternalServerError creates GetTeachersInternalServerError with default headers values
func (*GetTeachersInternalServerError) WriteResponse ¶
func (o *GetTeachersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersNotFound ¶
type GetTeachersNotFound struct { }
GetTeachersNotFound Teachers not found
swagger:response getTeachersNotFound
func NewGetTeachersNotFound ¶
func NewGetTeachersNotFound() *GetTeachersNotFound
NewGetTeachersNotFound creates GetTeachersNotFound with default headers values
func (*GetTeachersNotFound) WriteResponse ¶
func (o *GetTeachersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersOK ¶
GetTeachersOK Teachers' response
swagger:response getTeachersOK
func NewGetTeachersOK ¶
func NewGetTeachersOK() *GetTeachersOK
NewGetTeachersOK creates GetTeachersOK with default headers values
func (*GetTeachersOK) SetPayload ¶
func (o *GetTeachersOK) SetPayload(payload []*models.Teacher)
SetPayload sets the payload to the get teachers o k response
func (*GetTeachersOK) WithPayload ¶
func (o *GetTeachersOK) WithPayload(payload []*models.Teacher) *GetTeachersOK
WithPayload adds the payload to the get teachers o k response
func (*GetTeachersOK) WriteResponse ¶
func (o *GetTeachersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersOfClass ¶
type GetTeachersOfClass struct { Context *middleware.Context Handler GetTeachersOfClassHandler }
GetTeachersOfClass swagger:route GET /class/{ID}/teachers getTeachersOfClass
GetTeachersOfClass get teachers of class API
func NewGetTeachersOfClass ¶
func NewGetTeachersOfClass(ctx *middleware.Context, handler GetTeachersOfClassHandler) *GetTeachersOfClass
NewGetTeachersOfClass creates a new http.Handler for the get teachers of class operation
func (*GetTeachersOfClass) ServeHTTP ¶
func (o *GetTeachersOfClass) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTeachersOfClassHandler ¶
type GetTeachersOfClassHandler interface {
Handle(GetTeachersOfClassParams) middleware.Responder
}
GetTeachersOfClassHandler interface for that can handle valid get teachers of class params
type GetTeachersOfClassHandlerFunc ¶
type GetTeachersOfClassHandlerFunc func(GetTeachersOfClassParams) middleware.Responder
GetTeachersOfClassHandlerFunc turns a function with the right signature into a get teachers of class handler
func (GetTeachersOfClassHandlerFunc) Handle ¶
func (fn GetTeachersOfClassHandlerFunc) Handle(params GetTeachersOfClassParams) middleware.Responder
Handle executing the request and returning a response
type GetTeachersOfClassInternalServerError ¶
type GetTeachersOfClassInternalServerError struct { }
GetTeachersOfClassInternalServerError Internal server error
swagger:response getTeachersOfClassInternalServerError
func NewGetTeachersOfClassInternalServerError ¶
func NewGetTeachersOfClassInternalServerError() *GetTeachersOfClassInternalServerError
NewGetTeachersOfClassInternalServerError creates GetTeachersOfClassInternalServerError with default headers values
func (*GetTeachersOfClassInternalServerError) WriteResponse ¶
func (o *GetTeachersOfClassInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersOfClassNotFound ¶
type GetTeachersOfClassNotFound struct { }
GetTeachersOfClassNotFound Class not found
swagger:response getTeachersOfClassNotFound
func NewGetTeachersOfClassNotFound ¶
func NewGetTeachersOfClassNotFound() *GetTeachersOfClassNotFound
NewGetTeachersOfClassNotFound creates GetTeachersOfClassNotFound with default headers values
func (*GetTeachersOfClassNotFound) WriteResponse ¶
func (o *GetTeachersOfClassNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersOfClassOK ¶
type GetTeachersOfClassOK struct { /* In: Body */ Payload []*models.Teacher `json:"body,omitempty"` }
GetTeachersOfClassOK Class' Teachers as response
swagger:response getTeachersOfClassOK
func NewGetTeachersOfClassOK ¶
func NewGetTeachersOfClassOK() *GetTeachersOfClassOK
NewGetTeachersOfClassOK creates GetTeachersOfClassOK with default headers values
func (*GetTeachersOfClassOK) SetPayload ¶
func (o *GetTeachersOfClassOK) SetPayload(payload []*models.Teacher)
SetPayload sets the payload to the get teachers of class o k response
func (*GetTeachersOfClassOK) WithPayload ¶
func (o *GetTeachersOfClassOK) WithPayload(payload []*models.Teacher) *GetTeachersOfClassOK
WithPayload adds the payload to the get teachers of class o k response
func (*GetTeachersOfClassOK) WriteResponse ¶
func (o *GetTeachersOfClassOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTeachersOfClassParams ¶
type GetTeachersOfClassParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the Class Required: true In: path */ ID int64 }
GetTeachersOfClassParams contains all the bound params for the get teachers of class operation typically these are obtained from a http.Request
swagger:parameters getTeachersOfClass
func NewGetTeachersOfClassParams ¶
func NewGetTeachersOfClassParams() GetTeachersOfClassParams
NewGetTeachersOfClassParams creates a new GetTeachersOfClassParams object
There are no default values defined in the spec.
func (*GetTeachersOfClassParams) BindRequest ¶
func (o *GetTeachersOfClassParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTeachersOfClassParams() beforehand.
type GetTeachersOfClassURL ¶
type GetTeachersOfClassURL struct { ID int64 // contains filtered or unexported fields }
GetTeachersOfClassURL generates an URL for the get teachers of class operation
func (*GetTeachersOfClassURL) Build ¶
func (o *GetTeachersOfClassURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTeachersOfClassURL) BuildFull ¶
func (o *GetTeachersOfClassURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTeachersOfClassURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTeachersOfClassURL) SetBasePath ¶
func (o *GetTeachersOfClassURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTeachersOfClassURL) String ¶
func (o *GetTeachersOfClassURL) String() string
String returns the string representation of the path with query string
func (*GetTeachersOfClassURL) StringFull ¶
func (o *GetTeachersOfClassURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTeachersOfClassURL) WithBasePath ¶
func (o *GetTeachersOfClassURL) WithBasePath(bp string) *GetTeachersOfClassURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetTeachersParams ¶
GetTeachersParams contains all the bound params for the get teachers operation typically these are obtained from a http.Request
swagger:parameters getTeachers
func NewGetTeachersParams ¶
func NewGetTeachersParams() GetTeachersParams
NewGetTeachersParams creates a new GetTeachersParams object
There are no default values defined in the spec.
func (*GetTeachersParams) BindRequest ¶
func (o *GetTeachersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetTeachersParams() beforehand.
type GetTeachersURL ¶
type GetTeachersURL struct {
// contains filtered or unexported fields
}
GetTeachersURL generates an URL for the get teachers operation
func (*GetTeachersURL) Build ¶
func (o *GetTeachersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTeachersURL) BuildFull ¶
func (o *GetTeachersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTeachersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTeachersURL) SetBasePath ¶
func (o *GetTeachersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetTeachersURL) String ¶
func (o *GetTeachersURL) String() string
String returns the string representation of the path with query string
func (*GetTeachersURL) StringFull ¶
func (o *GetTeachersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTeachersURL) WithBasePath ¶
func (o *GetTeachersURL) WithBasePath(bp string) *GetTeachersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateAccount ¶
type UpdateAccount struct { Context *middleware.Context Handler UpdateAccountHandler }
UpdateAccount swagger:route PUT /account updateAccount
UpdateAccount update account API
func NewUpdateAccount ¶
func NewUpdateAccount(ctx *middleware.Context, handler UpdateAccountHandler) *UpdateAccount
NewUpdateAccount creates a new http.Handler for the update account operation
func (*UpdateAccount) ServeHTTP ¶
func (o *UpdateAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateAccountHandler ¶
type UpdateAccountHandler interface {
Handle(UpdateAccountParams) middleware.Responder
}
UpdateAccountHandler interface for that can handle valid update account params
type UpdateAccountHandlerFunc ¶
type UpdateAccountHandlerFunc func(UpdateAccountParams) middleware.Responder
UpdateAccountHandlerFunc turns a function with the right signature into a update account handler
func (UpdateAccountHandlerFunc) Handle ¶
func (fn UpdateAccountHandlerFunc) Handle(params UpdateAccountParams) middleware.Responder
Handle executing the request and returning a response
type UpdateAccountInternalServerError ¶
type UpdateAccountInternalServerError struct { }
UpdateAccountInternalServerError Internal Server Error
swagger:response updateAccountInternalServerError
func NewUpdateAccountInternalServerError ¶
func NewUpdateAccountInternalServerError() *UpdateAccountInternalServerError
NewUpdateAccountInternalServerError creates UpdateAccountInternalServerError with default headers values
func (*UpdateAccountInternalServerError) WriteResponse ¶
func (o *UpdateAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountNotFound ¶
type UpdateAccountNotFound struct { }
UpdateAccountNotFound Account not found!
swagger:response updateAccountNotFound
func NewUpdateAccountNotFound ¶
func NewUpdateAccountNotFound() *UpdateAccountNotFound
NewUpdateAccountNotFound creates UpdateAccountNotFound with default headers values
func (*UpdateAccountNotFound) WriteResponse ¶
func (o *UpdateAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountOK ¶
UpdateAccountOK Account updated
swagger:response updateAccountOK
func NewUpdateAccountOK ¶
func NewUpdateAccountOK() *UpdateAccountOK
NewUpdateAccountOK creates UpdateAccountOK with default headers values
func (*UpdateAccountOK) SetPayload ¶
func (o *UpdateAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the update account o k response
func (*UpdateAccountOK) WithPayload ¶
func (o *UpdateAccountOK) WithPayload(payload *models.Account) *UpdateAccountOK
WithPayload adds the payload to the update account o k response
func (*UpdateAccountOK) WriteResponse ¶
func (o *UpdateAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountParams ¶
type UpdateAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account details Required: true In: body */ Account *models.Account }
UpdateAccountParams contains all the bound params for the update account operation typically these are obtained from a http.Request
swagger:parameters updateAccount
func NewUpdateAccountParams ¶
func NewUpdateAccountParams() UpdateAccountParams
NewUpdateAccountParams creates a new UpdateAccountParams object
There are no default values defined in the spec.
func (*UpdateAccountParams) BindRequest ¶
func (o *UpdateAccountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateAccountParams() beforehand.
type UpdateAccountURL ¶
type UpdateAccountURL struct {
// contains filtered or unexported fields
}
UpdateAccountURL generates an URL for the update account operation
func (*UpdateAccountURL) Build ¶
func (o *UpdateAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateAccountURL) BuildFull ¶
func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateAccountURL) SetBasePath ¶
func (o *UpdateAccountURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateAccountURL) String ¶
func (o *UpdateAccountURL) String() string
String returns the string representation of the path with query string
func (*UpdateAccountURL) StringFull ¶
func (o *UpdateAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateAccountURL) WithBasePath ¶
func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateClassName ¶
type UpdateClassName struct { Context *middleware.Context Handler UpdateClassNameHandler }
UpdateClassName swagger:route PATCH /class/{ID}/name updateClassName
UpdateClassName update class name API
func NewUpdateClassName ¶
func NewUpdateClassName(ctx *middleware.Context, handler UpdateClassNameHandler) *UpdateClassName
NewUpdateClassName creates a new http.Handler for the update class name operation
func (*UpdateClassName) ServeHTTP ¶
func (o *UpdateClassName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateClassNameBody ¶
type UpdateClassNameBody struct { // name Name string `json:"Name,omitempty"` }
UpdateClassNameBody update class name body
swagger:model UpdateClassNameBody
func (*UpdateClassNameBody) ContextValidate ¶
ContextValidate validates this update class name body based on context it is used
func (*UpdateClassNameBody) MarshalBinary ¶
func (o *UpdateClassNameBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateClassNameBody) UnmarshalBinary ¶
func (o *UpdateClassNameBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateClassNameHandler ¶
type UpdateClassNameHandler interface {
Handle(UpdateClassNameParams) middleware.Responder
}
UpdateClassNameHandler interface for that can handle valid update class name params
type UpdateClassNameHandlerFunc ¶
type UpdateClassNameHandlerFunc func(UpdateClassNameParams) middleware.Responder
UpdateClassNameHandlerFunc turns a function with the right signature into a update class name handler
func (UpdateClassNameHandlerFunc) Handle ¶
func (fn UpdateClassNameHandlerFunc) Handle(params UpdateClassNameParams) middleware.Responder
Handle executing the request and returning a response
type UpdateClassNameInternalServerError ¶
type UpdateClassNameInternalServerError struct { }
UpdateClassNameInternalServerError Internal Server Error
swagger:response updateClassNameInternalServerError
func NewUpdateClassNameInternalServerError ¶
func NewUpdateClassNameInternalServerError() *UpdateClassNameInternalServerError
NewUpdateClassNameInternalServerError creates UpdateClassNameInternalServerError with default headers values
func (*UpdateClassNameInternalServerError) WriteResponse ¶
func (o *UpdateClassNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClassNameNotFound ¶
type UpdateClassNameNotFound struct { }
UpdateClassNameNotFound Class not found!
swagger:response updateClassNameNotFound
func NewUpdateClassNameNotFound ¶
func NewUpdateClassNameNotFound() *UpdateClassNameNotFound
NewUpdateClassNameNotFound creates UpdateClassNameNotFound with default headers values
func (*UpdateClassNameNotFound) WriteResponse ¶
func (o *UpdateClassNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClassNameOK ¶
type UpdateClassNameOK struct { /*The ID of the Class! In: Body */ Payload int64 `json:"body,omitempty"` }
UpdateClassNameOK Class Name updated Successfully!
swagger:response updateClassNameOK
func NewUpdateClassNameOK ¶
func NewUpdateClassNameOK() *UpdateClassNameOK
NewUpdateClassNameOK creates UpdateClassNameOK with default headers values
func (*UpdateClassNameOK) SetPayload ¶
func (o *UpdateClassNameOK) SetPayload(payload int64)
SetPayload sets the payload to the update class name o k response
func (*UpdateClassNameOK) WithPayload ¶
func (o *UpdateClassNameOK) WithPayload(payload int64) *UpdateClassNameOK
WithPayload adds the payload to the update class name o k response
func (*UpdateClassNameOK) WriteResponse ¶
func (o *UpdateClassNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateClassNameParams ¶
type UpdateClassNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Class ID Required: true In: path */ ID int64 /*Updated Name to be stored Required: true In: body */ Name UpdateClassNameBody }
UpdateClassNameParams contains all the bound params for the update class name operation typically these are obtained from a http.Request
swagger:parameters updateClassName
func NewUpdateClassNameParams ¶
func NewUpdateClassNameParams() UpdateClassNameParams
NewUpdateClassNameParams creates a new UpdateClassNameParams object
There are no default values defined in the spec.
func (*UpdateClassNameParams) BindRequest ¶
func (o *UpdateClassNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateClassNameParams() beforehand.
type UpdateClassNameURL ¶
type UpdateClassNameURL struct { ID int64 // contains filtered or unexported fields }
UpdateClassNameURL generates an URL for the update class name operation
func (*UpdateClassNameURL) Build ¶
func (o *UpdateClassNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateClassNameURL) BuildFull ¶
func (o *UpdateClassNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateClassNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateClassNameURL) SetBasePath ¶
func (o *UpdateClassNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateClassNameURL) String ¶
func (o *UpdateClassNameURL) String() string
String returns the string representation of the path with query string
func (*UpdateClassNameURL) StringFull ¶
func (o *UpdateClassNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateClassNameURL) WithBasePath ¶
func (o *UpdateClassNameURL) WithBasePath(bp string) *UpdateClassNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateGPA ¶
type UpdateGPA struct { Context *middleware.Context Handler UpdateGPAHandler }
UpdateGPA swagger:route PATCH /student/{ID}/gpa updateGPA
UpdateGPA update g p a API
func NewUpdateGPA ¶
func NewUpdateGPA(ctx *middleware.Context, handler UpdateGPAHandler) *UpdateGPA
NewUpdateGPA creates a new http.Handler for the update g p a operation
type UpdateGPABody ¶
type UpdateGPABody struct { // g p a GPA float64 `json:"GPA,omitempty"` }
UpdateGPABody update g p a body
swagger:model UpdateGPABody
func (*UpdateGPABody) ContextValidate ¶
ContextValidate validates this update g p a body based on context it is used
func (*UpdateGPABody) MarshalBinary ¶
func (o *UpdateGPABody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateGPABody) UnmarshalBinary ¶
func (o *UpdateGPABody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateGPAHandler ¶
type UpdateGPAHandler interface {
Handle(UpdateGPAParams) middleware.Responder
}
UpdateGPAHandler interface for that can handle valid update g p a params
type UpdateGPAHandlerFunc ¶
type UpdateGPAHandlerFunc func(UpdateGPAParams) middleware.Responder
UpdateGPAHandlerFunc turns a function with the right signature into a update g p a handler
func (UpdateGPAHandlerFunc) Handle ¶
func (fn UpdateGPAHandlerFunc) Handle(params UpdateGPAParams) middleware.Responder
Handle executing the request and returning a response
type UpdateGPAInternalServerError ¶
type UpdateGPAInternalServerError struct { }
UpdateGPAInternalServerError Internal Server Error
swagger:response updateGPAInternalServerError
func NewUpdateGPAInternalServerError ¶
func NewUpdateGPAInternalServerError() *UpdateGPAInternalServerError
NewUpdateGPAInternalServerError creates UpdateGPAInternalServerError with default headers values
func (*UpdateGPAInternalServerError) WriteResponse ¶
func (o *UpdateGPAInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateGPANotFound ¶
type UpdateGPANotFound struct { }
UpdateGPANotFound Student Not found!
swagger:response updateGPANotFound
func NewUpdateGPANotFound ¶
func NewUpdateGPANotFound() *UpdateGPANotFound
NewUpdateGPANotFound creates UpdateGPANotFound with default headers values
func (*UpdateGPANotFound) WriteResponse ¶
func (o *UpdateGPANotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateGPAOK ¶
type UpdateGPAOK struct { /*The ID of the Student! In: Body */ Payload int64 `json:"body,omitempty"` }
UpdateGPAOK GPA assigned to Student
swagger:response updateGPAOK
func NewUpdateGPAOK ¶
func NewUpdateGPAOK() *UpdateGPAOK
NewUpdateGPAOK creates UpdateGPAOK with default headers values
func (*UpdateGPAOK) SetPayload ¶
func (o *UpdateGPAOK) SetPayload(payload int64)
SetPayload sets the payload to the update g p a o k response
func (*UpdateGPAOK) WithPayload ¶
func (o *UpdateGPAOK) WithPayload(payload int64) *UpdateGPAOK
WithPayload adds the payload to the update g p a o k response
func (*UpdateGPAOK) WriteResponse ¶
func (o *UpdateGPAOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateGPAParams ¶
type UpdateGPAParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Student ID Required: true In: path */ ID int64 /*The object containing gpa to be assigned Required: true In: body */ Gpa UpdateGPABody }
UpdateGPAParams contains all the bound params for the update g p a operation typically these are obtained from a http.Request
swagger:parameters updateGPA
func NewUpdateGPAParams ¶
func NewUpdateGPAParams() UpdateGPAParams
NewUpdateGPAParams creates a new UpdateGPAParams object
There are no default values defined in the spec.
func (*UpdateGPAParams) BindRequest ¶
func (o *UpdateGPAParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateGPAParams() beforehand.
type UpdateGPAURL ¶
type UpdateGPAURL struct { ID int64 // contains filtered or unexported fields }
UpdateGPAURL generates an URL for the update g p a operation
func (*UpdateGPAURL) Build ¶
func (o *UpdateGPAURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateGPAURL) BuildFull ¶
func (o *UpdateGPAURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateGPAURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateGPAURL) SetBasePath ¶
func (o *UpdateGPAURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateGPAURL) String ¶
func (o *UpdateGPAURL) String() string
String returns the string representation of the path with query string
func (*UpdateGPAURL) StringFull ¶
func (o *UpdateGPAURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateGPAURL) WithBasePath ¶
func (o *UpdateGPAURL) WithBasePath(bp string) *UpdateGPAURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateStudentName ¶
type UpdateStudentName struct { Context *middleware.Context Handler UpdateStudentNameHandler }
UpdateStudentName swagger:route PATCH /student/{ID}/name updateStudentName
UpdateStudentName update student name API
func NewUpdateStudentName ¶
func NewUpdateStudentName(ctx *middleware.Context, handler UpdateStudentNameHandler) *UpdateStudentName
NewUpdateStudentName creates a new http.Handler for the update student name operation
func (*UpdateStudentName) ServeHTTP ¶
func (o *UpdateStudentName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateStudentNameBody ¶
type UpdateStudentNameBody struct { // name Name string `json:"Name,omitempty"` }
UpdateStudentNameBody update student name body
swagger:model UpdateStudentNameBody
func (*UpdateStudentNameBody) ContextValidate ¶
ContextValidate validates this update student name body based on context it is used
func (*UpdateStudentNameBody) MarshalBinary ¶
func (o *UpdateStudentNameBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateStudentNameBody) UnmarshalBinary ¶
func (o *UpdateStudentNameBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateStudentNameHandler ¶
type UpdateStudentNameHandler interface {
Handle(UpdateStudentNameParams) middleware.Responder
}
UpdateStudentNameHandler interface for that can handle valid update student name params
type UpdateStudentNameHandlerFunc ¶
type UpdateStudentNameHandlerFunc func(UpdateStudentNameParams) middleware.Responder
UpdateStudentNameHandlerFunc turns a function with the right signature into a update student name handler
func (UpdateStudentNameHandlerFunc) Handle ¶
func (fn UpdateStudentNameHandlerFunc) Handle(params UpdateStudentNameParams) middleware.Responder
Handle executing the request and returning a response
type UpdateStudentNameInternalServerError ¶
type UpdateStudentNameInternalServerError struct { }
UpdateStudentNameInternalServerError Internal Server Error
swagger:response updateStudentNameInternalServerError
func NewUpdateStudentNameInternalServerError ¶
func NewUpdateStudentNameInternalServerError() *UpdateStudentNameInternalServerError
NewUpdateStudentNameInternalServerError creates UpdateStudentNameInternalServerError with default headers values
func (*UpdateStudentNameInternalServerError) WriteResponse ¶
func (o *UpdateStudentNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateStudentNameNotFound ¶
type UpdateStudentNameNotFound struct { }
UpdateStudentNameNotFound Student not found!
swagger:response updateStudentNameNotFound
func NewUpdateStudentNameNotFound ¶
func NewUpdateStudentNameNotFound() *UpdateStudentNameNotFound
NewUpdateStudentNameNotFound creates UpdateStudentNameNotFound with default headers values
func (*UpdateStudentNameNotFound) WriteResponse ¶
func (o *UpdateStudentNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateStudentNameOK ¶
type UpdateStudentNameOK struct { /*The ID of the Student! In: Body */ Payload int64 `json:"body,omitempty"` }
UpdateStudentNameOK Student Name updated Successfully!
swagger:response updateStudentNameOK
func NewUpdateStudentNameOK ¶
func NewUpdateStudentNameOK() *UpdateStudentNameOK
NewUpdateStudentNameOK creates UpdateStudentNameOK with default headers values
func (*UpdateStudentNameOK) SetPayload ¶
func (o *UpdateStudentNameOK) SetPayload(payload int64)
SetPayload sets the payload to the update student name o k response
func (*UpdateStudentNameOK) WithPayload ¶
func (o *UpdateStudentNameOK) WithPayload(payload int64) *UpdateStudentNameOK
WithPayload adds the payload to the update student name o k response
func (*UpdateStudentNameOK) WriteResponse ¶
func (o *UpdateStudentNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateStudentNameParams ¶
type UpdateStudentNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Student ID Required: true In: path */ ID int64 /*Updated Name to be stored Required: true In: body */ Name UpdateStudentNameBody }
UpdateStudentNameParams contains all the bound params for the update student name operation typically these are obtained from a http.Request
swagger:parameters updateStudentName
func NewUpdateStudentNameParams ¶
func NewUpdateStudentNameParams() UpdateStudentNameParams
NewUpdateStudentNameParams creates a new UpdateStudentNameParams object
There are no default values defined in the spec.
func (*UpdateStudentNameParams) BindRequest ¶
func (o *UpdateStudentNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateStudentNameParams() beforehand.
type UpdateStudentNameURL ¶
type UpdateStudentNameURL struct { ID int64 // contains filtered or unexported fields }
UpdateStudentNameURL generates an URL for the update student name operation
func (*UpdateStudentNameURL) Build ¶
func (o *UpdateStudentNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateStudentNameURL) BuildFull ¶
func (o *UpdateStudentNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateStudentNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateStudentNameURL) SetBasePath ¶
func (o *UpdateStudentNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateStudentNameURL) String ¶
func (o *UpdateStudentNameURL) String() string
String returns the string representation of the path with query string
func (*UpdateStudentNameURL) StringFull ¶
func (o *UpdateStudentNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateStudentNameURL) WithBasePath ¶
func (o *UpdateStudentNameURL) WithBasePath(bp string) *UpdateStudentNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateSubjectName ¶
type UpdateSubjectName struct { Context *middleware.Context Handler UpdateSubjectNameHandler }
UpdateSubjectName swagger:route PATCH /subject/{ID}/name updateSubjectName
UpdateSubjectName update subject name API
func NewUpdateSubjectName ¶
func NewUpdateSubjectName(ctx *middleware.Context, handler UpdateSubjectNameHandler) *UpdateSubjectName
NewUpdateSubjectName creates a new http.Handler for the update subject name operation
func (*UpdateSubjectName) ServeHTTP ¶
func (o *UpdateSubjectName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSubjectNameBody ¶
type UpdateSubjectNameBody struct { // name Name string `json:"Name,omitempty"` }
UpdateSubjectNameBody update subject name body
swagger:model UpdateSubjectNameBody
func (*UpdateSubjectNameBody) ContextValidate ¶
ContextValidate validates this update subject name body based on context it is used
func (*UpdateSubjectNameBody) MarshalBinary ¶
func (o *UpdateSubjectNameBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateSubjectNameBody) UnmarshalBinary ¶
func (o *UpdateSubjectNameBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateSubjectNameHandler ¶
type UpdateSubjectNameHandler interface {
Handle(UpdateSubjectNameParams) middleware.Responder
}
UpdateSubjectNameHandler interface for that can handle valid update subject name params
type UpdateSubjectNameHandlerFunc ¶
type UpdateSubjectNameHandlerFunc func(UpdateSubjectNameParams) middleware.Responder
UpdateSubjectNameHandlerFunc turns a function with the right signature into a update subject name handler
func (UpdateSubjectNameHandlerFunc) Handle ¶
func (fn UpdateSubjectNameHandlerFunc) Handle(params UpdateSubjectNameParams) middleware.Responder
Handle executing the request and returning a response
type UpdateSubjectNameInternalServerError ¶
type UpdateSubjectNameInternalServerError struct { }
UpdateSubjectNameInternalServerError Internal Server Error
swagger:response updateSubjectNameInternalServerError
func NewUpdateSubjectNameInternalServerError ¶
func NewUpdateSubjectNameInternalServerError() *UpdateSubjectNameInternalServerError
NewUpdateSubjectNameInternalServerError creates UpdateSubjectNameInternalServerError with default headers values
func (*UpdateSubjectNameInternalServerError) WriteResponse ¶
func (o *UpdateSubjectNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubjectNameNotFound ¶
type UpdateSubjectNameNotFound struct { }
UpdateSubjectNameNotFound Subject not found!
swagger:response updateSubjectNameNotFound
func NewUpdateSubjectNameNotFound ¶
func NewUpdateSubjectNameNotFound() *UpdateSubjectNameNotFound
NewUpdateSubjectNameNotFound creates UpdateSubjectNameNotFound with default headers values
func (*UpdateSubjectNameNotFound) WriteResponse ¶
func (o *UpdateSubjectNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubjectNameOK ¶
type UpdateSubjectNameOK struct { /*The ID of the Subject! In: Body */ Payload int64 `json:"body,omitempty"` }
UpdateSubjectNameOK Subject Name updated Successfully!
swagger:response updateSubjectNameOK
func NewUpdateSubjectNameOK ¶
func NewUpdateSubjectNameOK() *UpdateSubjectNameOK
NewUpdateSubjectNameOK creates UpdateSubjectNameOK with default headers values
func (*UpdateSubjectNameOK) SetPayload ¶
func (o *UpdateSubjectNameOK) SetPayload(payload int64)
SetPayload sets the payload to the update subject name o k response
func (*UpdateSubjectNameOK) WithPayload ¶
func (o *UpdateSubjectNameOK) WithPayload(payload int64) *UpdateSubjectNameOK
WithPayload adds the payload to the update subject name o k response
func (*UpdateSubjectNameOK) WriteResponse ¶
func (o *UpdateSubjectNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSubjectNameParams ¶
type UpdateSubjectNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Subject ID Required: true In: path */ ID int64 /*Updated Name to be stored Required: true In: body */ Name UpdateSubjectNameBody }
UpdateSubjectNameParams contains all the bound params for the update subject name operation typically these are obtained from a http.Request
swagger:parameters updateSubjectName
func NewUpdateSubjectNameParams ¶
func NewUpdateSubjectNameParams() UpdateSubjectNameParams
NewUpdateSubjectNameParams creates a new UpdateSubjectNameParams object
There are no default values defined in the spec.
func (*UpdateSubjectNameParams) BindRequest ¶
func (o *UpdateSubjectNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateSubjectNameParams() beforehand.
type UpdateSubjectNameURL ¶
type UpdateSubjectNameURL struct { ID int64 // contains filtered or unexported fields }
UpdateSubjectNameURL generates an URL for the update subject name operation
func (*UpdateSubjectNameURL) Build ¶
func (o *UpdateSubjectNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSubjectNameURL) BuildFull ¶
func (o *UpdateSubjectNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSubjectNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateSubjectNameURL) SetBasePath ¶
func (o *UpdateSubjectNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateSubjectNameURL) String ¶
func (o *UpdateSubjectNameURL) String() string
String returns the string representation of the path with query string
func (*UpdateSubjectNameURL) StringFull ¶
func (o *UpdateSubjectNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSubjectNameURL) WithBasePath ¶
func (o *UpdateSubjectNameURL) WithBasePath(bp string) *UpdateSubjectNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateTeacherName ¶
type UpdateTeacherName struct { Context *middleware.Context Handler UpdateTeacherNameHandler }
UpdateTeacherName swagger:route PATCH /teacher/{ID}/name updateTeacherName
UpdateTeacherName update teacher name API
func NewUpdateTeacherName ¶
func NewUpdateTeacherName(ctx *middleware.Context, handler UpdateTeacherNameHandler) *UpdateTeacherName
NewUpdateTeacherName creates a new http.Handler for the update teacher name operation
func (*UpdateTeacherName) ServeHTTP ¶
func (o *UpdateTeacherName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateTeacherNameBody ¶
type UpdateTeacherNameBody struct { // name Name string `json:"Name,omitempty"` }
UpdateTeacherNameBody update teacher name body
swagger:model UpdateTeacherNameBody
func (*UpdateTeacherNameBody) ContextValidate ¶
ContextValidate validates this update teacher name body based on context it is used
func (*UpdateTeacherNameBody) MarshalBinary ¶
func (o *UpdateTeacherNameBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateTeacherNameBody) UnmarshalBinary ¶
func (o *UpdateTeacherNameBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateTeacherNameHandler ¶
type UpdateTeacherNameHandler interface {
Handle(UpdateTeacherNameParams) middleware.Responder
}
UpdateTeacherNameHandler interface for that can handle valid update teacher name params
type UpdateTeacherNameHandlerFunc ¶
type UpdateTeacherNameHandlerFunc func(UpdateTeacherNameParams) middleware.Responder
UpdateTeacherNameHandlerFunc turns a function with the right signature into a update teacher name handler
func (UpdateTeacherNameHandlerFunc) Handle ¶
func (fn UpdateTeacherNameHandlerFunc) Handle(params UpdateTeacherNameParams) middleware.Responder
Handle executing the request and returning a response
type UpdateTeacherNameInternalServerError ¶
type UpdateTeacherNameInternalServerError struct { }
UpdateTeacherNameInternalServerError Internal Server Error
swagger:response updateTeacherNameInternalServerError
func NewUpdateTeacherNameInternalServerError ¶
func NewUpdateTeacherNameInternalServerError() *UpdateTeacherNameInternalServerError
NewUpdateTeacherNameInternalServerError creates UpdateTeacherNameInternalServerError with default headers values
func (*UpdateTeacherNameInternalServerError) WriteResponse ¶
func (o *UpdateTeacherNameInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTeacherNameNotFound ¶
type UpdateTeacherNameNotFound struct { }
UpdateTeacherNameNotFound Teacher not found!
swagger:response updateTeacherNameNotFound
func NewUpdateTeacherNameNotFound ¶
func NewUpdateTeacherNameNotFound() *UpdateTeacherNameNotFound
NewUpdateTeacherNameNotFound creates UpdateTeacherNameNotFound with default headers values
func (*UpdateTeacherNameNotFound) WriteResponse ¶
func (o *UpdateTeacherNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTeacherNameOK ¶
type UpdateTeacherNameOK struct { /*The ID of the Teacher! In: Body */ Payload int64 `json:"body,omitempty"` }
UpdateTeacherNameOK Teacher updated
swagger:response updateTeacherNameOK
func NewUpdateTeacherNameOK ¶
func NewUpdateTeacherNameOK() *UpdateTeacherNameOK
NewUpdateTeacherNameOK creates UpdateTeacherNameOK with default headers values
func (*UpdateTeacherNameOK) SetPayload ¶
func (o *UpdateTeacherNameOK) SetPayload(payload int64)
SetPayload sets the payload to the update teacher name o k response
func (*UpdateTeacherNameOK) WithPayload ¶
func (o *UpdateTeacherNameOK) WithPayload(payload int64) *UpdateTeacherNameOK
WithPayload adds the payload to the update teacher name o k response
func (*UpdateTeacherNameOK) WriteResponse ¶
func (o *UpdateTeacherNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTeacherNameParams ¶
type UpdateTeacherNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Teacher ID Required: true In: path */ ID int64 /*Updated Name to be stored Required: true In: body */ Name UpdateTeacherNameBody }
UpdateTeacherNameParams contains all the bound params for the update teacher name operation typically these are obtained from a http.Request
swagger:parameters updateTeacherName
func NewUpdateTeacherNameParams ¶
func NewUpdateTeacherNameParams() UpdateTeacherNameParams
NewUpdateTeacherNameParams creates a new UpdateTeacherNameParams object
There are no default values defined in the spec.
func (*UpdateTeacherNameParams) BindRequest ¶
func (o *UpdateTeacherNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateTeacherNameParams() beforehand.
type UpdateTeacherNameURL ¶
type UpdateTeacherNameURL struct { ID int64 // contains filtered or unexported fields }
UpdateTeacherNameURL generates an URL for the update teacher name operation
func (*UpdateTeacherNameURL) Build ¶
func (o *UpdateTeacherNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateTeacherNameURL) BuildFull ¶
func (o *UpdateTeacherNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateTeacherNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateTeacherNameURL) SetBasePath ¶
func (o *UpdateTeacherNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateTeacherNameURL) String ¶
func (o *UpdateTeacherNameURL) String() string
String returns the string representation of the path with query string
func (*UpdateTeacherNameURL) StringFull ¶
func (o *UpdateTeacherNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateTeacherNameURL) WithBasePath ¶
func (o *UpdateTeacherNameURL) WithBasePath(bp string) *UpdateTeacherNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- add_account.go
- add_account_parameters.go
- add_account_responses.go
- add_account_urlbuilder.go
- add_class.go
- add_class_parameters.go
- add_class_responses.go
- add_class_urlbuilder.go
- add_or_remove_student.go
- add_or_remove_student_parameters.go
- add_or_remove_student_responses.go
- add_or_remove_student_urlbuilder.go
- add_student.go
- add_student_parameters.go
- add_student_responses.go
- add_student_urlbuilder.go
- add_subject.go
- add_subject_parameters.go
- add_subject_responses.go
- add_subject_urlbuilder.go
- add_teacher.go
- add_teacher_parameters.go
- add_teacher_responses.go
- add_teacher_urlbuilder.go
- apni_university_api.go
- assign_class.go
- assign_class_parameters.go
- assign_class_responses.go
- assign_class_urlbuilder.go
- assign_subject_to_student.go
- assign_subject_to_student_parameters.go
- assign_subject_to_student_responses.go
- assign_subject_to_student_urlbuilder.go
- assign_subject_to_teacher.go
- assign_subject_to_teacher_parameters.go
- assign_subject_to_teacher_responses.go
- assign_subject_to_teacher_urlbuilder.go
- delete_account.go
- delete_account_parameters.go
- delete_account_responses.go
- delete_account_urlbuilder.go
- delete_class.go
- delete_class_parameters.go
- delete_class_responses.go
- delete_class_urlbuilder.go
- delete_student.go
- delete_student_parameters.go
- delete_student_responses.go
- delete_student_urlbuilder.go
- delete_subject.go
- delete_subject_parameters.go
- delete_subject_responses.go
- delete_subject_urlbuilder.go
- delete_teacher.go
- delete_teacher_parameters.go
- delete_teacher_responses.go
- delete_teacher_urlbuilder.go
- get_account_by_id.go
- get_account_by_id_parameters.go
- get_account_by_id_responses.go
- get_account_by_id_urlbuilder.go
- get_accounts.go
- get_accounts_parameters.go
- get_accounts_responses.go
- get_accounts_urlbuilder.go
- get_class_by_id.go
- get_class_by_id_parameters.go
- get_class_by_id_responses.go
- get_class_by_id_urlbuilder.go
- get_class_of_teacher.go
- get_class_of_teacher_parameters.go
- get_class_of_teacher_responses.go
- get_class_of_teacher_urlbuilder.go
- get_classes.go
- get_classes_of_student.go
- get_classes_of_student_parameters.go
- get_classes_of_student_responses.go
- get_classes_of_student_urlbuilder.go
- get_classes_parameters.go
- get_classes_responses.go
- get_classes_urlbuilder.go
- get_defaulted_student_accounts.go
- get_defaulted_student_accounts_parameters.go
- get_defaulted_student_accounts_responses.go
- get_defaulted_student_accounts_urlbuilder.go
- get_student_accounts.go
- get_student_accounts_parameters.go
- get_student_accounts_responses.go
- get_student_accounts_urlbuilder.go
- get_student_by_id.go
- get_student_by_id_parameters.go
- get_student_by_id_responses.go
- get_student_by_id_urlbuilder.go
- get_students.go
- get_students_of_class.go
- get_students_of_class_parameters.go
- get_students_of_class_responses.go
- get_students_of_class_urlbuilder.go
- get_students_of_subject.go
- get_students_of_subject_parameters.go
- get_students_of_subject_responses.go
- get_students_of_subject_urlbuilder.go
- get_students_of_teacher.go
- get_students_of_teacher_parameters.go
- get_students_of_teacher_responses.go
- get_students_of_teacher_urlbuilder.go
- get_students_parameters.go
- get_students_responses.go
- get_students_urlbuilder.go
- get_subject_by_id.go
- get_subject_by_id_parameters.go
- get_subject_by_id_responses.go
- get_subject_by_id_urlbuilder.go
- get_subjects.go
- get_subjects_of_class.go
- get_subjects_of_class_parameters.go
- get_subjects_of_class_responses.go
- get_subjects_of_class_urlbuilder.go
- get_subjects_of_student.go
- get_subjects_of_student_parameters.go
- get_subjects_of_student_responses.go
- get_subjects_of_student_urlbuilder.go
- get_subjects_parameters.go
- get_subjects_responses.go
- get_subjects_urlbuilder.go
- get_teacher_accounts.go
- get_teacher_accounts_parameters.go
- get_teacher_accounts_responses.go
- get_teacher_accounts_urlbuilder.go
- get_teacher_by_id.go
- get_teacher_by_id_parameters.go
- get_teacher_by_id_responses.go
- get_teacher_by_id_urlbuilder.go
- get_teacher_of_subject.go
- get_teacher_of_subject_parameters.go
- get_teacher_of_subject_responses.go
- get_teacher_of_subject_urlbuilder.go
- get_teachers.go
- get_teachers_of_class.go
- get_teachers_of_class_parameters.go
- get_teachers_of_class_responses.go
- get_teachers_of_class_urlbuilder.go
- get_teachers_parameters.go
- get_teachers_responses.go
- get_teachers_urlbuilder.go
- update_account.go
- update_account_parameters.go
- update_account_responses.go
- update_account_urlbuilder.go
- update_class_name.go
- update_class_name_parameters.go
- update_class_name_responses.go
- update_class_name_urlbuilder.go
- update_g_p_a.go
- update_g_p_a_parameters.go
- update_g_p_a_responses.go
- update_g_p_a_urlbuilder.go
- update_student_name.go
- update_student_name_parameters.go
- update_student_name_responses.go
- update_student_name_urlbuilder.go
- update_subject_name.go
- update_subject_name_parameters.go
- update_subject_name_responses.go
- update_subject_name_urlbuilder.go
- update_teacher_name.go
- update_teacher_name_parameters.go
- update_teacher_name_responses.go
- update_teacher_name_urlbuilder.go