Skip to content

Returns Sample Values #2

@JohannesMayerConda

Description

@JohannesMayerConda

I wanted to try this out...

Took me a while to get it running, here my quickfixes:

  • Give absolute path in SwaggerServiceGenerator.js to SwaggerService_template.hbs (might be a macOS issue)
  • Give absolute path in abi2api/index.js to swagger-codegen-cli.jar (might be a macOS issue)
  • abi2api.js fixed by changing the lib path to: parser.process(path.basename(contract_path, '.json') + "/" + path.basename(contract_path, '.json') + "ContractLib" + "/" + path.basename(contract_path, '.json') + "Controller.js") -> this totally is a bug or compatibility issue, right? It was "contract_lib" hardcoded and that directory didn't exist

Now I have my api under http://localhost:8080/docs but it seems to return just example values every time. Also the GET requests do not add parameters as I would expect them to (also doesn't work if I try it manually). In code the parameter seem to never reach the method (empty object)

Just wanted to ask if this project is incomplete from where I now stand or if there might be other things to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions