|
1 |
| -# api-clients-automation |
| 1 | +<div align="center"> |
2 | 2 |
|
3 |
| -**Make sure to have Docker installed so you don't have to install the tooling for every API clients.** |
| 3 | +# API Clients Automation |
4 | 4 |
|
5 |
| -## Setup repository tooling |
| 5 | +The Algolia API clients are generated from [OpenAPI specs](https://swagger.io/specification/), leveraging the open-source [openapi-generator](https://openapi-generator.tech/) tool. |
| 6 | + |
| 7 | +[](https://app.netlify.com/sites/api-clients-automation/deploys) [](./LICENSE) |
| 8 | + |
| 9 | +<p align="center"> |
| 10 | + <strong> |
| 11 | + <a href="https://api-clients-automation.netlify.app/">API clients automation documentation</a> • |
| 12 | + <a href="https://www.algolia.com/doc/">Algolia documentation</a> |
| 13 | + </strong> |
| 14 | +</p> |
| 15 | + |
| 16 | +</div> |
| 17 | + |
| 18 | +**Migration note from current API clients** |
| 19 | + |
| 20 | +> In July 2022, we released an alpha version generated API clients for the JavaScript, Java and PHP languages. If you are using the latest stable of those clients and looking to upgrade, read the [migration guide](https://api-clients-automation.netlify.app/docs/clients/migration-guides/). You can still browse the documentation of the stable clients on [the Algolia documentation](https://www.algolia.com/doc/). |
| 21 | +
|
| 22 | +## 💡 Getting Started with the clients |
| 23 | + |
| 24 | +You can read `getting started` guides and how to use the API clients on [our documentation](https://api-clients-automation.netlify.app/docs/clients/installation). |
| 25 | + |
| 26 | +## ✨ Contributing |
| 27 | + |
| 28 | +> Looking to add a new client, or fix a bug? Make sure to take a look at [our contribution guides](https://api-clients-automation.netlify.app/docs/contributing/introduction). |
| 29 | +
|
| 30 | +### Setup repository tooling |
6 | 31 |
|
7 | 32 | ```bash
|
8 | 33 | nvm use && yarn
|
9 | 34 | ```
|
10 | 35 |
|
11 |
| -## Setup dev environment |
| 36 | +### Setup dev environment |
| 37 | + |
| 38 | +> **Make sure to have Docker installed so you don't have to install the tooling for every API clients.** |
12 | 39 |
|
13 | 40 | ```bash
|
14 | 41 | yarn docker:setup
|
15 | 42 | ```
|
16 | 43 |
|
17 | 44 | [Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/setup-repository)
|
18 | 45 |
|
19 |
| -## Contributing |
| 46 | +### CLI |
20 | 47 |
|
21 | 48 | You can make changes locally and run commands through the docker container.
|
22 | 49 |
|
23 | 50 | [Specs CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/specs-commands) • [Clients CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/clients-commands) • [CTS CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/cts-commands)
|
24 | 51 |
|
25 |
| -### Build and validate specs |
26 |
| - |
27 |
| -#### Usage |
| 52 | +#### Build and validate specs |
28 | 53 |
|
29 | 54 | ```bash
|
30 | 55 | yarn docker build specs <client | all>
|
31 | 56 | ```
|
32 | 57 |
|
33 | 58 | [Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-client)
|
34 | 59 |
|
35 |
| -### Generate clients based on the [`specs`](./specs/) |
36 |
| - |
37 |
| -#### Usage |
| 60 | +#### Generate clients based on the [`specs`](./specs/) |
38 | 61 |
|
39 | 62 | ```bash
|
40 | 63 | yarn docker generate <language | all> <client | all>
|
41 | 64 | ```
|
42 | 65 |
|
43 | 66 | [Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/add-new-language)
|
44 | 67 |
|
45 |
| -## Testing clients |
| 68 | +### Tests |
46 | 69 |
|
47 | 70 | You can test our generated clients by running:
|
48 | 71 |
|
49 |
| -- The playground [`playground`](./playground) ([Playground](https://api-clients-automation.netlify.app/docs/contributing/testing/playground.md)) |
50 |
| -- Tests with our [`Common Test Suite`](./tests/) ([Common Test Suite](https://api-clients-automation.netlify.app/docs/contributing/testing/common-test-suite.md)). |
| 72 | +- The [`playground`](./playground) ([Playground](https://api-clients-automation.netlify.app/docs/contributing/testing/playground.md)) |
| 73 | +- The [`Common Test Suite`](./tests/) ([Common Test Suite](https://api-clients-automation.netlify.app/docs/contributing/testing/common-test-suite.md)). |
| 74 | + |
| 75 | +For full documentation, visit the **[online documentation](https://api-clients-automation.netlify.app/docs/contributing/introduction)**. |
| 76 | + |
| 77 | +## ❓ Troubleshooting |
| 78 | + |
| 79 | +Encountering an issue with the API clients? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/javascript/) where you will find answers for the most common issues and gotchas with the client. |
| 80 | + |
| 81 | +You can also [open an issue on GitHub](https://github.com/algolia/api-clients-automation/issues/new/choose). |
| 82 | + |
| 83 | +## 📄 License |
| 84 | + |
| 85 | +Algolia API clients automation is an open-sourced software licensed under the [MIT license](LICENSE.md). |
0 commit comments