aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-24 12:02:38 +0100
committerChocobozzz <me@florianbigard.com>2018-01-24 12:02:38 +0100
commitd59a8da813491d4cfad188adb0e3fc7a2306f835 (patch)
tree03cf4099251431100c48b13fdcfcad673940d10f
parent5e1c08eb94746c44b8b14a12c0937aadb34feb57 (diff)
downloadPeerTube-d59a8da813491d4cfad188adb0e3fc7a2306f835.tar.gz
PeerTube-d59a8da813491d4cfad188adb0e3fc7a2306f835.tar.zst
PeerTube-d59a8da813491d4cfad188adb0e3fc7a2306f835.zip
Add api documentation in readme
-rw-r--r--.github/CONTRIBUTING.md11
-rw-r--r--README.md7
2 files changed, 17 insertions, 1 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 2b90d94a2..819b9a8f5 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -20,7 +20,16 @@ interested in, user interface, design, decentralized architecture...
20## Write documentation 20## Write documentation
21 21
22You can help to write the documentation of the REST API, code, architecture, 22You can help to write the documentation of the REST API, code, architecture,
23demonstrations... 23demonstrations.
24
25For the REST API you can see the documentation in [/support/doc/api](/support/doc/api) directory.
26Then, you can just open the `openapi.yaml` file in a special editor like [http://editor.swagger.io/](http://editor.swagger.io/) to easily see and edit the documentation.
27
28Some hints:
29 * Routes are defined in [/server/controllers/](/server/controllers/) directory
30 * Parameters validators are defined in [/server/middlewares/validators](/server/middlewares/validators) directory
31 * Models sent/received by the controllers are defined in [/shared/models](/shared/models) directory
32
24 33
25## Develop 34## Develop
26 35
diff --git a/README.md b/README.md
index e8871a7cc..491b09a36 100644
--- a/README.md
+++ b/README.md
@@ -147,6 +147,13 @@ guide](/.github/CONTRIBUTING.md)
147to see how to contribute to PeerTube. Spoiler alert: you don't need to be a 147to see how to contribute to PeerTube. Spoiler alert: you don't need to be a
148coder to help! 148coder to help!
149 149
150## API REST documentation
151
152For now only on Github:
153
154 * HTML version: [/support/doc/api/html/index.html](/support/doc/api/html/index.html)
155 * Swagger/OpenAPI schema: [/support/doc/api/openapi.yaml](/support/doc/api/openapi.yaml)
156
150## Architecture 157## Architecture
151 158
152See [ARCHITECTURE.md](/ARCHITECTURE.md) for a more detailed explanation. 159See [ARCHITECTURE.md](/ARCHITECTURE.md) for a more detailed explanation.