Skip to content

Commit 8e658a1

Browse files
merge dev into branch
2 parents 4412385 + eef55f4 commit 8e658a1

File tree

47 files changed

+2058
-698
lines changed

Some content is hidden

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

47 files changed

+2058
-698
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG] Bug name goes here"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEAT] Feature name goes here"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Pull Request
3+
about: Create a PR for a new feature or bug fix
4+
5+
---
6+
7+
## Type of change
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
14+
## What issue does this change solve?
15+
A clear and concise description of what the solution is.
16+
17+
18+
# Additional context
19+
Add any other context or screenshots about the change.

.github/workflows/lint-spec.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Run Spectral on Pull Requests
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
build:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Lint SDK specification
13+
uses: stoplightio/spectral-action@latest
14+
with:
15+
file_glob: 'sdk/*.yaml'
16+
- name: Lint distribution specification
17+
uses: stoplightio/spectral-action@latest
18+
with:
19+
file_glob: 'dist/*.yaml'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
.DS_Store

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Paystack OpenAPI Specification
22
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
33

4-
The OpenAPI specification for the Paystack API
4+
The OpenAPI specification for the [Paystack API](https://paystack.com/docs/api).
55

66
## Getting Started
77
The [OpenAPI specification](https://swagger.io/specification/) provides another alternative to test the Paystack API.
@@ -12,12 +12,19 @@ You can download the specification and make use of it on:
1212
## Components
1313
There are three main folders of interest in this repo:
1414
- `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
19-
- `dist`: In order to allow making use of the specification, we built a single file from all components in `main` folder.
20-
- `sdk`: This is a single file specification being used to client library generation. It contains just enough parameters for our client libraries.
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
19+
- `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+
23+
## Contributing
24+
Here are some of the ways to contribute to this repository:
25+
- Create a use case
26+
- Raise an issue
27+
- Suggest an improvement
2128

2229
## Issues
2330
Kindly [open an issue](https://github.com/PaystackOSS/openapi/issues) if you discover any bug or have problems using this library.

dist/betting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ paths:
252252
in: query
253253
schema:
254254
type: integer
255-
example: '063'
255+
example: 51
256256
responses:
257257
'200':
258258
description: Resolve Account Number

dist/lending.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ paths:
357357
in: query
358358
schema:
359359
type: integer
360-
example: '063'
360+
example: 51
361361
responses:
362362
'200':
363363
description: Resolve Account Number

dist/paystack.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ paths:
19291929
default:
19301930
description: Server error
19311931
'/subscription/{code}/manage/link':
1932-
post:
1932+
get:
19331933
tags:
19341934
- Subscription
19351935
summary: Generate Update Subscription Link
@@ -2708,12 +2708,12 @@ paths:
27082708
in: query
27092709
schema:
27102710
type: integer
2711-
example: '50'
2711+
example: 50
27122712
- name: page
27132713
in: query
27142714
schema:
27152715
type: integer
2716-
example: '2'
2716+
example: 2
27172717
responses:
27182718
'200':
27192719
$ref: '#/paths/~1product/post/responses/201'
@@ -2740,12 +2740,12 @@ paths:
27402740
in: query
27412741
schema:
27422742
type: integer
2743-
example: '50'
2743+
example: 50
27442744
- name: page
27452745
in: query
27462746
schema:
27472747
type: integer
2748-
example: '2'
2748+
example: 2
27492749
responses:
27502750
'200':
27512751
$ref: '#/paths/~1product/post/responses/201'
@@ -4351,7 +4351,7 @@ paths:
43514351
in: query
43524352
schema:
43534353
type: integer
4354-
example: '063'
4354+
example: 51
43554355
responses:
43564356
'200':
43574357
description: Resolve Account Number

dist/savings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ paths:
252252
in: query
253253
schema:
254254
type: integer
255-
example: '063'
255+
example: 51
256256
responses:
257257
'200':
258258
description: Resolve Account Number

0 commit comments

Comments
 (0)