aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-16 16:24:57 +0100
committerChocobozzz <me@florianbigard.com>2023-02-16 16:41:32 +0100
commit1f26c0b846ce22877c432012d107bd72869bc562 (patch)
treed918fd07d0218019cc7a7927fcafd76f8ac4df3a /.github
parentaaaaa0090ec615390e717871c5a81c6169dd42cb (diff)
downloadPeerTube-1f26c0b846ce22877c432012d107bd72869bc562.tar.gz
PeerTube-1f26c0b846ce22877c432012d107bd72869bc562.tar.zst
PeerTube-1f26c0b846ce22877c432012d107bd72869bc562.zip
Add openapi doc guide in documentation
Diffstat (limited to '.github')
-rw-r--r--.github/CONTRIBUTING.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 86b4ae704..2f1774756 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -22,6 +22,8 @@ Interested in contributing? Awesome!
22 - [Unit/integration tests](#unitintegration-tests) 22 - [Unit/integration tests](#unitintegration-tests)
23 - [Testing the federation of PeerTube servers](#testing-the-federation-of-peertube-servers) 23 - [Testing the federation of PeerTube servers](#testing-the-federation-of-peertube-servers)
24 - [Emails](#emails) 24 - [Emails](#emails)
25 - [OpenAPI documentation](#openapi-documentation)
26 - [Environment variables](#environment-variables)
25- [Plugins & Themes](#plugins--themes) 27- [Plugins & Themes](#plugins--themes)
26 28
27<!-- END doctoc generated TOC please keep comment here to allow auto update --> 29<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -221,6 +223,15 @@ To test emails with PeerTube:
221 * Run [mailslurper](http://mailslurper.com/) 223 * Run [mailslurper](http://mailslurper.com/)
222 * Run PeerTube using mailslurper SMTP port: `NODE_CONFIG='{ "smtp": { "hostname": "localhost", "port": 2500, "tls": false } }' NODE_ENV=dev node dist/server` 224 * Run PeerTube using mailslurper SMTP port: `NODE_CONFIG='{ "smtp": { "hostname": "localhost", "port": 2500, "tls": false } }' NODE_ENV=dev node dist/server`
223 225
226### OpenAPI documentation
227
228The [REST API documentation](https://docs.joinpeertube.org/api-rest-reference.html) is generated from `support/doc/api/openapi.yaml` file.
229To quickly get a preview of your changes, you can generate the documentation *on the fly* using the following command:
230
231```
232npx redoc-cli serve --watch ./support/doc/api/openapi.yaml
233```
234
224### Environment variables 235### Environment variables
225 236
226PeerTube can be configured using environment variables. 237PeerTube can be configured using environment variables.