Skip to content

Commit

Permalink
Merge pull request #16 from jolicode/feature/openapi-3
Browse files Browse the repository at this point in the history
Switch to openapi 3 + extract examples from the documentation
  • Loading branch information
xavierlacot authored Jan 25, 2021
2 parents 767c06c + 2082bea commit 37c8857
Show file tree
Hide file tree
Showing 4 changed files with 10,050 additions and 5,318 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Harvestapp swagger generator

Extracts documentation from the [documentation website](https://help.getharvest.com/api-v2/)
and generates a swagger.yaml file (OpenAPI 2.0).
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](https://github.com/jolicode/harvest-php-api), or [the Swagger editor loaded with this OpenApi file](https://editor.swagger.io/?url=https://raw.githubusercontent.com/jolicode/harvest-openapi-generator/master/generated/harvest-openapi.yaml).

## Usage

Expand All @@ -10,7 +10,7 @@ $ composer install
$ ./bin/extractor generate
```

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

## I just need the OpenAPI file
Expand Down
Loading

0 comments on commit 37c8857

Please sign in to comment.