Skip to content

Commit 1ae7fef

Browse files
Merge pull request #51 from PaystackOSS/feat-dev-exp
Feat dev exp
2 parents f2a0824 + 60c1771 commit 1ae7fef

File tree

782 files changed

+61862
-16163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

782 files changed

+61862
-16163
lines changed

README.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,32 @@ You can download the specification and make use of it on:
99
- [SwaggerHub](https://swagger.io/tools/swaggerhub/)
1010
- [OpenAPI (Swagger) Editor](https://marketplace.visualstudio.com/items?itemName=42Crunch.vscode-openapi)
1111

12+
## Set up locally
13+
- Clone repo
14+
```sh
15+
git clone [email protected]:PaystackOSS/openapi.git
16+
```
17+
- 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+
1229
## 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).
1937
- `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).
2238

2339
## Contributing
2440
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:
2743
- Suggest an improvement
2844

2945
## 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.
3147

3248
## License
3349
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

Comments
 (0)