Skip to content

Commit

Permalink
add api example
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed Mar 24, 2024
1 parent 5a90264 commit 68ccf31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/server-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down

0 comments on commit 68ccf31

Please sign in to comment.