Skip to content

🔮 Transforms Harvest API HTML documentation pages into a valid Swagger / OpenAPI 3.0 specification

License

Notifications You must be signed in to change notification settings

jolicode/harvest-openapi-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🔮 Transforms Harvest API HTML documentation pages into a valid Swagger / OpenAPI 3.0 specification

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published