Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger: fix swagger comment for Create DID API #243

Open
arnabghose997 opened this issue Nov 15, 2024 · 0 comments · May be fixed by #245
Open

swagger: fix swagger comment for Create DID API #243

arnabghose997 opened this issue Nov 15, 2024 · 0 comments · May be fixed by #245
Assignees

Comments

@arnabghose997
Copy link
Collaborator

The Create DID handler function doesn't have a correct Swagger comment defined on top of it.

// APICreateDID will create new DID
func (s *Server) APICreateDID(req *ensweb.Request) *ensweb.Result {

For reference, refer Smart Contract generation API

// SmartContract godoc
// @Summary Generate Smart Contract
// @Description This API will Generate smart contract Token
// @Tags Smart Contract
// @Accept mpfd
// @Produce mpfd
// @Param did formData string true "DID"
// @Param binaryCodePath formData file true "location of binary code hash"
// @Param rawCodePath formData file true "location of raw code hash"
// @Param schemaFilePath formData file true "location of schema code hash"
// @Success 200 {object} model.BasicResponse
// @Router /api/generate-smart-contract [post]
func (s *Server) APIGenerateSmartContract(req *ensweb.Request) *ensweb.Result {

@ashi31 ashi31 linked a pull request Nov 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants