Documentation ¶
Index ¶
- func CustomerModel(ctx context.Context, customer *customerdb.Customer) *v1.Customer
- func DeleteCustomerEndpoint(r *app.Router)
- func ExtendedSearchEndpoint(grp *app.Router)
- func FuzzySearchEndpoint(grp *app.Router)
- func GetByIDEndpoint(grp *app.Router)
- func ListSourcesEndpoint(r *app.Router)
- func Setup(a *app.App, grp *echo.Group)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomerModel ¶
CustomerModel converts a database customer record to it's API representation.
func DeleteCustomerEndpoint ¶
func ExtendedSearchEndpoint ¶
ExtendedSearchEndpoint searches for one or more customers that match a given criteria.
WARNING: this endpoint gives direct FindMany access to the mongodb collection! Make sure users are properly authenticated!
POST /api/v1/customer/search.
func FuzzySearchEndpoint ¶
FuzzySearchEndpoint allows searching for customers using a double metaphone driven search on the customers name. trunk-ignore(golangci-lint/gocognit)
func GetByIDEndpoint ¶
GetByIDEndpoint returns a JSON version of the customer with the given :source/:id.
GET /api/customer/v1/:source/:id.
func ListSourcesEndpoint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.