Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Repository files navigation

pi_control_hub_api

This repostory contains the OpenAPI definition for PiControl. As of now it provides the server API for Python FastAPI and the clöient API for Swift.

Generating the Python server API

The Python server API needs to be generated and the generated sources need to be committed and pushed such that the repo can be installed directly from GitHub.

Install the OpenAPI Generator

Linux

For Linux node and npm is required. Install the generator by executing the following shell command:

npm install @openapitools/openapi-generator-cli -g

Add the following alias to your shell profile:

alias openapi-generator="npx @openapitools/openapi-generator-cli"

Afterwards restart your shell and you're good to go.

macOS

For macOS Homebrew is required. Install the generator by executing the following shell command:

brew install openapi-generator

Afterwards you're good to go.

Generate the Python server API

Execute the shell script

./generate-python-server.sh

Afterwards you can commit and push the changes or install it by executing

pip install .

About

This repostory contains the OpenAPI definition for PiControl.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages