httphandlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPController

type HTTPController struct {
	ChainID             uint64
	VehicleContractAddr common.Address
	// contains filtered or unexported fields
}

HTTPController handles VIN VC-related http requests.

func NewHTTPController

func NewHTTPController(service *creditrepo.Repository, settings *config.Settings) *HTTPController

NewHTTPController creates a new http VCController.

func (*HTTPController) GetLicenseAssetUsageReport added in v0.0.5

func (v *HTTPController) GetLicenseAssetUsageReport(fiberCtx *fiber.Ctx) error

@Summary Get License Asset Usage Report @Description Get detailed usage report for a specific license and asset @Tags Credits @Accept json @Produce json @Param licenseId path string true "License ID" @Param assetDID path string true "Asset DID" @Param fromDate query string true "From Date" @Param toDate query string false "To Date" @Success 200 {object} creditrepo.LicenseAssetUsageReport @Security BearerAuth @Router /v1/credits/{licenseId}/assets/{assetId}/usage [get]

func (*HTTPController) GetLicenseUsageReport added in v0.0.5

func (v *HTTPController) GetLicenseUsageReport(fiberCtx *fiber.Ctx) error

@Summary Get License Usage Report @Description Get usage report for a license across all assets @Tags Credits @Accept json @Produce json @Param licenseId path string true "License ID" @Param fromDate query string true "From Date" @Param toDate query string false "To Date" @Success 200 {object} creditrepo.LicenseUsageReport @Security BearerAuth @Router /v1/credits/{licenseId}/usage [get]

Jump to

Keyboard shortcuts

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