swagger

package
v0.0.0-...-f94e68e Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenResponse

type AccessTokenResponse struct {
	Token string `json:"access_token" example:"eyJhbGciOI6IkpXVCJ9.eyJzdk5EbifQ.4CfEaMw6Ur_fszI"`
}

type AuthResponse

type AuthResponse struct {
	User models.AuthResponse `json:"user"`
}

type CollectionFilmRequest

type CollectionFilmRequest struct {
	AddedAt time.Time `json:"added_at" example:"2024-09-04T13:37:24.87653+05:00"`
}

type CollectionFilmResponse

type CollectionFilmResponse struct {
	CollectionFilm models.CollectionFilm `json:"collection_film"`
}

type CollectionFilmsResponse

type CollectionFilmsResponse struct {
	CollectionFilms models.CollectionFilms `json:"collection_films"`
	Metadata        filters.Metadata       `json:"metadata"`
}

type CollectionRequest

type CollectionRequest struct {
	IsFavorite  bool   `json:"is_favorite" example:"false"`
	Name        string `json:"name" example:"My collection"`
	Description string `json:"description,omitempty" example:"This is description"`
}

type CollectionResponse

type CollectionResponse struct {
	Collection models.Collection `json:"collection"`
}

type CollectionsResponse

type CollectionsResponse struct {
	Collections []models.Collection `json:"collections"`
	Metadata    filters.Metadata    `json:"metadata"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error" example:"some kind of error"`
}

type FilmRequest

type FilmRequest struct {
	IsFavorite  bool    `json:"is_favorite" example:"false"`
	Title       string  `json:"title" example:"My film"`
	Year        int     `json:"year" example:"2001"`
	Genre       string  `json:"genre" example:"Horror"`
	Description string  `json:"description" example:"This is description"`
	Rating      float64 `json:"rating" example:"6.7"`
	ImageURL    string  `json:"image_url" example:"http://k4sper1love.kz/images/default.png"`
	Comment     string  `json:"comment" example:"This is comment"`
	IsViewed    bool    `json:"is_viewed" example:"true"`
	UserRating  float64 `json:"user_rating" example:"5.5"`
	Review      string  `json:"review" example:"This is review."`
	URL         string  `json:"url" example:"https://www.kino.kz/film/689/"`
}

type FilmResponse

type FilmResponse struct {
	Film models.Film `json:"film"`
}

type FilmsResponse

type FilmsResponse struct {
	Films    []models.Film    `json:"films"`
	Metadata filters.Metadata `json:"metadata"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" example:"k4sper1love"`
	Password string `json:"password" example:"Secret1!"`
}

type MessageResponse

type MessageResponse struct {
	Message string `json:"message" example:"some kind of success message"`
}

type RegisterRequest

type RegisterRequest struct {
	LoginRequest
}

type UpdateUserRequest

type UpdateUserRequest struct {
	Username string `json:"username" example:"new_username"`
	Email    string `json:"email" example:"new@example.com"`
}

type UserResponse

type UserResponse struct {
	User models.User `json:"user"`
}

Jump to

Keyboard shortcuts

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