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
ふぁ 1361660774
add support build other method
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-04-26 20:10:49 +09:00
.vscode add .vscode 2023-04-26 10:40:51 +09:00
dist build 2023-04-24 13:12:45 +09:00
src add post API (temporal) 2023-04-26 19:38:27 +09:00
tools add support build other method 2023-04-26 20:10:49 +09:00
.gitignore add builder 2023-04-18 09:23:53 +09:00
LICENSE.txt init 2023-04-08 17:57:22 +09:00
README.md update README 2023-04-26 10:29:11 +09:00
requirements.txt add builder 2023-04-18 09:23:53 +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/typescript/openapi-3.0.yaml -o ./generated

If the language supports variable-length arguments.

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

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.

About build

  • src/openapi/**/*.yaml#/paths/*/get/parameters will be overwritten by src/config/parameters.yaml#/paths/~1parameters/get/parameters
  • src/openapi/**/*.yaml#/paths/*/get/responses/200/headers will be overwritten by src/config/headers.yaml#/components/headers
python -V # Python 3.10.8
pip install -r requirements.txt
python tools/build.py

License

agpl-3.0