1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00
No description
Find a file
ふぁ 3dbdd17fbb
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-06-15 14:01:11 +09:00
.vscode add .vscode 2023-04-26 10:40:51 +09:00
dist build 2023-06-15 14:01:11 +09:00
src add schema for self_thread in tweets 2023-06-14 23:26:31 +05:00
tools update config 2023-06-14 18:04:59 +09:00
.gitignore update builder 2023-05-02 21:58:49 +09:00
LICENSE.txt init 2023-04-08 17:57:22 +09:00
README.md update README 2023-06-13 15:33:34 +09:00
requirements.txt update requirements.txt 2023-05-21 12:25:30 +09:00

Twitter OpenAPI

Twitter OpenAPI(Swagger) specification

Usage

openapi-generator-cli generate -g <language> -i https://raw.githubusercontent.com/fa0311/twitter-openapi/main/dist/docs/openapi-3.0.yaml -o ./generated

There are several outputs, but the one that best follows the OpenAPI specification is dist/docs.
However, some Generators may use a syntax that is not supported.
You can also modify the hook to make the generated results more user-friendly. build_config.py

Note that the license also inherits to the output.

Contribute

  • src *.yaml files should be written according to the v3.0/schema.json
  • dist Do not rewrite this file as it is an automatically generated OpenAPI file.

build

python -V # Python 3.10.8
pip install -r requirements.txt
python tools/build.py

License

agpl-3.0