handlers

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeVIN added in v1.2.47

DecodeVIN godoc @Summary returns device definition id corresponding to a given vin @ID DecodeVIN @Description decode a vin @Tags device-definitions @Produce json @Accept json @Param decodeRequest body DecodeVINRequest true "Decode VIN request" @Success 200 {object} DecodeVINResponse "Response with definition ID. @Failure 404 @Failure 500 @Security BearerAuth @Router /device-definitions/decode-vin [post]

func GetCompatibilityR1Sheet added in v1.2.56

func GetCompatibilityR1Sheet(m mediator.Mediator) fiber.Handler

GetCompatibilityR1Sheet godoc @Summary gets r1 MMY compatibility google sheet in JSON form @ID GetCompatibilityR1Sheet @Description gets r1 MMY compatibility google sheet in JSON form. returns an array of below objects @Tags device-definitions @Produce json @Success 200 {object} queries.CompatibilitySheetRow @Failure 500 @Router /compatibility/r1-sheet [get]

func GetDeviceDefinitionByID

func GetDeviceDefinitionByID(m mediator.Mediator) fiber.Handler

GetDeviceDefinitionByID godoc @Summary gets a vehicle template from the definitions catalog. Only supports mmy style id's eg. ford_escape_2025 @ID GetDeviceDefinitionByID @Description gets a vehicle template: the model-year plus every trim it shipped in. This replaced the flat on-chain device definition; the response now carries typed `attributes` and a `trims` array instead of `metadata.device_attributes`. @Tags device-definitions @Param id path string true "mmy definition_id eg. ford_escape_2020" @Produce json @Success 200 {object} models.Template @Failure 404 @Failure 400 @Failure 500 @Router /device-definitions/{id} [get]

func GetDeviceDefinitionSearch added in v1.2.31

func GetDeviceDefinitionSearch(m mediator.Mediator) fiber.Handler

GetDeviceDefinitionSearch godoc @Summary gets device definitions by search filter @ID GetDeviceDefinitionSearch @Description gets a device definition by search filter @Tags device-definitions @Param query query string true "query filter" @Param makeSlug query string false "make Slug" @Param modelSlug query string false "model Slug" @Param year query number false "year" @Param page query number false "page" @Param pageSize query number false "pageSize" @Accept json @Produce json @Success 200 {object} queries.GetAllDeviceDefinitionBySearchQueryResult @Failure 500 @Router /device-definitions/search [get]

func GetDeviceTypes added in v1.0.37

func GetDeviceTypes(m mediator.Mediator) fiber.Handler

GetDeviceTypes godoc @Summary gets a device type. @ID GetDeviceTypes @Description gets a devices type @Tags device-definitions @Produce json @Success 200 @Failure 500 @Router /device-types [get]

func GetDeviceTypesByID added in v0.2.0

func GetDeviceTypesByID(m mediator.Mediator) fiber.Handler

GetDeviceTypesByID godoc @Summary gets a device type. @ID GetDeviceTypesByID @Description gets a devices type with attributes @Tags device-definitions @Param id path string true "device type id" @Produce json @Success 200 @Failure 404 @Failure 500 @Router /device-types/{id} [get]

func GetIntegrationByID added in v0.1.26

func GetIntegrationByID(m mediator.Mediator) fiber.Handler

GetIntegrationByID godoc @Summary gets integration by id. @ID GetIntegrationByID @Description gets integration by id. @Tags device-definitions @Accept json @Produce json @Success 200 @Failure 404 @Failure 500 @Router /integrations/{id} [get]

func GetIntegrations

func GetIntegrations(m mediator.Mediator) fiber.Handler

GetIntegrations godoc @Summary gets list of integrations we have defined. @ID GetIntegrations @Description gets list of integrations we have defined. @Tags device-definitions @Produce json @Success 200 @Failure 404 @Failure 500 @Router /integrations [get]

func GetR1CompatibilitySearch added in v1.2.55

func GetR1CompatibilitySearch(m mediator.Mediator) fiber.Handler

GetR1CompatibilitySearch godoc @Summary gets r1 MMY compatibility by search filter @ID GetR1CompatibilitySearch @Description gets r1 compatibility search by filter @Tags device-definitions @Param query query string true "query filter" @Param page query number false "page" @Param pageSize query number false "pageSize" @Accept json @Produce json @Success 200 {object} queries.GetR1CompatibilitySearchQueryResult @Failure 500 @Router /device-definitions/search-r1 [get]

func GetSmartcarManufacturers added in v1.2.37

func GetSmartcarManufacturers() fiber.Handler

GetSmartcarManufacturers godoc @Summary gets all supported manufacturers for the smartcar external integration @ID GetSmartcarManufacturers @Description gets manufacturers supported by smartcar @Tags device-definitions @Produce json @Success 200 @Failure 500 @Router /manufacturers/integrations/smartcar [get]

func GetVINProfile added in v1.6.3

func GetVINProfile(m mediator.Mediator) fiber.Handler

GetVINProfile godoc @Summary gets any raw profile info we have on previously decoded VINs. USA Only. @ID GetVINProfile @Description gets VIN profile if we have it. @Tags device-definitions @Param vin path string true "17 character usa based VIN eg. WBA12345678901234" @Produce json @Success 200 {object} map[]string{} @Failure 404 @Failure 400 @Failure 500 @Security BearerAuth @Router /vin-profile/{vin} [get]

Types

type DecodeVINRequest added in v1.2.47

type DecodeVINRequest struct {
	VIN string `json:"vin"`
	// 3 letter ISO
	CountryCode string `json:"countryCode"`
}

type DecodeVINResponse added in v1.2.47

type DecodeVINResponse struct {
	// new name slug based id, can use this to query identity-api
	DeviceDefinitionID string `json:"deviceDefinitionId"`
	// if a new device definition was created, the tableland transaction hash from the insert statement. Check this has completed before querying the ID
	NewTransactionHash string `json:"newTransactionHash"`
}

Jump to

Keyboard shortcuts

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