You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Navigate to the cloned project and install dependencies
18
+
```sh
19
+
cd openapi
20
+
pnpm install
21
+
```
22
+
- Start the server to view the spec in your browser
23
+
```sh
24
+
pnpm dev
25
+
```
26
+
> [!NOTE]
27
+
> At the moment, the `paystack.yaml` file is the only spec that is automatically opened in your browser. If the spec doesn't open automatically in your browser, you can manually open http://localhost:3031 in your browser.
28
+
12
29
## Components
13
-
There are three main folders of interest in this repo:
14
-
-`main`: This contains a comprehensive specification of the Paystack API:
15
-
-`resources`: This contains individual endpoints in each API category
16
-
-`responses`: This contains the models for responses
17
-
-`schemas`: This contains models for each endpoint
18
-
-`paystack.yml`: This is the entry point for all components
30
+
There are two top-level folders of interest in this repo:
31
+
-`src`: This contains the assets, scripts and basic .html for working and viewing the OpenAPI Specification (OAS) file.
32
+
-`assets`: This contains the Paystack OAS files:
33
+
-`base`: Default single OAS file that was used to rebuild codebase (to be removed)
34
+
-`openapi`: This contains the individual, manageable parts of the OAS
35
+
-`sdk`: This is a single file specification being used for client library generation. It contains just enough parameters for our client libraries (might be removed later).
36
+
-`use_cases`: This is a collection of specifications containing APIs for common use cases of the Paystack API. For example, the `wallet.yaml` contains the APIs needed to build a wallet feature into your application. The specifications in this directory are used to create the collections in our [Postman Workspace](https://www.postman.com/paystack-developers?tab=collections).
19
37
-`dist`: Not all OpenAPI readers can read from different file sources, so we built a single file from all the components in the `main` directory.
20
-
-`sdk`: This is a single file specification being used for client library generation. It contains just enough parameters for our client libraries.
21
-
-`use_cases`: This is a collection of specifications containing APIs for common use cases of the Paystack API. For example, the `wallet.yaml` contains the APIs needed to build a wallet feature into your application. The specifications in this directory are used to create the collections in our [Postman Workspace](https://www.postman.com/paystack-developers?tab=collections).
22
38
23
39
## Contributing
24
40
Here are some of the ways to contribute to this repository:
@@ -27,7 +43,7 @@ Here are some of the ways to contribute to this repository:
27
43
- Suggest an improvement
28
44
29
45
## Issues
30
-
Kindly [open an issue](https://github.com/PaystackOSS/openapi/issues) if you discover any bug or have problems using this library.
46
+
You can [open an issue](https://github.com/PaystackOSS/openapi/issues) if you discover any bug or have problems using this repo.
31
47
32
48
## License
33
49
This repository is made available under the MIT license. Kindly read the [LICENSE](https://github.com/PaystackOSS/openapi/blob/main/LICENSE) file for more information.
0 commit comments