package
0.0.0-20200708034116-cfdaeaf6dd48
Repository: https://github.com/hachimanhiki/zkrpapi.git
Documentation: pkg.go.dev

# Functions

DelEvent godoc @Tags Event @Summary Delete an event @Accept json @Produce json @Param eventName query string true "event delete by eventName" @Success 200 {object} selftype.JSONResponse @Failure 400 {object} selftype.JSONResponse @Failure 404 {object} selftype.JSONResponse @Router /event/{eventName} [delete].
GetEvent godoc @Tags Event @Summary Get an event @Description Get an event from string @Accept json @Produce json @Param eventName query string true "event search by eventName" @Success 200 {object} selftype.EventResponse @Failure 400 {object} selftype.JSONResponse @Router /event/{eventName} [get].
No description provided by the author
No description provided by the author
GetQRcode godoc @Tags Event @Summary Get an qrcode @Description Return a qrcode which encodes event info @Accept json @Produce json @Param eventName query string true "event search by eventName" @Success 200 {object} selftype.EventResponse @Failure 400 {object} selftype.JSONResponse @Router /event_qr/{eventName} [get].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NotFound godoc.
PostEvent godoc @Tags Event @Summary Add/Update event @Description null @Accept application/json @Produce application/json @Param eventName body string true "EventName" @Param deagnosis body []selftype.Deagnosis true "[]Deagnosis" @Param procedure body []selftype.Procedure true "[]Procedure" @Success 200 {object} selftype.EventResponse @Failure 400 {object} selftype.JSONResponse @Router /event [post].
PostMerkleTreeRoot godoc @Tags MerkleTree @Summary Add/Update user's merkleTreeRoot @Description Return user's merkleTreeRoot @Accept application/json @Produce application/json @Param medicineUsages body []selftype.MedicineUsage true "[]MedicineUsage" @Param userName body string true "userName" @Success 200 {object} selftype.JSONResponse @Failure 400 {object} selftype.JSONResponse @Router /merkletree [post].
PostVerify godoc @Tags ZKRP @Summary Verify ZKRP @Description Verify a prove of ZKRP @Accept application/json @Produce application/json @Param provePackages body []selftype.ProvePackage true "[]ProvePackage" @Param userName body string true "userName" @Success 200 {object} selftype.JSONResponse @Failure 400 {object} selftype.JSONResponse @Router /verify [post].
VerifyMerkleTreeRoot godoc @Tags MerkleTree @Summary Verify merkle tree root @Description Return result of verification @Accept json @Produce json @Param medicineUsages body []selftype.MedicineUsage true "[]MedicineUsage" @Param userName body string true "userName" @Param hashArray body []string true "[]hashArray" @Success 200 {object} selftype.EventResponse @Failure 400 {object} selftype.JSONResponse @Router /merkletree [get].