Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanleecode/raiden-openapi-sdk
https://github.com/ryanleecode/raiden-openapi-sdk
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanleecode/raiden-openapi-sdk
- Owner: ryanleecode
- Created: 2019-08-03T04:56:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T13:09:41.000Z (over 5 years ago)
- Last Synced: 2024-10-27T09:17:08.443Z (19 days ago)
- Language: TypeScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raiden OpenAPI SDK
This project is an typescript SDK for the [Raiden API](https://raiden-network.readthedocs.io/en/latest/rest_api.html). It was generated using [openapi-generator](https://github.com/OpenAPITools/openapi-generator) from the [swagger](./swagger.yaml) file I made.
This is a low level entrypoint for the API. You can find the higher level abstraction [here](https://github.com/drdgvhbh/raiden-api-sdk).
## Installation
`npm install raiden-openapi-sdk`
## Documentation
http://raiden-openapi.drdgvhbh.site/
## Usage
```typescript
import {
Configuration,
ConfigurationParameters,
ChannelsApi,
RaidenNodeApi,
PaymentsApi,
PendingTransfersApi,
TokensApi,
ConnectionsApi
} from 'raiden-swagger-sdk';const configuration = new Configuration({
basePath: 'http://127.0.0.1:5001/api/v1' // is the default
});
const channelsApi = new ChannelsApi(configuration);
const raidenNodeApi = new RaidenNodeApi(configuration);
const paymentsApi = new PaymentsApi(configuration);
const pendingTransfersApi = new PendingTransfersApi(configuration);
const tokensApi = new TokensApi(configuration);
const connectionsApi = new ConnectionsApi(configuration);
```## Contributing
Since the code is generated, any changes should be directed at the [swagger.yaml](./swagger.yaml) file. If you are adding a new API route, doucment where it is in the official Raiden API docs in your PR.