package com.trifectalabs.roadquality.v0.models; import io.reactivex.Single; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; import java.util.UUID; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Query; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.13 * User agent: apibuilder app.apibuilder.io/trifectalabs/roadquality/0.0.13/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ public interface SegmentsClient { /** * Search all segments */ @GET("segments") Single getSegments(@Query("segmentId") UUID segmentId); /** * Search all segments within a bounding box */ @GET("segments/boundingbox") Single getSegmentsBoundingbox(@Query("xmin") Double xmin, @Query("ymin") Double ymin, @Query("xmax") Double xmax, @Query("ymax") Double ymax); @POST("segments") Single postSegments(@Body SegmentCreateForm segmentCreateForm, @Query("currentZoomLevel") Integer currentZoomLevel, @Query("hidden") Boolean hidden); @PUT("segments") Single putSegments(@Body SegmentUpdateForm segmentUpdateForm, @Query("segmentId") UUID segmentId); }