Documentation ¶
Index ¶
- func DecodeVIN(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionAll(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionAutocomplete(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionByID(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionByMMY(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionSearch(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionV2All(m mediator.Mediator) fiber.Handler
- func GetDeviceDefinitionV2ByID(m mediator.Mediator) fiber.Handler
- func GetDeviceIntegrationsByID(m mediator.Mediator) fiber.Handler
- func GetDeviceMakes(m mediator.Mediator) fiber.Handler
- func GetDeviceTypes(m mediator.Mediator) fiber.Handler
- func GetDeviceTypesByID(m mediator.Mediator) fiber.Handler
- func GetIntegrationByID(m mediator.Mediator) fiber.Handler
- func GetIntegrations(m mediator.Mediator) fiber.Handler
- func GetSmartcarManufacturers() fiber.Handler
- type DecodeVINRequest
- type DecodeVINResponse
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. TODO return polygon transaction if new DD" @Failure 404 @Failure 500 @Security BearerAuth @Router /device-definitions/decode-vin [post]
func GetDeviceDefinitionAll ¶
GetDeviceDefinitionAll godoc @Summary gets all device definitions by Makes, models, and years @ID GetDeviceDefinitionAll @Description gets a device definition @Tags device-definitions @Accept json @Produce json @Success 200 @Failure 500 @Router /device-definitions/all [get]
func GetDeviceDefinitionAutocomplete ¶ added in v1.2.31
GetDeviceDefinitionAutocomplete godoc @Summary gets device definitions autocomplete @ID GetDeviceDefinitionAutocomplete @Description gets a device definition Autocomplete @Tags device-definitions @Param query query string true "query filter" @Accept json @Produce json @Success 200 {object} queries.GetAllDeviceDefinitionByAutocompleteQueryResult @Failure 500 @Router /device-definitions/autocomplete [get]
func GetDeviceDefinitionByID ¶
GetDeviceDefinitionByID godoc @Summary gets a device definition @ID GetDeviceDefinitionByID @Description gets a device definition @Tags device-definitions @Param id path string true "device definition id" @Produce json @Success 200 {object} models.GetDeviceDefinitionQueryResult @Failure 404 @Failure 500 @Router /device-definitions/{id} [get]
func GetDeviceDefinitionByMMY ¶
GetDeviceDefinitionByMMY godoc @Summary gets a specific device definition by make model and year. @ID GetDeviceDefinitionByMMY @Description gets a specific device definition by make model and year. @Tags device-definitions @Param make query string true "make" @Param model query string true "model" @Param year query number true "year" @Produce json @Success 200 {object} models.GetDeviceDefinitionQueryResult @Failure 404 @Failure 500 @Router /device-definitions [get]
func GetDeviceDefinitionSearch ¶ added in v1.2.31
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 GetDeviceDefinitionV2All ¶ added in v1.1.1
GetDeviceDefinitionV2All godoc @Summary gets all device definitions by Makes, models, and years @ID GetDeviceDefinitionV2All @Description gets a device definition @Param make path string true "device make name" @Tags device-definitions @Accept json @Produce json @Success 200 @Failure 500 @Router /v2/device-definitions/{make}/all [get]
func GetDeviceDefinitionV2ByID ¶ added in v1.1.1
GetDeviceDefinitionV2ByID godoc @Summary gets a device definition @ID GetDeviceDefinitionV2ByID @Description gets a device definition @Tags device-definitions @Param make path string true "device make name" @Param id path string true "device definition id" @Produce json @Success 200 {object} models.GetDeviceDefinitionQueryResult @Failure 404 @Failure 500 @Router /v2/device-definitions/{make}/{id} [get]
func GetDeviceIntegrationsByID ¶
GetDeviceIntegrationsByID godoc @Summary gets all the available integrations for a device definition. @ID GetDeviceIntegrationsByID @Description gets all the available integrations for a device definition. Includes the capabilities of the device with the integration @Tags device-definitions @Param id path string true "device definition id" @Produce json @Success 200 @Failure 404 @Failure 500 @Router /device-definitions/{id}/integrations [get]
func GetDeviceMakes ¶ added in v0.6.7
GetDeviceMakes godoc @Summary gets all device makes @ID GetDeviceMakes @Description gets all device makes @Tags device-definitions @Produce json @Success 200 {object} grpc.GetDeviceMakeResponse @Failure 500 @Router /device-makes [get]
func GetDeviceTypes ¶ added in v1.0.37
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
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
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 ¶
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 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]
Types ¶
type DecodeVINRequest ¶ added in v1.2.47
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"` // old ksuid based device def id LegacyID string `json:"legacyId"` // 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"` }