edgexfoundry/go-mod-core-contracts

Add new API route constants with path params for Echo

Closed this issue ยท 0 comments

๐Ÿš€ Feature Request

Relevant Package [REQUIRED]

This feature request is for all of the EdgeX micro services have a dependency on it.

Description [REQUIRED]

The original gorilla/mux package uses the following format to define the URL path with parameters:

/api/v3/device/name/{name}

However, the Echo package(the replacement of gorilla/mux) uses a different format as below:

/api/v3/device/name/:name

Describe the solution you'd like

New constants are added in echo_api_constants.go to define the new API route constants with URL path parameters.