Create IAmateurSondehubRestApi.java

pull/8/head
Medad Rufus Newman 2022-05-07 18:12:01 +01:00
rodzic 810fde0b55
commit d422c57a31
1 zmienionych plików z 24 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,24 @@
package nl.sikken.bertrik.hab.amateurSondehub;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
/**
* Interface definition for payload telemetry and listener telemetry towards AmateurSondehub.
*/
public interface IAmateurSondehubRestApi {
@PUT("/habitat/_design/payload_telemetry/_update/add_listener/{doc_id}")
Call<String> updateListener(@Path("doc_id") String docId, @Body String json);
@GET("/_uuids")
Call<UuidsList> getUuids(@Query("count") int count);
@PUT("/habitat/{doc_id}")
Call<UploadResult> uploadDocument(@Path("doc_id") String docId, @Body String document);
}