rel

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(c echo.Context) error

@Title user relations @Summary relation actions @Description @Tags Relation @Accept json @Produce json @Param action query string true "which action to apply, accept [follow, unfollow, block, unblock, mute, unmute]" @Param whom path string true "whose uname you want to follow" @Success 200 "OK - following successfully" @Failure 400 "Fail - invalid action type" @Failure 500 "Fail - internal error" @Router /api/rel/action/{whom} [put] @Security ApiKeyAuth

func GetContent

func GetContent(c echo.Context) error

@Title user relation content @Summary get all relation users for one type @Description @Tags Relation @Accept json @Produce json @Param type path string true "relation content type to apply, accept [following, follower, blocked, muted]" @Success 200 "OK - got following successfully" @Failure 400 "Fail - invalid relation content type" @Failure 500 "Fail - internal error" @Router /api/rel/content/{type} [get] @Security ApiKeyAuth

Types

This section is empty.

Jump to

Keyboard shortcuts

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