api

package
v0.0.0-...-7c6e881 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAPIRoute

func DeleteAPIRoute(c *gin.Context)

DeleteAPIRoute the registered values, if found, 404 otherwise

func DynamicRouting

func DynamicRouting(c *gin.Context)

DynamicRouting is a custom routing on top of gin's routing system. This is necessary duo a limitation on Gin and dynamic routes and wildcard the app has only one dynamic route that handles all requests https://github.com/gin-gonic/gin/issues/1301

func FindAPIRoute

func FindAPIRoute(targetRoute string, c *gin.Context)

FindAPIRoute returns the registered values, if found, 404 otherwise

func RegisterAPIRoute

func RegisterAPIRoute(c *gin.Context)

RegisterAPIRoute parse the payload and stores a new route This method uses gin.Context to get the payload and process it

func ShowAPIInfo

func ShowAPIInfo(c *gin.Context)

ShowAPIInfo returns all routes as a json

Types

This section is empty.

Jump to

Keyboard shortcuts

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