Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct{}
API shortlink API
func (API) Get ¶
Get /api/shortlink/get @Summary Get short link @Description Get short link. Rate limit: 1,000 per hour @Tags Short-link @Accept json @Produce json,xml @Param "" body Request true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 429 {object} data.APIResponse @Failure 500 {object} data.APIResponse @Router /api/shortlink/get [post]
func (API) RedirectShortLink ¶
RedirectShortLink /s/:id @Summary Redrect to short link @Description Redrect to short link @Tags Short-link @Accept json @Produce json,xml @Param id path int true "Short Link ID" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 500 {object} data.APIResponse @Router /s/{id} [post]