From 002df3813d13c5accd36d7943af2b17376a6d1ac Mon Sep 17 00:00:00 2001 From: Average Dude Date: Fri, 14 Feb 2020 14:14:14 +0100 Subject: OpenAPI clients generation --- support/doc/api/openapi.yaml | 3 +++ support/openapi/go.yaml | 3 +++ support/openapi/kotlin.yaml | 6 ++++++ support/openapi/python.yaml | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 support/openapi/go.yaml create mode 100644 support/openapi/kotlin.yaml create mode 100644 support/openapi/python.yaml (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index b1e5f90f8..180f65bcf 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -13,6 +13,7 @@ info: altText: PeerTube Project Homepage description: | # Introduction + The PeerTube API is built on HTTP(S). Our API is RESTful. It has predictable resource URLs. It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body. You can use your favorite @@ -22,11 +23,13 @@ info: which generates a client SDK in the language of your choice. # Authentication + When you sign up for an account, you are given the possibility to generate sessions, and authenticate using this session token. One session token can currently be used at a time. # Errors + The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format. diff --git a/support/openapi/go.yaml b/support/openapi/go.yaml new file mode 100644 index 000000000..7136da912 --- /dev/null +++ b/support/openapi/go.yaml @@ -0,0 +1,3 @@ +# https://openapi-generator.tech/docs/generators/go + +packageName: peertube diff --git a/support/openapi/kotlin.yaml b/support/openapi/kotlin.yaml new file mode 100644 index 000000000..7a01ae6e5 --- /dev/null +++ b/support/openapi/kotlin.yaml @@ -0,0 +1,6 @@ +# https://openapi-generator.tech/docs/generators/kotlin + +artifactId: peertube-api +groupId: org.peertube +packageName: org.peertube.client + diff --git a/support/openapi/python.yaml b/support/openapi/python.yaml new file mode 100644 index 000000000..819a466eb --- /dev/null +++ b/support/openapi/python.yaml @@ -0,0 +1,5 @@ +# https://openapi-generator.tech/docs/generators/python + +packageName: peertube +projectName: peertube + -- cgit v1.2.3