parent
3a4076f681
commit
b5b86d0a2d
|
@ -88,6 +88,12 @@ type GetCoursesParams struct {
|
|||
*/
|
||||
Offset *int64
|
||||
|
||||
/* Slug.
|
||||
|
||||
The Slug of this Object
|
||||
*/
|
||||
Slug *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
|
@ -174,6 +180,17 @@ func (o *GetCoursesParams) SetOffset(offset *int64) {
|
|||
o.Offset = offset
|
||||
}
|
||||
|
||||
// WithSlug adds the slug to the get courses params
|
||||
func (o *GetCoursesParams) WithSlug(slug *string) *GetCoursesParams {
|
||||
o.SetSlug(slug)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetSlug adds the slug to the get courses params
|
||||
func (o *GetCoursesParams) SetSlug(slug *string) {
|
||||
o.Slug = slug
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetCoursesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
|
@ -233,6 +250,23 @@ func (o *GetCoursesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re
|
|||
}
|
||||
}
|
||||
|
||||
if o.Slug != nil {
|
||||
|
||||
// query param slug
|
||||
var qrSlug string
|
||||
|
||||
if o.Slug != nil {
|
||||
qrSlug = *o.Slug
|
||||
}
|
||||
qSlug := qrSlug
|
||||
if qSlug != "" {
|
||||
|
||||
if err := r.SetQueryParam("slug", qSlug); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
|
|
@ -88,6 +88,12 @@ type GetEventsParams struct {
|
|||
*/
|
||||
Offset *int64
|
||||
|
||||
/* Slug.
|
||||
|
||||
The Slug of this Object
|
||||
*/
|
||||
Slug *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
|
@ -174,6 +180,17 @@ func (o *GetEventsParams) SetOffset(offset *int64) {
|
|||
o.Offset = offset
|
||||
}
|
||||
|
||||
// WithSlug adds the slug to the get events params
|
||||
func (o *GetEventsParams) WithSlug(slug *string) *GetEventsParams {
|
||||
o.SetSlug(slug)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetSlug adds the slug to the get events params
|
||||
func (o *GetEventsParams) SetSlug(slug *string) {
|
||||
o.Slug = slug
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
|
@ -233,6 +250,23 @@ func (o *GetEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg
|
|||
}
|
||||
}
|
||||
|
||||
if o.Slug != nil {
|
||||
|
||||
// query param slug
|
||||
var qrSlug string
|
||||
|
||||
if o.Slug != nil {
|
||||
qrSlug = *o.Slug
|
||||
}
|
||||
qSlug := qrSlug
|
||||
if qSlug != "" {
|
||||
|
||||
if err := r.SetQueryParam("slug", qSlug); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
|
|
@ -88,6 +88,12 @@ type GetTracksParams struct {
|
|||
*/
|
||||
Offset *int64
|
||||
|
||||
/* Slug.
|
||||
|
||||
The Slug of this Object
|
||||
*/
|
||||
Slug *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
|
@ -174,6 +180,17 @@ func (o *GetTracksParams) SetOffset(offset *int64) {
|
|||
o.Offset = offset
|
||||
}
|
||||
|
||||
// WithSlug adds the slug to the get tracks params
|
||||
func (o *GetTracksParams) WithSlug(slug *string) *GetTracksParams {
|
||||
o.SetSlug(slug)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetSlug adds the slug to the get tracks params
|
||||
func (o *GetTracksParams) SetSlug(slug *string) {
|
||||
o.Slug = slug
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetTracksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
|
@ -233,6 +250,23 @@ func (o *GetTracksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg
|
|||
}
|
||||
}
|
||||
|
||||
if o.Slug != nil {
|
||||
|
||||
// query param slug
|
||||
var qrSlug string
|
||||
|
||||
if o.Slug != nil {
|
||||
qrSlug = *o.Slug
|
||||
}
|
||||
qSlug := qrSlug
|
||||
if qSlug != "" {
|
||||
|
||||
if err := r.SetQueryParam("slug", qSlug); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
|
|
@ -0,0 +1,240 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2023 by Vernon Keenan
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package users
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// NewGetUsersAuthParams creates a new GetUsersAuthParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewGetUsersAuthParams() *GetUsersAuthParams {
|
||||
return &GetUsersAuthParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersAuthParamsWithTimeout creates a new GetUsersAuthParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetUsersAuthParamsWithTimeout(timeout time.Duration) *GetUsersAuthParams {
|
||||
return &GetUsersAuthParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersAuthParamsWithContext creates a new GetUsersAuthParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetUsersAuthParamsWithContext(ctx context.Context) *GetUsersAuthParams {
|
||||
return &GetUsersAuthParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersAuthParamsWithHTTPClient creates a new GetUsersAuthParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetUsersAuthParamsWithHTTPClient(client *http.Client) *GetUsersAuthParams {
|
||||
return &GetUsersAuthParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the get users auth operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetUsersAuthParams struct {
|
||||
|
||||
/* Email.
|
||||
|
||||
Email address
|
||||
*/
|
||||
Email *string
|
||||
|
||||
/* Limit.
|
||||
|
||||
How many objects to return at one time
|
||||
|
||||
Format: int64
|
||||
*/
|
||||
Limit *int64
|
||||
|
||||
/* Offset.
|
||||
|
||||
How many objects to skip?
|
||||
|
||||
Format: int64
|
||||
*/
|
||||
Offset *int64
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get users auth params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUsersAuthParams) WithDefaults() *GetUsersAuthParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get users auth params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUsersAuthParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithTimeout(timeout time.Duration) *GetUsersAuthParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithContext(ctx context.Context) *GetUsersAuthParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithHTTPClient(client *http.Client) *GetUsersAuthParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithEmail adds the email to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithEmail(email *string) *GetUsersAuthParams {
|
||||
o.SetEmail(email)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetEmail adds the email to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetEmail(email *string) {
|
||||
o.Email = email
|
||||
}
|
||||
|
||||
// WithLimit adds the limit to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithLimit(limit *int64) *GetUsersAuthParams {
|
||||
o.SetLimit(limit)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetLimit adds the limit to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetLimit(limit *int64) {
|
||||
o.Limit = limit
|
||||
}
|
||||
|
||||
// WithOffset adds the offset to the get users auth params
|
||||
func (o *GetUsersAuthParams) WithOffset(offset *int64) *GetUsersAuthParams {
|
||||
o.SetOffset(offset)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetOffset adds the offset to the get users auth params
|
||||
func (o *GetUsersAuthParams) SetOffset(offset *int64) {
|
||||
o.Offset = offset
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetUsersAuthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
|
||||
if o.Email != nil {
|
||||
|
||||
// query param email
|
||||
var qrEmail string
|
||||
|
||||
if o.Email != nil {
|
||||
qrEmail = *o.Email
|
||||
}
|
||||
qEmail := qrEmail
|
||||
if qEmail != "" {
|
||||
|
||||
if err := r.SetQueryParam("email", qEmail); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if o.Limit != nil {
|
||||
|
||||
// query param limit
|
||||
var qrLimit int64
|
||||
|
||||
if o.Limit != nil {
|
||||
qrLimit = *o.Limit
|
||||
}
|
||||
qLimit := swag.FormatInt64(qrLimit)
|
||||
if qLimit != "" {
|
||||
|
||||
if err := r.SetQueryParam("limit", qLimit); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if o.Offset != nil {
|
||||
|
||||
// query param offset
|
||||
var qrOffset int64
|
||||
|
||||
if o.Offset != nil {
|
||||
qrOffset = *o.Offset
|
||||
}
|
||||
qOffset := swag.FormatInt64(qrOffset)
|
||||
if qOffset != "" {
|
||||
|
||||
if err := r.SetQueryParam("offset", qOffset); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -0,0 +1,486 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2023 by Vernon Keenan
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package users
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/work/lib/api/members/members_models"
|
||||
)
|
||||
|
||||
// GetUsersAuthReader is a Reader for the GetUsersAuth structure.
|
||||
type GetUsersAuthReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *GetUsersAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewGetUsersAuthOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewGetUsersAuthUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewGetUsersAuthForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewGetUsersAuthNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewGetUsersAuthUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewGetUsersAuthInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersAuthOK creates a GetUsersAuthOK with default headers values
|
||||
func NewGetUsersAuthOK() *GetUsersAuthOK {
|
||||
return &GetUsersAuthOK{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthOK describes a response with status code 200, with default header values.
|
||||
|
||||
Response with single UserAuth object
|
||||
*/
|
||||
type GetUsersAuthOK struct {
|
||||
Payload *members_models.UserAuth
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth o k response has a 2xx status code
|
||||
func (o *GetUsersAuthOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth o k response has a 3xx status code
|
||||
func (o *GetUsersAuthOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth o k response has a 4xx status code
|
||||
func (o *GetUsersAuthOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth o k response has a 5xx status code
|
||||
func (o *GetUsersAuthOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth o k response a status code equal to that given
|
||||
func (o *GetUsersAuthOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth o k response
|
||||
func (o *GetUsersAuthOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthOK) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthOK) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthOK) GetPayload() *members_models.UserAuth {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(members_models.UserAuth)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUsersAuthUnauthorized creates a GetUsersAuthUnauthorized with default headers values
|
||||
func NewGetUsersAuthUnauthorized() *GetUsersAuthUnauthorized {
|
||||
return &GetUsersAuthUnauthorized{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type GetUsersAuthUnauthorized struct {
|
||||
Payload *members_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth unauthorized response has a 2xx status code
|
||||
func (o *GetUsersAuthUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth unauthorized response has a 3xx status code
|
||||
func (o *GetUsersAuthUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth unauthorized response has a 4xx status code
|
||||
func (o *GetUsersAuthUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth unauthorized response has a 5xx status code
|
||||
func (o *GetUsersAuthUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth unauthorized response a status code equal to that given
|
||||
func (o *GetUsersAuthUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth unauthorized response
|
||||
func (o *GetUsersAuthUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnauthorized) GetPayload() *members_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(members_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUsersAuthForbidden creates a GetUsersAuthForbidden with default headers values
|
||||
func NewGetUsersAuthForbidden() *GetUsersAuthForbidden {
|
||||
return &GetUsersAuthForbidden{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type GetUsersAuthForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *members_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth forbidden response has a 2xx status code
|
||||
func (o *GetUsersAuthForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth forbidden response has a 3xx status code
|
||||
func (o *GetUsersAuthForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth forbidden response has a 4xx status code
|
||||
func (o *GetUsersAuthForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth forbidden response has a 5xx status code
|
||||
func (o *GetUsersAuthForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth forbidden response a status code equal to that given
|
||||
func (o *GetUsersAuthForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth forbidden response
|
||||
func (o *GetUsersAuthForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthForbidden) GetPayload() *members_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(members_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUsersAuthNotFound creates a GetUsersAuthNotFound with default headers values
|
||||
func NewGetUsersAuthNotFound() *GetUsersAuthNotFound {
|
||||
return &GetUsersAuthNotFound{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type GetUsersAuthNotFound struct {
|
||||
Payload *members_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth not found response has a 2xx status code
|
||||
func (o *GetUsersAuthNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth not found response has a 3xx status code
|
||||
func (o *GetUsersAuthNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth not found response has a 4xx status code
|
||||
func (o *GetUsersAuthNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth not found response has a 5xx status code
|
||||
func (o *GetUsersAuthNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth not found response a status code equal to that given
|
||||
func (o *GetUsersAuthNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth not found response
|
||||
func (o *GetUsersAuthNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthNotFound) GetPayload() *members_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(members_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUsersAuthUnprocessableEntity creates a GetUsersAuthUnprocessableEntity with default headers values
|
||||
func NewGetUsersAuthUnprocessableEntity() *GetUsersAuthUnprocessableEntity {
|
||||
return &GetUsersAuthUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type GetUsersAuthUnprocessableEntity struct {
|
||||
Payload *members_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth unprocessable entity response has a 2xx status code
|
||||
func (o *GetUsersAuthUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth unprocessable entity response has a 3xx status code
|
||||
func (o *GetUsersAuthUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth unprocessable entity response has a 4xx status code
|
||||
func (o *GetUsersAuthUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth unprocessable entity response has a 5xx status code
|
||||
func (o *GetUsersAuthUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth unprocessable entity response a status code equal to that given
|
||||
func (o *GetUsersAuthUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth unprocessable entity response
|
||||
func (o *GetUsersAuthUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnprocessableEntity) GetPayload() *members_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(members_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetUsersAuthInternalServerError creates a GetUsersAuthInternalServerError with default headers values
|
||||
func NewGetUsersAuthInternalServerError() *GetUsersAuthInternalServerError {
|
||||
return &GetUsersAuthInternalServerError{}
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuthInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type GetUsersAuthInternalServerError struct {
|
||||
Payload *members_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users auth internal server error response has a 2xx status code
|
||||
func (o *GetUsersAuthInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users auth internal server error response has a 3xx status code
|
||||
func (o *GetUsersAuthInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users auth internal server error response has a 4xx status code
|
||||
func (o *GetUsersAuthInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users auth internal server error response has a 5xx status code
|
||||
func (o *GetUsersAuthInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users auth internal server error response a status code equal to that given
|
||||
func (o *GetUsersAuthInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users auth internal server error response
|
||||
func (o *GetUsersAuthInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /users/auth][%d] getUsersAuthInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthInternalServerError) GetPayload() *members_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetUsersAuthInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
o.Payload = new(members_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -36,6 +36,8 @@ type ClientOption func(*runtime.ClientOperation)
|
|||
type ClientService interface {
|
||||
GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error)
|
||||
|
||||
GetUsersAuth(params *GetUsersAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersAuthOK, error)
|
||||
|
||||
PostUsers(params *PostUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersOK, error)
|
||||
|
||||
PostUsersAuth(params *PostUsersAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersAuthOK, error)
|
||||
|
@ -90,6 +92,47 @@ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInf
|
|||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
GetUsersAuth gets a list web users
|
||||
|
||||
Return a list of User records from the datastore
|
||||
*/
|
||||
func (a *Client) GetUsersAuth(params *GetUsersAuthParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersAuthOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUsersAuthParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getUsersAuth",
|
||||
Method: "GET",
|
||||
PathPattern: "/users/auth",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &GetUsersAuthReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*GetUsersAuthOK)
|
||||
if ok {
|
||||
return success, nil
|
||||
}
|
||||
// unexpected success response
|
||||
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
|
||||
msg := fmt.Sprintf("unexpected success response for getUsersAuth: API contract not enforced by server. Client expected to get an error, but got: %T", result)
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
PostUsers creates new users
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@ import (
|
|||
// swagger:model course
|
||||
type Course struct {
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
@ -32,8 +35,11 @@ type Course struct {
|
|||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// display order
|
||||
DisplayOrder *float64 `json:"DisplayOrder,omitempty"`
|
||||
|
||||
// full description
|
||||
Fulldescription *string `json:"Fulldescription,omitempty"`
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
@ -56,6 +62,9 @@ type Course struct {
|
|||
// logo
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// name
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// price
|
||||
Price *float64 `json:"Price,omitempty"`
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@ type Event struct {
|
|||
// capacity
|
||||
Capacity *int64 `json:"Capacity,omitempty"`
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
|
|
@ -21,38 +21,53 @@ import (
|
|||
// swagger:model track
|
||||
type Track struct {
|
||||
|
||||
// created by ID
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// The identifier of the user who created the track.
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// created date
|
||||
// The date and time when the track was created.
|
||||
CreatedDate *string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// description
|
||||
// A brief description of the track.
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// ID
|
||||
// The order in which the track should be displayed.
|
||||
DisplayOrder *float64 `json:"DisplayOrder,omitempty"`
|
||||
|
||||
// A full description of the track.
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// A unique identifier for the track.
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// image alt text
|
||||
// A small icon representing the track.
|
||||
Icon *string `json:"Icon,omitempty"`
|
||||
|
||||
// Alternative text for the track's image for accessibility.
|
||||
ImageAltText *string `json:"ImageAltText,omitempty"`
|
||||
|
||||
// image URL
|
||||
// The URL of the image representing the track.
|
||||
ImageURL *string `json:"ImageURL,omitempty"`
|
||||
|
||||
// last modified by ID
|
||||
// The identifier of the user who last modified the track.
|
||||
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// last modified date
|
||||
// The date and time when the track was last modified.
|
||||
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// logo
|
||||
// The logo associated with the track.
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// name
|
||||
// The name of the track.
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// slug
|
||||
// A URL-friendly version of the track name used for routing.
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
||||
// The title of the track.
|
||||
Title *string `json:"Title,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this track
|
||||
|
|
|
@ -23,6 +23,9 @@ import (
|
|||
// swagger:model course
|
||||
type Course struct {
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
@ -32,8 +35,11 @@ type Course struct {
|
|||
// description
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// display order
|
||||
DisplayOrder *float64 `json:"DisplayOrder,omitempty"`
|
||||
|
||||
// full description
|
||||
Fulldescription *string `json:"Fulldescription,omitempty"`
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
@ -56,6 +62,9 @@ type Course struct {
|
|||
// logo
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// name
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// price
|
||||
Price *float64 `json:"Price,omitempty"`
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@ type Event struct {
|
|||
// capacity
|
||||
Capacity *int64 `json:"Capacity,omitempty"`
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@ import (
|
|||
// swagger:model industry
|
||||
type Industry struct {
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// The list of Products in this industry
|
||||
CompanyProducts []*IndustryCompanyProductsItems0 `json:"CompanyProducts"`
|
||||
|
||||
|
@ -238,6 +241,9 @@ type IndustryCompanyProductsItems0 struct {
|
|||
// Salesforce AppExchange URL
|
||||
AppExchange *string `json:"AppExchange,omitempty"`
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// Created By User ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
@ -396,6 +402,9 @@ type IndustryCompanyServicesItems0 struct {
|
|||
// Salesforce AppExchange URL
|
||||
AppExchange *string `json:"AppExchange,omitempty"`
|
||||
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// Created By User ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
|
|
|
@ -21,38 +21,53 @@ import (
|
|||
// swagger:model track
|
||||
type Track struct {
|
||||
|
||||
// created by ID
|
||||
// The channels associated with the track (Multiselect Picklist).
|
||||
Channels *string `json:"Channels,omitempty"`
|
||||
|
||||
// The identifier of the user who created the track.
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// created date
|
||||
// The date and time when the track was created.
|
||||
CreatedDate *string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// description
|
||||
// A brief description of the track.
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// ID
|
||||
// The order in which the track should be displayed.
|
||||
DisplayOrder *float64 `json:"DisplayOrder,omitempty"`
|
||||
|
||||
// A full description of the track.
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// A unique identifier for the track.
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// image alt text
|
||||
// A small icon representing the track.
|
||||
Icon *string `json:"Icon,omitempty"`
|
||||
|
||||
// Alternative text for the track's image for accessibility.
|
||||
ImageAltText *string `json:"ImageAltText,omitempty"`
|
||||
|
||||
// image URL
|
||||
// The URL of the image representing the track.
|
||||
ImageURL *string `json:"ImageURL,omitempty"`
|
||||
|
||||
// last modified by ID
|
||||
// The identifier of the user who last modified the track.
|
||||
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// last modified date
|
||||
// The date and time when the track was last modified.
|
||||
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// logo
|
||||
// The logo associated with the track.
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// name
|
||||
// The name of the track.
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// slug
|
||||
// A URL-friendly version of the track name used for routing.
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
||||
// The title of the track.
|
||||
Title *string `json:"Title,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this track
|
||||
|
|
|
@ -11,6 +11,10 @@ CompanyProduct:
|
|||
description: Salesforce AppExchange URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
description: Created By User ID
|
||||
type: string
|
||||
|
|
|
@ -11,6 +11,10 @@ CompanyService:
|
|||
description: Salesforce AppExchange URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
description: Created By User ID
|
||||
type: string
|
||||
|
|
|
@ -22,6 +22,10 @@ Company:
|
|||
ListingAddress:
|
||||
$ref: "./address.yaml#/Address"
|
||||
x-nullable: true
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CloudRevenueTotal:
|
||||
type: number
|
||||
x-nullable: true
|
||||
|
|
|
@ -2,6 +2,10 @@ Course:
|
|||
properties:
|
||||
ID:
|
||||
type: string
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
@ -11,7 +15,10 @@ Course:
|
|||
Description:
|
||||
type: string
|
||||
x-nullable: true
|
||||
Fulldescription:
|
||||
DisplayOrder:
|
||||
type: number
|
||||
x-nullable: true
|
||||
FullDescription:
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageAltText:
|
||||
|
@ -32,6 +39,9 @@ Course:
|
|||
Logo:
|
||||
type: string
|
||||
x-nullable: true
|
||||
Name:
|
||||
type: string
|
||||
x-nullable: true
|
||||
Price:
|
||||
type: number
|
||||
x-nullable: true
|
||||
|
|
|
@ -8,6 +8,10 @@ Event:
|
|||
Capacity:
|
||||
type: integer
|
||||
x-nullable: true
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
|
|
@ -4,6 +4,10 @@ Industry:
|
|||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
items:
|
||||
|
|
|
@ -4,6 +4,10 @@ Topic:
|
|||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
description: Created By User ID
|
||||
type: string
|
||||
|
|
|
@ -1,35 +1,66 @@
|
|||
Track:
|
||||
properties:
|
||||
ID:
|
||||
description: A unique identifier for the track.
|
||||
type: string
|
||||
Channels:
|
||||
description: The channels associated with the track (Multiselect Picklist).
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedByID:
|
||||
description: The identifier of the user who created the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedDate:
|
||||
description: The date and time when the track was created.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Description:
|
||||
description: A brief description of the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
DisplayOrder:
|
||||
description: The order in which the track should be displayed.
|
||||
type: number
|
||||
x-nullable: true
|
||||
FullDescription:
|
||||
description: A full description of the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Icon:
|
||||
description: A small icon representing the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageAltText:
|
||||
description: Alternative text for the track's image for accessibility.
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageURL:
|
||||
description: The URL of the image representing the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
description: The identifier of the user who last modified the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedDate:
|
||||
description: The date and time when the track was last modified.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Logo:
|
||||
description: The logo associated with the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Name:
|
||||
description: The name of the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: A URL-friendly version of the track name used for routing.
|
||||
type: string
|
||||
x-nullable: true
|
||||
Title:
|
||||
description: The title of the track.
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: object
|
||||
|
|
|
@ -389,6 +389,12 @@ parameters:
|
|||
name: offset
|
||||
required: false
|
||||
type: integer
|
||||
slugQuery:
|
||||
description: The Slug of this Object
|
||||
in: query
|
||||
name: slug
|
||||
required: false
|
||||
type: string
|
||||
responses:
|
||||
AccessForbidden:
|
||||
description: Access forbidden, account lacks access
|
||||
|
@ -863,6 +869,7 @@ paths:
|
|||
operationId: getCourses
|
||||
parameters:
|
||||
- $ref: "#/parameters/idQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
responses:
|
||||
|
@ -1362,6 +1369,7 @@ paths:
|
|||
operationId: getEvents
|
||||
parameters:
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/idQuery"
|
||||
responses:
|
||||
|
@ -2776,6 +2784,7 @@ paths:
|
|||
operationId: getTracks
|
||||
parameters:
|
||||
- $ref: "#/parameters/idQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
responses:
|
||||
|
@ -3131,6 +3140,31 @@ paths:
|
|||
tags:
|
||||
- Transactions
|
||||
/users/auth:
|
||||
get:
|
||||
description: Return a list of User records from the datastore
|
||||
operationId: getUsersAuth
|
||||
parameters:
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/emailQuery"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/UserAuthResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Get a list Web Users
|
||||
tags:
|
||||
- Users
|
||||
post:
|
||||
description: Authenticate a user
|
||||
operationId: postUsersAuth
|
||||
|
|
|
@ -389,6 +389,12 @@ parameters:
|
|||
name: offset
|
||||
required: false
|
||||
type: integer
|
||||
slugQuery:
|
||||
description: The Slug of this Object
|
||||
in: query
|
||||
name: slug
|
||||
required: false
|
||||
type: string
|
||||
responses:
|
||||
AccessForbidden:
|
||||
description: Access forbidden, account lacks access
|
||||
|
@ -863,6 +869,7 @@ paths:
|
|||
operationId: getCourses
|
||||
parameters:
|
||||
- $ref: "#/parameters/idQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
responses:
|
||||
|
@ -1362,6 +1369,7 @@ paths:
|
|||
operationId: getEvents
|
||||
parameters:
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/idQuery"
|
||||
responses:
|
||||
|
@ -2776,6 +2784,7 @@ paths:
|
|||
operationId: getTracks
|
||||
parameters:
|
||||
- $ref: "#/parameters/idQuery"
|
||||
- $ref: "#/parameters/slugQuery"
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
responses:
|
||||
|
@ -3131,6 +3140,31 @@ paths:
|
|||
tags:
|
||||
- Transactions
|
||||
/users/auth:
|
||||
get:
|
||||
description: Return a list of User records from the datastore
|
||||
operationId: getUsersAuth
|
||||
parameters:
|
||||
- $ref: "#/parameters/limitQuery"
|
||||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/emailQuery"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/UserAuthResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Get a list Web Users
|
||||
tags:
|
||||
- Users
|
||||
post:
|
||||
description: Authenticate a user
|
||||
operationId: postUsersAuth
|
||||
|
|
Loading…
Reference in New Issue