|
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 | +[](./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 |
| -You can make changes locally and run commands through the docker container. |
| 48 | +The CLI allows you to make changes locally and run commands through the docker container. |
22 | 49 |
|
23 |
| -[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) |
| 50 | +- [Specs CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/specs-commands) |
| 51 | +- [Clients CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/clients-commands) |
| 52 | +- [CTS CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/cts-commands) |
24 | 53 |
|
25 |
| -### Build and validate specs |
| 54 | +### Guides and requirements |
26 | 55 |
|
27 |
| -#### Usage |
| 56 | +Read the guides and requirements to: |
28 | 57 |
|
29 |
| -```bash |
30 |
| -yarn docker build specs <client | all> |
31 |
| -``` |
| 58 | +- [Add a new client](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-client) |
| 59 | +- [Add a new language](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-language) |
32 | 60 |
|
33 |
| -[Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-client) |
| 61 | +### Tests |
34 | 62 |
|
35 |
| -### Generate clients based on the [`specs`](./specs/) |
| 63 | +Test the generated clients by running: |
36 | 64 |
|
37 |
| -#### Usage |
| 65 | +- The [`playground`](./playground) (see [documentation](https://api-clients-automation.netlify.app/docs/contributing/testing/playground.md)) |
| 66 | +- The [`Common Test Suite`](./tests/) (see [documentation](https://api-clients-automation.netlify.app/docs/contributing/testing/common-test-suite.md)). |
38 | 67 |
|
39 |
| -```bash |
40 |
| -yarn docker generate <language | all> <client | all> |
41 |
| -``` |
| 68 | +For full documentation, visit the **[online documentation](https://api-clients-automation.netlify.app/docs/contributing/introduction)**. |
| 69 | + |
| 70 | +## ❓ Troubleshooting |
42 | 71 |
|
43 |
| -[Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/add-new-language) |
| 72 | +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 to the most common issues and gotchas with the client. |
44 | 73 |
|
45 |
| -## Testing clients |
| 74 | +You can also [open an issue on GitHub](https://github.com/algolia/api-clients-automation/issues/new/choose). |
46 | 75 |
|
47 |
| -You can test our generated clients by running: |
| 76 | +## 📄 License |
48 | 77 |
|
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)). |
| 78 | +Algolia API clients automation is an open-sourced software licensed under the [MIT license](LICENSE.md). |
0 commit comments