package
0.0.0-20230621192203-518f8136e428
Repository: https://github.com/jelaniharris/fetchreceiptprocessor.git
Documentation: pkg.go.dev

# Functions

CreateReceipt godoc @Description Create a receipt and add it to our memory array of receipts.
GetReceipt godoc @Description Get the receipt by id @Summary Get A Receipt @Param id path string true "get receipt by id" @Produce application/json @Tags reciepts @Success 200 {object} models.Receipt{} "success" @Failure 404 {object} ErrorMessage @Router /receipts/{id} [get].
GetReceipt godoc @Description Returns the points awarded for the receipt @Summary Calculate Receipt Points @Param id path string true "The ID of the receipt" @Produce application/json @Tags reciepts @Success 201 {object} ReceiptPointsResponse "The number of points awarded" @Failure 404 {object} ErrorMessage "No receipt found for that id" @Router /receipts/{id}/points [get].
GetReceipts godoc @Description Get all of the receipts, no limit, no pagination @Summary Get All Receipts @Produce application/json @Tags reciepts @Success 200 {array} []models.Receipt{} @Router /receipts [get].

# Structs

@Description Receipt processed response with id.
Error Message Info @Description Error Message Information.
@Description Receipt points awarded response with points.