Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddSpotMeta = endpointdef.New( "addSpot", "/spots", http.MethodPost, http.StatusCreated, )
AddSpotMeta holds the endpoint information
Functions ¶
This section is empty.
Types ¶
type AddSpotRequest ¶
AddSpotRequest is the request structure
func (AddSpotRequest) Validate ¶
func (request AddSpotRequest) Validate() *errors.ODSError
type AddSpotResponse ¶
AddSpotResponse holds the response structure
func AddSpot ¶
func AddSpot(ctx context.Context, request AddSpotRequest, odsDB db.DB) (AddSpotResponse, *errors.ODSError)
AddSpot adds a spot to your list
Click to show internal directories.
Click to hide internal directories.