add api example

This commit is contained in:
Raphael 2024-03-24 23:23:20 +01:00
parent 5a902644c1
commit 68ccf318ca

View File

@ -208,6 +208,9 @@ export default function startBackendServer(port) {
*
* @apiSuccess {String} body returns "done" as text
* @apiError {Number} 401 Unauthorized
*
* @apiExample {curl} Example usage to draw a circle:
* curl -i http://[rootUrl]/api/drawToWhiteboard?wid=[MyWhiteboardId]&t=circle&d=[388,201,100]&th=4
*/
app.get("/api/drawToWhiteboard", function (req, res) {
let query = escapeAllContentStrings(req["query"]);