api

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCardServer

func RegisterCardServer(route *mux.Router, srv ICardServer)

func RegisterCollectionServer

func RegisterCollectionServer(route *mux.Router, srv ICollectionServer)

func RegisterDeckServer

func RegisterDeckServer(route *mux.Router, srv IDeckServer)

func RegisterGameServer

func RegisterGameServer(route *mux.Router, srv IGameServer)

func RegisterGeneratorServer

func RegisterGeneratorServer(route *mux.Router, srv IGeneratorServer)

func RegisterImageServer

func RegisterImageServer(route *mux.Router, srv IImageServer)

func RegisterStaticServer

func RegisterStaticServer(route *mux.Router)

func RegisterSystemServer

func RegisterSystemServer(route *mux.Router, srv ISystemServer)

Types

type ICardServer

type ICardServer interface {
	CreateHandler(w http.ResponseWriter, r *http.Request)
	DeleteHandler(w http.ResponseWriter, r *http.Request)
	ItemHandler(w http.ResponseWriter, r *http.Request)
	ListHandler(w http.ResponseWriter, r *http.Request)
	UpdateHandler(w http.ResponseWriter, r *http.Request)
}

type ICollectionServer

type ICollectionServer interface {
	CreateHandler(w http.ResponseWriter, r *http.Request)
	DeleteHandler(w http.ResponseWriter, r *http.Request)
	ItemHandler(w http.ResponseWriter, r *http.Request)
	ListHandler(w http.ResponseWriter, r *http.Request)
	UpdateHandler(w http.ResponseWriter, r *http.Request)
}

type IDeckServer

type IDeckServer interface {
	AllDecksHandler(w http.ResponseWriter, r *http.Request)
	CreateHandler(w http.ResponseWriter, r *http.Request)
	DeleteHandler(w http.ResponseWriter, r *http.Request)
	ItemHandler(w http.ResponseWriter, r *http.Request)
	ListHandler(w http.ResponseWriter, r *http.Request)
	UpdateHandler(w http.ResponseWriter, r *http.Request)
}

type IGameServer

type IGameServer interface {
	CreateHandler(w http.ResponseWriter, r *http.Request)
	DeleteHandler(w http.ResponseWriter, r *http.Request)
	DuplicateHandler(w http.ResponseWriter, r *http.Request)
	ExportHandler(w http.ResponseWriter, r *http.Request)
	ImportHandler(w http.ResponseWriter, r *http.Request)
	ItemHandler(w http.ResponseWriter, r *http.Request)
	ListHandler(w http.ResponseWriter, r *http.Request)
	UpdateHandler(w http.ResponseWriter, r *http.Request)
}

type IGeneratorServer

type IGeneratorServer interface {
	GameHandler(w http.ResponseWriter, r *http.Request)
}

type IImageServer

type IImageServer interface {
	CardHandler(w http.ResponseWriter, r *http.Request)
	CollectionHandler(w http.ResponseWriter, r *http.Request)
	DeckHandler(w http.ResponseWriter, r *http.Request)
	GameHandler(w http.ResponseWriter, r *http.Request)
}

type ISystemServer

type ISystemServer interface {
	QuitHandler(w http.ResponseWriter, r *http.Request)
	GetSettingsHandler(w http.ResponseWriter, r *http.Request)
	UpdateSettingsHandler(w http.ResponseWriter, r *http.Request)
	StatusHandler(w http.ResponseWriter, r *http.Request)
	GetVersionHandler(w http.ResponseWriter, r *http.Request)
}

type RequestArchiveGame

type RequestArchiveGame struct {
	// In: path
	// Required: true
	Game string `json:"game"`
}

Requesting an existing game archive

swagger:parameters RequestArchiveGame

type RequestCard

type RequestCard struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: path
	// Required: true
	Card int64 `json:"card"`
}

Requesting an existing card

swagger:parameters RequestCard

type RequestCardImage

type RequestCardImage struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: path
	// Required: true
	Card string `json:"card"`
}

Requesting an image of existing card

swagger:parameters RequestCardImage

type RequestCollection

type RequestCollection struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
}

Requesting an existing collection

swagger:parameters RequestCollection

type RequestCollectionImage

type RequestCollectionImage struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
}

Requesting an image of existing collection

swagger:parameters RequestCollectionImage

type RequestCreateCard

type RequestCreateCard struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	Variables string `json:"variables"`
	// In: formData
	// Required: true
	Count int `json:"count"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to create a card

swagger:parameters RequestCreateCard

type RequestCreateCollection

type RequestCreateCollection struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to create a collection

swagger:parameters RequestCreateCollection

type RequestCreateDeck

type RequestCreateDeck struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to create a deck

swagger:parameters RequestCreateDeck

type RequestCreateGame

type RequestCreateGame struct {
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to create a game

swagger:parameters RequestCreateGame

type RequestDeck

type RequestDeck struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
}

Requesting an existing deck

swagger:parameters RequestDeck

type RequestDeckImage

type RequestDeckImage struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
}

Requesting an image of existing deck

swagger:parameters RequestDeckImage

type RequestDeleteCard

type RequestDeleteCard struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: path
	// Required: true
	Card string `json:"card"`
}

Request to delete a card

swagger:parameters RequestDeleteCard

type RequestDeleteCollection

type RequestDeleteCollection struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
}

Request to delete a collection

swagger:parameters RequestDeleteCollection

type RequestDeleteDeck

type RequestDeleteDeck struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
}

Request to delete a deck

swagger:parameters RequestDeleteDeck

type RequestDeleteGame

type RequestDeleteGame struct {
	// In: path
	// Required: true
	Game string `json:"game"`
}

Request to delete a game

swagger:parameters RequestDeleteGame

type RequestDuplicateGame

type RequestDuplicateGame struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: body
	// Required: true
	Body struct {
		// Required: true
		dto.DuplicateGameDTO
	}
}

Request to duplicate a game

swagger:parameters RequestDuplicateGame

type RequestGame

type RequestGame struct {
	// In: path
	// Required: true
	Game string `json:"game"`
}

Requesting an existing game

swagger:parameters RequestGame

type RequestGameGenerate

type RequestGameGenerate struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: body
	// Required: false
	Body struct {
		dto.GenerateGameDTO
	}
}

Request to start generating result objects

swagger:parameters RequestGameGenerate

type RequestGameImage

type RequestGameImage struct {
	// In: path
	// Required: true
	Game string `json:"game"`
}

Requesting an image of existing game

swagger:parameters RequestGameImage

type RequestImportGame

type RequestImportGame struct {
	// Specify a name for the imported game
	// In: formData
	// Required: false
	Name string `json:"name"`
	// Binary data of the imported file
	// In: formData
	// Required: true
	File []byte `json:"file"`
}

Creating game from archive

swagger:parameters RequestImportGame

type RequestListOfAllDecks

type RequestListOfAllDecks struct {
	// In: path
	// Required: true
	Game string `json:"game"`
}

Requesting a list of all decks in game

swagger:parameters RequestListOfAllDecks

type RequestListOfCard

type RequestListOfCard struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: query
	// Required: false
	Sort string `json:"sort"`
	// In: query
	// Required: false
	Search string `json:"search"`
}

Requesting a list of existing cards

swagger:parameters RequestListOfCard

type RequestListOfCollections

type RequestListOfCollections struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: query
	// Required: false
	Sort string `json:"sort"`
	// In: query
	// Required: false
	Search string `json:"search"`
}

Requesting a list of existing collections

swagger:parameters RequestListOfCollections

type RequestListOfDecks

type RequestListOfDecks struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: query
	// Required: false
	Sort string `json:"sort"`
	// In: query
	// Required: false
	Search string `json:"search"`
}

Requesting a list of existing decks

swagger:parameters RequestListOfDecks

type RequestListOfGames

type RequestListOfGames struct {
	// In: query
	// Required: false
	Sort string `json:"sort"`
	// In: query
	// Required: false
	Search string `json:"search"`
}

Requesting a list of existing games

swagger:parameters RequestListOfGames

type RequestQuit

type RequestQuit struct {
}

swagger:parameters RequestQuit

type RequestSettings

type RequestSettings struct {
}

swagger:parameters RequestSettings

type RequestStatus

type RequestStatus struct {
}

swagger:parameters RequestStatus

type RequestUpdateCard

type RequestUpdateCard struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: path
	// Required: true
	Card string `json:"card"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	Variables string `json:"variables"`
	// In: formData
	// Required: true
	Count int `json:"count"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to update a card

swagger:parameters RequestUpdateCard

type RequestUpdateCollection

type RequestUpdateCollection struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to update a collection

swagger:parameters RequestUpdateCollection

type RequestUpdateDeck

type RequestUpdateDeck struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: path
	// Required: true
	Collection string `json:"collection"`
	// In: path
	// Required: true
	Deck string `json:"deck"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to update a deck

swagger:parameters RequestUpdateDeck

type RequestUpdateGame

type RequestUpdateGame struct {
	// In: path
	// Required: true
	Game string `json:"game"`
	// In: formData
	// Required: true
	Name string `json:"name"`
	// In: formData
	// Required: true
	Description string `json:"description"`
	// In: formData
	// Required: false
	Image string `json:"image"`
	// In: formData
	// Required: false
	ImageFile []byte `json:"imageFile"`
}

Request to update a game

swagger:parameters RequestUpdateGame

type RequestUpdateSettings

type RequestUpdateSettings struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		dto.UpdateSettingsDTO
	}
}

Request to update a settings

swagger:parameters RequestUpdateSettings

type RequestVersion

type RequestVersion struct {
}

swagger:parameters RequestVersion

type ResponseCard

type ResponseCard struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.CardInfo `json:"data"`
	}
}

Card

swagger:response ResponseCard

type ResponseCardImage

type ResponseCardImage struct {
	// In: body
	Body []byte
}

Card image

swagger:response ResponseCardImage

type ResponseCollection

type ResponseCollection struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.CollectionInfo `json:"data"`
	}
}

Collection

swagger:response ResponseCollection

type ResponseCollectionImage

type ResponseCollectionImage struct {
	// In: body
	Body []byte
}

Collection image

swagger:response ResponseCollectionImage

type ResponseCreateCard

type ResponseCreateCard struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.CardInfo `json:"data"`
	}
}

Status of card creation

swagger:response ResponseCreateCard

type ResponseCreateCollection

type ResponseCreateCollection struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.CollectionInfo `json:"data"`
	}
}

Status of collection creation

swagger:response ResponseCreateCollection

type ResponseCreateDeck

type ResponseCreateDeck struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.DeckInfo `json:"data"`
	}
}

Status of deck creation

swagger:response ResponseCreateDeck

type ResponseCreateGame

type ResponseCreateGame struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.GameInfo `json:"data"`
	}
}

Status of game creation

swagger:response ResponseCreateGame

type ResponseDeck

type ResponseDeck struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.DeckInfo `json:"data"`
	}
}

Deck

swagger:response ResponseDeck

type ResponseDeckImage

type ResponseDeckImage struct {
	// In: body
	Body []byte
}

Deck image

swagger:response ResponseDeckImage

type ResponseDeleteCard

type ResponseDeleteCard struct {
}

Card deletion status

swagger:response ResponseDeleteCard

type ResponseDeleteCollection

type ResponseDeleteCollection struct {
}

Collection deletion status

swagger:response ResponseDeleteCollection

type ResponseDeleteDeck

type ResponseDeleteDeck struct {
}

Deck deletion status

swagger:response ResponseDeleteDeck

type ResponseDeleteGame

type ResponseDeleteGame struct {
}

Game deletion status

swagger:response ResponseDeleteGame

type ResponseDuplicateGame

type ResponseDuplicateGame struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.GameInfo `json:"data"`
	}
}

Status of game duplicate

swagger:response ResponseDuplicateGame

type ResponseGame

type ResponseGame struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.GameInfo `json:"data"`
	}
}

Game

swagger:response ResponseGame

type ResponseGameArchive

type ResponseGameArchive struct {
	// In: body
	Body []byte
}

Game archive

swagger:response ResponseGameArchive

type ResponseGameGenerate

type ResponseGameGenerate struct {
}

Generating game objects

swagger:response ResponseGameGenerate

type ResponseGameImage

type ResponseGameImage struct {
	// In: body
	Body []byte
}

Game image

swagger:response ResponseGameImage

type ResponseGameImport

type ResponseGameImport struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.GameInfo `json:"data"`
	}
}

Import game

swagger:response ResponseGameImport

type ResponseListOfAllDecks

type ResponseListOfAllDecks struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data []*entity.DeckInfo `json:"data"`
	}
}

List of decks

swagger:response ResponseListOfAllDecks

type ResponseListOfCard

type ResponseListOfCard struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data []*entity.CardInfo `json:"data"`
		// Required: true
		Meta *network.Meta `json:"meta"`
	}
}

List of cards

swagger:response ResponseListOfCard

type ResponseListOfCollections

type ResponseListOfCollections struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data []*entity.CollectionInfo `json:"data"`
		// Required: true
		Meta *network.Meta `json:"meta"`
	}
}

List of collections

swagger:response ResponseListOfCollections

type ResponseListOfDecks

type ResponseListOfDecks struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data []*entity.DeckInfo `json:"data"`
		// Required: true
		Meta *network.Meta `json:"meta"`
	}
}

List of decks

swagger:response ResponseListOfDecks

type ResponseListOfGames

type ResponseListOfGames struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data []*entity.GameInfo `json:"data"`
		// Required: true
		Meta *network.Meta `json:"meta"`
	}
}

List of games

swagger:response ResponseListOfGames

type ResponseQuit

type ResponseQuit struct {
}

Quit

swagger:response ResponseQuit

type ResponseSettings

type ResponseSettings struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.SettingInfo `json:"data"`
	}
}

Settings

swagger:response ResponseSettings

type ResponseStatus

type ResponseStatus struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.Status `json:"data"`
	}
}

Status

swagger:response ResponseStatus

type ResponseUpdateCard

type ResponseUpdateCard struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.CardInfo `json:"data"`
	}
}

Status of card update

swagger:response ResponseUpdateCard

type ResponseUpdateCollection

type ResponseUpdateCollection struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.CollectionInfo `json:"data"`
	}
}

Status of collection update

swagger:response ResponseUpdateCollection

type ResponseUpdateDeck

type ResponseUpdateDeck struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.DeckInfo `json:"data"`
	}
}

Status of deck update

swagger:response ResponseUpdateDeck

type ResponseUpdateGame

type ResponseUpdateGame struct {
	// In: body
	// Required: true
	Body struct {
		// Required: true
		Data entity.GameInfo `json:"data"`
	}
}

Status of game update

swagger:response ResponseUpdateGame

type ResponseUpdateSettings

type ResponseUpdateSettings struct {
	// In: body
	Body struct {
		// Required: true
		Data entity.SettingInfo `json:"data"`
	}
}

Settings

swagger:response ResponseUpdateSettings

type ResponseVersion

type ResponseVersion struct {
	// In: body
	Body struct {
		// Required: true
		Data string `json:"data"`
	}
}

Version

swagger:response ResponseVersion

type UnimplementedCardServer

type UnimplementedCardServer struct {
}

func (*UnimplementedCardServer) CreateHandler

func (s *UnimplementedCardServer) CreateHandler(w http.ResponseWriter, r *http.Request)

swagger:route POST /api/games/{game}/collections/{collection}/decks/{deck}/cards Cards RequestCreateCard

Create card

Allows you to create a new card

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCreateCard
  default: ResponseError

func (*UnimplementedCardServer) DeleteHandler

func (s *UnimplementedCardServer) DeleteHandler(w http.ResponseWriter, r *http.Request)

swagger:route DELETE /api/games/{game}/collections/{collection}/decks/{deck}/cards/{card} Cards RequestDeleteCard

Delete card

Allows you to delete an existing card

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDeleteCard
  default: ResponseError

func (*UnimplementedCardServer) ItemHandler

func (s *UnimplementedCardServer) ItemHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/collections/{collection}/decks/{deck}/cards/{card} Cards RequestCard

Get card

Get an existing card

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCard
  default: ResponseError

func (*UnimplementedCardServer) ListHandler

func (s *UnimplementedCardServer) ListHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/collections/{collection}/decks/{deck}/cards Cards RequestListOfCard

Get cards list

Get a list of existing cards Sort values: name, name_desc, created, created_desc

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseListOfCard
  default: ResponseError

func (*UnimplementedCardServer) UpdateHandler

func (s *UnimplementedCardServer) UpdateHandler(w http.ResponseWriter, r *http.Request)

swagger:route PATCH /api/games/{game}/collections/{collection}/decks/{deck}/cards/{card} Cards RequestUpdateCard

Update card

Allows you to update an existing card

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseUpdateCard
  default: ResponseError

type UnimplementedCollectionServer

type UnimplementedCollectionServer struct {
}

func (*UnimplementedCollectionServer) CreateHandler

swagger:route POST /api/games/{game}/collections Collections RequestCreateCollection

Create collection

Allows you to create a new collection

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCreateCollection
  default: ResponseError

func (*UnimplementedCollectionServer) DeleteHandler

swagger:route DELETE /api/games/{game}/collections/{collection} Collections RequestDeleteCollection

Delete collection

Allows you to delete an existing collection

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDeleteCollection
  default: ResponseError

func (*UnimplementedCollectionServer) ItemHandler

swagger:route GET /api/games/{game}/collections/{collection} Collections RequestCollection

Get collection

Get an existing collection

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCollection
  default: ResponseError

func (*UnimplementedCollectionServer) ListHandler

swagger:route GET /api/games/{game}/collections Collections RequestListOfCollections

Get collections list

Get a list of existing collections Sort values: name, name_desc, created, created_desc

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseListOfCollections
  default: ResponseError

func (*UnimplementedCollectionServer) UpdateHandler

swagger:route PATCH /api/games/{game}/collections/{collection} Collections RequestUpdateCollection

Update collection

Allows you to update an existing collection

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseUpdateCollection
  default: ResponseError

type UnimplementedDeckServer

type UnimplementedDeckServer struct {
}

func (*UnimplementedDeckServer) AllDecksHandler

func (s *UnimplementedDeckServer) AllDecksHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/decks Decks RequestListOfAllDecks

Get list of all decks in game

Get a list of all existing decks in game

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseListOfAllDecks
  default: ResponseError

func (*UnimplementedDeckServer) CreateHandler

func (s *UnimplementedDeckServer) CreateHandler(w http.ResponseWriter, r *http.Request)

swagger:route POST /api/games/{game}/collections/{collection}/decks Decks RequestCreateDeck

Create deck

Allows you to create a new deck

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCreateDeck
  default: ResponseError

func (*UnimplementedDeckServer) DeleteHandler

func (s *UnimplementedDeckServer) DeleteHandler(w http.ResponseWriter, r *http.Request)

swagger:route DELETE /api/games/{game}/collections/{collection}/decks/{deck} Decks RequestDeleteDeck

Delete deck

Allows you to delete an existing deck

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDeleteDeck
  default: ResponseError

func (*UnimplementedDeckServer) ItemHandler

func (s *UnimplementedDeckServer) ItemHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/collections/{collection}/decks/{deck} Decks RequestDeck

Get deck

Get an existing deck

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDeck
  default: ResponseError

func (*UnimplementedDeckServer) ListHandler

func (s *UnimplementedDeckServer) ListHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/collections/{collection}/decks Decks RequestListOfDecks

Get decks list

Get a list of existing decks Sort values: name, name_desc, created, created_desc

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseListOfDecks
  default: ResponseError

func (*UnimplementedDeckServer) UpdateHandler

func (s *UnimplementedDeckServer) UpdateHandler(w http.ResponseWriter, r *http.Request)

swagger:route PATCH /api/games/{game}/collections/{collection}/decks/{deck} Decks RequestUpdateDeck

Update deck

Allows you to update an existing deck

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseUpdateDeck
  default: ResponseError

type UnimplementedGameServer

type UnimplementedGameServer struct {
}

func (*UnimplementedGameServer) CreateHandler

func (s *UnimplementedGameServer) CreateHandler(w http.ResponseWriter, r *http.Request)

swagger:route POST /api/games Games RequestCreateGame

Create game

Allows you to create a new game

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseCreateGame
  default: ResponseError

func (*UnimplementedGameServer) DeleteHandler

func (s *UnimplementedGameServer) DeleteHandler(w http.ResponseWriter, r *http.Request)

swagger:route DELETE /api/games/{game} Games RequestDeleteGame

Delete game

Allows you to delete an existing game

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDeleteGame
  default: ResponseError

func (*UnimplementedGameServer) DuplicateHandler

func (s *UnimplementedGameServer) DuplicateHandler(w http.ResponseWriter, r *http.Request)

swagger:route POST /api/games/{game}/duplicate Games RequestDuplicateGame

Duplicate game

Allows you to create a copy of an existing game

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseDuplicateGame
  default: ResponseError

func (*UnimplementedGameServer) ExportHandler

func (s *UnimplementedGameServer) ExportHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/export Games RequestArchiveGame

Export game to archive

Get an existing game archive

Consumes:
- application/json

Produces:
- application/json
- application/zip

Schemes: http

Responses:
  200: ResponseGameArchive
  default: ResponseError

func (*UnimplementedGameServer) ImportHandler

func (s *UnimplementedGameServer) ImportHandler(w http.ResponseWriter, r *http.Request)

swagger:route POST /api/games/import Games RequestImportGame

Import game from archive

Creat game from archive

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseGameImport
  default: ResponseError

func (*UnimplementedGameServer) ItemHandler

func (s *UnimplementedGameServer) ItemHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game} Games RequestGame

Get game

Get an existing game

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseGame
  default: ResponseError

func (*UnimplementedGameServer) ListHandler

func (s *UnimplementedGameServer) ListHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games Games RequestListOfGames

Get games list

Get a list of existing games Sort values: name, name_desc, created, created_desc

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseListOfGames
  default: ResponseError

func (*UnimplementedGameServer) UpdateHandler

func (s *UnimplementedGameServer) UpdateHandler(w http.ResponseWriter, r *http.Request)

swagger:route PATCH /api/games/{game} Games RequestUpdateGame

Update game

Allows you to update an existing game

Consumes:
- multipart/form-data

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseUpdateGame
  default: ResponseError

type UnimplementedGeneratorServer

type UnimplementedGeneratorServer struct {
}

func (*UnimplementedGeneratorServer) GameHandler

swagger:route POST /api/games/{game}/generate Generator RequestGameGenerate

Start generating items for TTS

Allow to run the background process of generating images and json item for the game

Consumes:
- application/json

Produces:
- application/json

Schemes: http

Responses:
  200: ResponseGameGenerate
  default: ResponseError

type UnimplementedImageServer

type UnimplementedImageServer struct {
}

func (*UnimplementedImageServer) CardHandler

swagger:route GET /api/games/{game}/collections/{collection}/decks/{deck}/cards/{card}/image Images RequestCardImage

Get card image

Get an image of existing card

Consumes:
- application/json

Produces:
- application/json
- image/png
- image/jpeg
- image/gif

Schemes: http

Responses:
  200: ResponseCardImage
  default: ResponseError

func (*UnimplementedImageServer) CollectionHandler

func (s *UnimplementedImageServer) CollectionHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/games/{game}/collections/{collection}/image Images RequestCollectionImage

Get collection image

Get an image of existing collection

Consumes:
- application/json

Produces:
- application/json
- image/png
- image/jpeg
- image/gif

Schemes: http

Responses:
  200: ResponseCollectionImage
  default: ResponseError

func (*UnimplementedImageServer) DeckHandler

swagger:route GET /api/games/{game}/collections/{collection}/decks/{deck}/image Images RequestDeckImage

Get deck image

Get an image of existing deck

Consumes:
- application/json

Produces:
- application/json
- image/png
- image/jpeg
- image/gif

Schemes: http

Responses:
  200: ResponseDeckImage
  default: ResponseError

func (*UnimplementedImageServer) GameHandler

swagger:route GET /api/games/{game}/image Images RequestGameImage

Get game image

Get an image of existing game

Consumes:
- application/json

Produces:
- application/json
- image/png
- image/jpeg
- image/gif

Schemes: http

Responses:
  200: ResponseGameImage
  default: ResponseError

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

func (*UnimplementedSystemServer) GetSettingsHandler

func (s *UnimplementedSystemServer) GetSettingsHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/system/settings System RequestSettings

Get settings

Get default or changed settings

Consumes:
- application/json

 Produces:
 - application/json

 Schemes: http

 Responses:
   200: ResponseSettings
   default: ResponseError

func (*UnimplementedSystemServer) GetVersionHandler

func (s *UnimplementedSystemServer) GetVersionHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/system/version System RequestVersion

Get app version

API to get version of application

Consumes:
- application/json

 Produces:
 - application/json

 Schemes: http

 Responses:
   200: ResponseVersion
   default: ResponseError

func (*UnimplementedSystemServer) QuitHandler

swagger:route DELETE /api/system/quit System RequestQuit

Close application

Close app on back side

Consumes:
- application/json

 Produces:
 - application/json

 Schemes: http

 Responses:
   200: ResponseQuit
   default: ResponseError

func (*UnimplementedSystemServer) StatusHandler

func (s *UnimplementedSystemServer) StatusHandler(w http.ResponseWriter, r *http.Request)

swagger:route GET /api/system/status System RequestStatus

Get progress status

API to get status of process

Consumes:
- application/json

 Produces:
 - application/json

 Schemes: http

 Responses:
   200: ResponseStatus
   default: ResponseError

func (*UnimplementedSystemServer) UpdateSettingsHandler

func (s *UnimplementedSystemServer) UpdateSettingsHandler(w http.ResponseWriter, r *http.Request)

swagger:route PATCH /api/system/settings System RequestUpdateSettings

Update settings

API to update settings

Consumes:
- application/json

 Produces:
 - application/json

 Schemes: http

 Responses:
   200: ResponseUpdateSettings
   default: ResponseError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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