courses

package
v4.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetCourseNotFoundCode int = 404

GetCourseNotFoundCode is the HTTP code returned for type GetCourseNotFound

View Source
const GetCourseOKCode int = 200

GetCourseOKCode is the HTTP code returned for type GetCourseOK

View Source
const GetCoursesOKCode int = 200

GetCoursesOKCode is the HTTP code returned for type GetCoursesOK

View Source
const GetDistrictForCourseNotFoundCode int = 404

GetDistrictForCourseNotFoundCode is the HTTP code returned for type GetDistrictForCourseNotFound

View Source
const GetDistrictForCourseOKCode int = 200

GetDistrictForCourseOKCode is the HTTP code returned for type GetDistrictForCourseOK

View Source
const GetResourcesForCourseNotFoundCode int = 404

GetResourcesForCourseNotFoundCode is the HTTP code returned for type GetResourcesForCourseNotFound

View Source
const GetResourcesForCourseOKCode int = 200

GetResourcesForCourseOKCode is the HTTP code returned for type GetResourcesForCourseOK

View Source
const GetSchoolsForCourseNotFoundCode int = 404

GetSchoolsForCourseNotFoundCode is the HTTP code returned for type GetSchoolsForCourseNotFound

View Source
const GetSchoolsForCourseOKCode int = 200

GetSchoolsForCourseOKCode is the HTTP code returned for type GetSchoolsForCourseOK

View Source
const GetSectionsForCourseNotFoundCode int = 404

GetSectionsForCourseNotFoundCode is the HTTP code returned for type GetSectionsForCourseNotFound

View Source
const GetSectionsForCourseOKCode int = 200

GetSectionsForCourseOKCode is the HTTP code returned for type GetSectionsForCourseOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCourse

type GetCourse struct {
	Context *middleware.Context
	Handler GetCourseHandler
}
GetCourse swagger:route GET /courses/{id} Courses getCourse

Returns a specific course

func NewGetCourse

func NewGetCourse(ctx *middleware.Context, handler GetCourseHandler) *GetCourse

NewGetCourse creates a new http.Handler for the get course operation

func (*GetCourse) ServeHTTP

func (o *GetCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetCourseHandler

type GetCourseHandler interface {
	Handle(GetCourseParams, interface{}) middleware.Responder
}

GetCourseHandler interface for that can handle valid get course params

type GetCourseHandlerFunc

type GetCourseHandlerFunc func(GetCourseParams, interface{}) middleware.Responder

GetCourseHandlerFunc turns a function with the right signature into a get course handler

func (GetCourseHandlerFunc) Handle

func (fn GetCourseHandlerFunc) Handle(params GetCourseParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetCourseNotFound

type GetCourseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.NotFound `json:"body,omitempty"`
}

GetCourseNotFound Entity Not Found

swagger:response getCourseNotFound

func NewGetCourseNotFound

func NewGetCourseNotFound() *GetCourseNotFound

NewGetCourseNotFound creates GetCourseNotFound with default headers values

func (*GetCourseNotFound) SetPayload

func (o *GetCourseNotFound) SetPayload(payload *models.NotFound)

SetPayload sets the payload to the get course not found response

func (*GetCourseNotFound) WithPayload

func (o *GetCourseNotFound) WithPayload(payload *models.NotFound) *GetCourseNotFound

WithPayload adds the payload to the get course not found response

func (*GetCourseNotFound) WriteResponse

func (o *GetCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCourseOK

type GetCourseOK struct {

	/*
	  In: Body
	*/
	Payload *models.CourseResponse `json:"body,omitempty"`
}

GetCourseOK OK Response

swagger:response getCourseOK

func NewGetCourseOK

func NewGetCourseOK() *GetCourseOK

NewGetCourseOK creates GetCourseOK with default headers values

func (*GetCourseOK) SetPayload

func (o *GetCourseOK) SetPayload(payload *models.CourseResponse)

SetPayload sets the payload to the get course o k response

func (*GetCourseOK) WithPayload

func (o *GetCourseOK) WithPayload(payload *models.CourseResponse) *GetCourseOK

WithPayload adds the payload to the get course o k response

func (*GetCourseOK) WriteResponse

func (o *GetCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCourseParams

type GetCourseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID string
}

GetCourseParams contains all the bound params for the get course operation typically these are obtained from a http.Request

swagger:parameters getCourse

func NewGetCourseParams

func NewGetCourseParams() GetCourseParams

NewGetCourseParams creates a new GetCourseParams object

There are no default values defined in the spec.

func (*GetCourseParams) BindRequest

func (o *GetCourseParams) 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 NewGetCourseParams() beforehand.

type GetCourseURL

type GetCourseURL struct {
	ID string
	// contains filtered or unexported fields
}

GetCourseURL generates an URL for the get course operation

func (*GetCourseURL) Build

func (o *GetCourseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetCourseURL) BuildFull

func (o *GetCourseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetCourseURL) Must

func (o *GetCourseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetCourseURL) SetBasePath

func (o *GetCourseURL) 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 (*GetCourseURL) String

func (o *GetCourseURL) String() string

String returns the string representation of the path with query string

func (*GetCourseURL) StringFull

func (o *GetCourseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetCourseURL) WithBasePath

func (o *GetCourseURL) WithBasePath(bp string) *GetCourseURL

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 GetCourses

type GetCourses struct {
	Context *middleware.Context
	Handler GetCoursesHandler
}
GetCourses swagger:route GET /courses Courses getCourses

Returns a list of courses

func NewGetCourses

func NewGetCourses(ctx *middleware.Context, handler GetCoursesHandler) *GetCourses

NewGetCourses creates a new http.Handler for the get courses operation

func (*GetCourses) ServeHTTP

func (o *GetCourses) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetCoursesHandler

type GetCoursesHandler interface {
	Handle(GetCoursesParams, interface{}) middleware.Responder
}

GetCoursesHandler interface for that can handle valid get courses params

type GetCoursesHandlerFunc

type GetCoursesHandlerFunc func(GetCoursesParams, interface{}) middleware.Responder

GetCoursesHandlerFunc turns a function with the right signature into a get courses handler

func (GetCoursesHandlerFunc) Handle

func (fn GetCoursesHandlerFunc) Handle(params GetCoursesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetCoursesOK

type GetCoursesOK struct {

	/*
	  In: Body
	*/
	Payload *models.CoursesResponse `json:"body,omitempty"`
}

GetCoursesOK OK Response

swagger:response getCoursesOK

func NewGetCoursesOK

func NewGetCoursesOK() *GetCoursesOK

NewGetCoursesOK creates GetCoursesOK with default headers values

func (*GetCoursesOK) SetPayload

func (o *GetCoursesOK) SetPayload(payload *models.CoursesResponse)

SetPayload sets the payload to the get courses o k response

func (*GetCoursesOK) WithPayload

func (o *GetCoursesOK) WithPayload(payload *models.CoursesResponse) *GetCoursesOK

WithPayload adds the payload to the get courses o k response

func (*GetCoursesOK) WriteResponse

func (o *GetCoursesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCoursesParams

type GetCoursesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Count *string
	/*
	  In: query
	*/
	EndingBefore *string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	StartingAfter *string
}

GetCoursesParams contains all the bound params for the get courses operation typically these are obtained from a http.Request

swagger:parameters getCourses

func NewGetCoursesParams

func NewGetCoursesParams() GetCoursesParams

NewGetCoursesParams creates a new GetCoursesParams object

There are no default values defined in the spec.

func (*GetCoursesParams) BindRequest

func (o *GetCoursesParams) 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 NewGetCoursesParams() beforehand.

type GetCoursesURL

type GetCoursesURL struct {
	Count         *string
	EndingBefore  *string
	Limit         *int64
	StartingAfter *string
	// contains filtered or unexported fields
}

GetCoursesURL generates an URL for the get courses operation

func (*GetCoursesURL) Build

func (o *GetCoursesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetCoursesURL) BuildFull

func (o *GetCoursesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetCoursesURL) Must

func (o *GetCoursesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetCoursesURL) SetBasePath

func (o *GetCoursesURL) 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 (*GetCoursesURL) String

func (o *GetCoursesURL) String() string

String returns the string representation of the path with query string

func (*GetCoursesURL) StringFull

func (o *GetCoursesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetCoursesURL) WithBasePath

func (o *GetCoursesURL) WithBasePath(bp string) *GetCoursesURL

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 GetDistrictForCourse

type GetDistrictForCourse struct {
	Context *middleware.Context
	Handler GetDistrictForCourseHandler
}
GetDistrictForCourse swagger:route GET /courses/{id}/district Courses getDistrictForCourse

Returns the district for a course

func NewGetDistrictForCourse

func NewGetDistrictForCourse(ctx *middleware.Context, handler GetDistrictForCourseHandler) *GetDistrictForCourse

NewGetDistrictForCourse creates a new http.Handler for the get district for course operation

func (*GetDistrictForCourse) ServeHTTP

func (o *GetDistrictForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDistrictForCourseHandler

type GetDistrictForCourseHandler interface {
	Handle(GetDistrictForCourseParams, interface{}) middleware.Responder
}

GetDistrictForCourseHandler interface for that can handle valid get district for course params

type GetDistrictForCourseHandlerFunc

type GetDistrictForCourseHandlerFunc func(GetDistrictForCourseParams, interface{}) middleware.Responder

GetDistrictForCourseHandlerFunc turns a function with the right signature into a get district for course handler

func (GetDistrictForCourseHandlerFunc) Handle

func (fn GetDistrictForCourseHandlerFunc) Handle(params GetDistrictForCourseParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDistrictForCourseNotFound

type GetDistrictForCourseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.NotFound `json:"body,omitempty"`
}

GetDistrictForCourseNotFound Entity Not Found

swagger:response getDistrictForCourseNotFound

func NewGetDistrictForCourseNotFound

func NewGetDistrictForCourseNotFound() *GetDistrictForCourseNotFound

NewGetDistrictForCourseNotFound creates GetDistrictForCourseNotFound with default headers values

func (*GetDistrictForCourseNotFound) SetPayload

func (o *GetDistrictForCourseNotFound) SetPayload(payload *models.NotFound)

SetPayload sets the payload to the get district for course not found response

func (*GetDistrictForCourseNotFound) WithPayload

WithPayload adds the payload to the get district for course not found response

func (*GetDistrictForCourseNotFound) WriteResponse

func (o *GetDistrictForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDistrictForCourseOK

type GetDistrictForCourseOK struct {

	/*
	  In: Body
	*/
	Payload *models.DistrictResponse `json:"body,omitempty"`
}

GetDistrictForCourseOK OK Response

swagger:response getDistrictForCourseOK

func NewGetDistrictForCourseOK

func NewGetDistrictForCourseOK() *GetDistrictForCourseOK

NewGetDistrictForCourseOK creates GetDistrictForCourseOK with default headers values

func (*GetDistrictForCourseOK) SetPayload

func (o *GetDistrictForCourseOK) SetPayload(payload *models.DistrictResponse)

SetPayload sets the payload to the get district for course o k response

func (*GetDistrictForCourseOK) WithPayload

WithPayload adds the payload to the get district for course o k response

func (*GetDistrictForCourseOK) WriteResponse

func (o *GetDistrictForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDistrictForCourseParams

type GetDistrictForCourseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID string
}

GetDistrictForCourseParams contains all the bound params for the get district for course operation typically these are obtained from a http.Request

swagger:parameters getDistrictForCourse

func NewGetDistrictForCourseParams

func NewGetDistrictForCourseParams() GetDistrictForCourseParams

NewGetDistrictForCourseParams creates a new GetDistrictForCourseParams object

There are no default values defined in the spec.

func (*GetDistrictForCourseParams) BindRequest

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 NewGetDistrictForCourseParams() beforehand.

type GetDistrictForCourseURL

type GetDistrictForCourseURL struct {
	ID string
	// contains filtered or unexported fields
}

GetDistrictForCourseURL generates an URL for the get district for course operation

func (*GetDistrictForCourseURL) Build

func (o *GetDistrictForCourseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDistrictForCourseURL) BuildFull

func (o *GetDistrictForCourseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDistrictForCourseURL) Must

func (o *GetDistrictForCourseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDistrictForCourseURL) SetBasePath

func (o *GetDistrictForCourseURL) 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 (*GetDistrictForCourseURL) String

func (o *GetDistrictForCourseURL) String() string

String returns the string representation of the path with query string

func (*GetDistrictForCourseURL) StringFull

func (o *GetDistrictForCourseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDistrictForCourseURL) WithBasePath

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 GetResourcesForCourse

type GetResourcesForCourse struct {
	Context *middleware.Context
	Handler GetResourcesForCourseHandler
}
GetResourcesForCourse swagger:route GET /courses/{id}/resources Courses getResourcesForCourse

Returns the resources for a course

func NewGetResourcesForCourse

func NewGetResourcesForCourse(ctx *middleware.Context, handler GetResourcesForCourseHandler) *GetResourcesForCourse

NewGetResourcesForCourse creates a new http.Handler for the get resources for course operation

func (*GetResourcesForCourse) ServeHTTP

func (o *GetResourcesForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetResourcesForCourseHandler

type GetResourcesForCourseHandler interface {
	Handle(GetResourcesForCourseParams, interface{}) middleware.Responder
}

GetResourcesForCourseHandler interface for that can handle valid get resources for course params

type GetResourcesForCourseHandlerFunc

type GetResourcesForCourseHandlerFunc func(GetResourcesForCourseParams, interface{}) middleware.Responder

GetResourcesForCourseHandlerFunc turns a function with the right signature into a get resources for course handler

func (GetResourcesForCourseHandlerFunc) Handle

func (fn GetResourcesForCourseHandlerFunc) Handle(params GetResourcesForCourseParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetResourcesForCourseNotFound

type GetResourcesForCourseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.NotFound `json:"body,omitempty"`
}

GetResourcesForCourseNotFound Entity Not Found

swagger:response getResourcesForCourseNotFound

func NewGetResourcesForCourseNotFound

func NewGetResourcesForCourseNotFound() *GetResourcesForCourseNotFound

NewGetResourcesForCourseNotFound creates GetResourcesForCourseNotFound with default headers values

func (*GetResourcesForCourseNotFound) SetPayload

func (o *GetResourcesForCourseNotFound) SetPayload(payload *models.NotFound)

SetPayload sets the payload to the get resources for course not found response

func (*GetResourcesForCourseNotFound) WithPayload

WithPayload adds the payload to the get resources for course not found response

func (*GetResourcesForCourseNotFound) WriteResponse

func (o *GetResourcesForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetResourcesForCourseOK

type GetResourcesForCourseOK struct {

	/*
	  In: Body
	*/
	Payload *models.ResourcesResponse `json:"body,omitempty"`
}

GetResourcesForCourseOK OK Response

swagger:response getResourcesForCourseOK

func NewGetResourcesForCourseOK

func NewGetResourcesForCourseOK() *GetResourcesForCourseOK

NewGetResourcesForCourseOK creates GetResourcesForCourseOK with default headers values

func (*GetResourcesForCourseOK) SetPayload

func (o *GetResourcesForCourseOK) SetPayload(payload *models.ResourcesResponse)

SetPayload sets the payload to the get resources for course o k response

func (*GetResourcesForCourseOK) WithPayload

WithPayload adds the payload to the get resources for course o k response

func (*GetResourcesForCourseOK) WriteResponse

func (o *GetResourcesForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetResourcesForCourseParams

type GetResourcesForCourseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	EndingBefore *string
	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	StartingAfter *string
}

GetResourcesForCourseParams contains all the bound params for the get resources for course operation typically these are obtained from a http.Request

swagger:parameters getResourcesForCourse

func NewGetResourcesForCourseParams

func NewGetResourcesForCourseParams() GetResourcesForCourseParams

NewGetResourcesForCourseParams creates a new GetResourcesForCourseParams object

There are no default values defined in the spec.

func (*GetResourcesForCourseParams) BindRequest

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 NewGetResourcesForCourseParams() beforehand.

type GetResourcesForCourseURL

type GetResourcesForCourseURL struct {
	ID string

	EndingBefore  *string
	Limit         *int64
	StartingAfter *string
	// contains filtered or unexported fields
}

GetResourcesForCourseURL generates an URL for the get resources for course operation

func (*GetResourcesForCourseURL) Build

func (o *GetResourcesForCourseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetResourcesForCourseURL) BuildFull

func (o *GetResourcesForCourseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetResourcesForCourseURL) Must

func (o *GetResourcesForCourseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetResourcesForCourseURL) SetBasePath

func (o *GetResourcesForCourseURL) 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 (*GetResourcesForCourseURL) String

func (o *GetResourcesForCourseURL) String() string

String returns the string representation of the path with query string

func (*GetResourcesForCourseURL) StringFull

func (o *GetResourcesForCourseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetResourcesForCourseURL) WithBasePath

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 GetSchoolsForCourse

type GetSchoolsForCourse struct {
	Context *middleware.Context
	Handler GetSchoolsForCourseHandler
}
GetSchoolsForCourse swagger:route GET /courses/{id}/schools Courses getSchoolsForCourse

Returns the schools for a course

func NewGetSchoolsForCourse

func NewGetSchoolsForCourse(ctx *middleware.Context, handler GetSchoolsForCourseHandler) *GetSchoolsForCourse

NewGetSchoolsForCourse creates a new http.Handler for the get schools for course operation

func (*GetSchoolsForCourse) ServeHTTP

func (o *GetSchoolsForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSchoolsForCourseHandler

type GetSchoolsForCourseHandler interface {
	Handle(GetSchoolsForCourseParams, interface{}) middleware.Responder
}

GetSchoolsForCourseHandler interface for that can handle valid get schools for course params

type GetSchoolsForCourseHandlerFunc

type GetSchoolsForCourseHandlerFunc func(GetSchoolsForCourseParams, interface{}) middleware.Responder

GetSchoolsForCourseHandlerFunc turns a function with the right signature into a get schools for course handler

func (GetSchoolsForCourseHandlerFunc) Handle

func (fn GetSchoolsForCourseHandlerFunc) Handle(params GetSchoolsForCourseParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSchoolsForCourseNotFound

type GetSchoolsForCourseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.NotFound `json:"body,omitempty"`
}

GetSchoolsForCourseNotFound Entity Not Found

swagger:response getSchoolsForCourseNotFound

func NewGetSchoolsForCourseNotFound

func NewGetSchoolsForCourseNotFound() *GetSchoolsForCourseNotFound

NewGetSchoolsForCourseNotFound creates GetSchoolsForCourseNotFound with default headers values

func (*GetSchoolsForCourseNotFound) SetPayload

func (o *GetSchoolsForCourseNotFound) SetPayload(payload *models.NotFound)

SetPayload sets the payload to the get schools for course not found response

func (*GetSchoolsForCourseNotFound) WithPayload

WithPayload adds the payload to the get schools for course not found response

func (*GetSchoolsForCourseNotFound) WriteResponse

func (o *GetSchoolsForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSchoolsForCourseOK

type GetSchoolsForCourseOK struct {

	/*
	  In: Body
	*/
	Payload *models.SchoolsResponse `json:"body,omitempty"`
}

GetSchoolsForCourseOK OK Response

swagger:response getSchoolsForCourseOK

func NewGetSchoolsForCourseOK

func NewGetSchoolsForCourseOK() *GetSchoolsForCourseOK

NewGetSchoolsForCourseOK creates GetSchoolsForCourseOK with default headers values

func (*GetSchoolsForCourseOK) SetPayload

func (o *GetSchoolsForCourseOK) SetPayload(payload *models.SchoolsResponse)

SetPayload sets the payload to the get schools for course o k response

func (*GetSchoolsForCourseOK) WithPayload

WithPayload adds the payload to the get schools for course o k response

func (*GetSchoolsForCourseOK) WriteResponse

func (o *GetSchoolsForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSchoolsForCourseParams

type GetSchoolsForCourseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	EndingBefore *string
	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	StartingAfter *string
}

GetSchoolsForCourseParams contains all the bound params for the get schools for course operation typically these are obtained from a http.Request

swagger:parameters getSchoolsForCourse

func NewGetSchoolsForCourseParams

func NewGetSchoolsForCourseParams() GetSchoolsForCourseParams

NewGetSchoolsForCourseParams creates a new GetSchoolsForCourseParams object

There are no default values defined in the spec.

func (*GetSchoolsForCourseParams) BindRequest

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 NewGetSchoolsForCourseParams() beforehand.

type GetSchoolsForCourseURL

type GetSchoolsForCourseURL struct {
	ID string

	EndingBefore  *string
	Limit         *int64
	StartingAfter *string
	// contains filtered or unexported fields
}

GetSchoolsForCourseURL generates an URL for the get schools for course operation

func (*GetSchoolsForCourseURL) Build

func (o *GetSchoolsForCourseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSchoolsForCourseURL) BuildFull

func (o *GetSchoolsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSchoolsForCourseURL) Must

func (o *GetSchoolsForCourseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSchoolsForCourseURL) SetBasePath

func (o *GetSchoolsForCourseURL) 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 (*GetSchoolsForCourseURL) String

func (o *GetSchoolsForCourseURL) String() string

String returns the string representation of the path with query string

func (*GetSchoolsForCourseURL) StringFull

func (o *GetSchoolsForCourseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSchoolsForCourseURL) WithBasePath

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 GetSectionsForCourse

type GetSectionsForCourse struct {
	Context *middleware.Context
	Handler GetSectionsForCourseHandler
}
GetSectionsForCourse swagger:route GET /courses/{id}/sections Courses getSectionsForCourse

Returns the sections for a course

func NewGetSectionsForCourse

func NewGetSectionsForCourse(ctx *middleware.Context, handler GetSectionsForCourseHandler) *GetSectionsForCourse

NewGetSectionsForCourse creates a new http.Handler for the get sections for course operation

func (*GetSectionsForCourse) ServeHTTP

func (o *GetSectionsForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetSectionsForCourseHandler

type GetSectionsForCourseHandler interface {
	Handle(GetSectionsForCourseParams, interface{}) middleware.Responder
}

GetSectionsForCourseHandler interface for that can handle valid get sections for course params

type GetSectionsForCourseHandlerFunc

type GetSectionsForCourseHandlerFunc func(GetSectionsForCourseParams, interface{}) middleware.Responder

GetSectionsForCourseHandlerFunc turns a function with the right signature into a get sections for course handler

func (GetSectionsForCourseHandlerFunc) Handle

func (fn GetSectionsForCourseHandlerFunc) Handle(params GetSectionsForCourseParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetSectionsForCourseNotFound

type GetSectionsForCourseNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.NotFound `json:"body,omitempty"`
}

GetSectionsForCourseNotFound Entity Not Found

swagger:response getSectionsForCourseNotFound

func NewGetSectionsForCourseNotFound

func NewGetSectionsForCourseNotFound() *GetSectionsForCourseNotFound

NewGetSectionsForCourseNotFound creates GetSectionsForCourseNotFound with default headers values

func (*GetSectionsForCourseNotFound) SetPayload

func (o *GetSectionsForCourseNotFound) SetPayload(payload *models.NotFound)

SetPayload sets the payload to the get sections for course not found response

func (*GetSectionsForCourseNotFound) WithPayload

WithPayload adds the payload to the get sections for course not found response

func (*GetSectionsForCourseNotFound) WriteResponse

func (o *GetSectionsForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSectionsForCourseOK

type GetSectionsForCourseOK struct {

	/*
	  In: Body
	*/
	Payload *models.SectionsResponse `json:"body,omitempty"`
}

GetSectionsForCourseOK OK Response

swagger:response getSectionsForCourseOK

func NewGetSectionsForCourseOK

func NewGetSectionsForCourseOK() *GetSectionsForCourseOK

NewGetSectionsForCourseOK creates GetSectionsForCourseOK with default headers values

func (*GetSectionsForCourseOK) SetPayload

func (o *GetSectionsForCourseOK) SetPayload(payload *models.SectionsResponse)

SetPayload sets the payload to the get sections for course o k response

func (*GetSectionsForCourseOK) WithPayload

WithPayload adds the payload to the get sections for course o k response

func (*GetSectionsForCourseOK) WriteResponse

func (o *GetSectionsForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetSectionsForCourseParams

type GetSectionsForCourseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	EndingBefore *string
	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	StartingAfter *string
}

GetSectionsForCourseParams contains all the bound params for the get sections for course operation typically these are obtained from a http.Request

swagger:parameters getSectionsForCourse

func NewGetSectionsForCourseParams

func NewGetSectionsForCourseParams() GetSectionsForCourseParams

NewGetSectionsForCourseParams creates a new GetSectionsForCourseParams object

There are no default values defined in the spec.

func (*GetSectionsForCourseParams) BindRequest

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 NewGetSectionsForCourseParams() beforehand.

type GetSectionsForCourseURL

type GetSectionsForCourseURL struct {
	ID string

	EndingBefore  *string
	Limit         *int64
	StartingAfter *string
	// contains filtered or unexported fields
}

GetSectionsForCourseURL generates an URL for the get sections for course operation

func (*GetSectionsForCourseURL) Build

func (o *GetSectionsForCourseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetSectionsForCourseURL) BuildFull

func (o *GetSectionsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetSectionsForCourseURL) Must

func (o *GetSectionsForCourseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetSectionsForCourseURL) SetBasePath

func (o *GetSectionsForCourseURL) 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 (*GetSectionsForCourseURL) String

func (o *GetSectionsForCourseURL) String() string

String returns the string representation of the path with query string

func (*GetSectionsForCourseURL) StringFull

func (o *GetSectionsForCourseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetSectionsForCourseURL) WithBasePath

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL