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