Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.24 KB

README.md

File metadata and controls

57 lines (38 loc) · 2.24 KB

Harvestapp swagger generator

Extracts documentation from the documentation website and generates an OpenAPI 3.0 file that can be used to further generate a client. You can see for example the harvest-php-api library, or the Swagger editor loaded with this OpenApi file.

Usage

$ composer install
$ ./bin/extractor generate

Then check the generated directory, it should contain an OpenAPI 3.0 valid file named harvest-openapi.yaml.

I just need the OpenAPI file

You can get the generated file here: https://raw.githubusercontent.com/jolicode/harvest-openapi-generator/master/generated/harvest-openapi.yaml

What can I do with this OpenAPI spec?

There are many tools to use an OpenAPI / Swagger specification:

  • API documentation generation
  • API client SDK generation, in many languages,
  • etc.

Please check out the Swagger website, which lists many useful tools and integrations.

Troubleshooting

This extractor/generator uses several nasty tricks to extract Harvest API properties... the process is not bulletproof and may break in case of documentation change. Should you find a bug, incompleteness or problem with the generated Swagger specification, please do not hesitate to open an issue and share it with us.

If the documentation is incomplete, you may want to override a definition. See the JoliCode\Extractor\Dumper\Dumper:dump() method.

Further documentation

You can see the current and past versions using one of the following:

And, finally, some contribution instructions.

License

This library is licensed under the MIT License - see the LICENSE file for details.