kopia lustrzana https://github.com/bertrik/ttnhabbridge
Create IAmateurSondehubRestApi.java
rodzic
810fde0b55
commit
d422c57a31
|
@ -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);
|
||||
|
||||
}
|
Ładowanie…
Reference in New Issue