From ed46e1dfe126da5b958d39ebba31c6a9b0992ffa Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Tue, 7 Dec 2021 14:13:14 +0100 Subject: [PATCH] Added new response --- OTA-Server.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/OTA-Server.md b/OTA-Server.md index 0385470..6aedfbd 100644 --- a/OTA-Server.md +++ b/OTA-Server.md @@ -26,6 +26,13 @@ example.com/otaDescriptor This should return last 10 commits of every user (as no user was specified) ``` + +``` +example.com/otaDescriptor?branches + +This should return an array of branch names +``` + ## Responses Example response (/otaDescriptor?username=foo): @@ -70,4 +77,12 @@ Example response (/otaDescriptor?username=foo&branch=master): "currentVersion":"704109f.master", "currentVersionHasOta":true } +``` + +Example response (/otaDescriptor?branches) +```json +[ + "master", + "feature-1" +] ``` \ No newline at end of file