@chainsafe/files-api-client v1.19.2
OpenAPI Specification for the Files API
The OpenAPI Specification referenced hereis a community-driven open specification within the OpenAPI Initiative, a Linux Foundation Collaborative Project.
The Linter used
Redoc Lint is the linter chosen for this project and can be referenced here. It is a flexible JSON/YAML linter, with out of the box support for OpenAPI v2/v3 and AsyncAPI v2.
Install the dependencies
yarn installRun the linter on the specification File
makeTypescript API Client Generation
To generate a typescript client for the API, .net core 2.2 is required.
Installing .NET Core Runtime on Linux (Debian/Ubuntu)
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.debfollowed by
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-runtime-2.2Installing .NET Core Runtime on MacOS
https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-2.2.8-macos-x64-installer
Generating a client
yarn build-clientGenerating Docs
yarn build-docsPublishing a new release
Run the following
npm loginRun the publish-package or publish-prerelease script according to your needs:
yarn publish-prereleaseor
yarn publish-package3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago