public interface LyrebirdService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<BaseResponse> |
activate(String groupID) |
retrofit2.Call<BaseResponse> |
clearFlowList(Flow flow) |
retrofit2.Call<BaseResponse> |
deactivate() |
retrofit2.Call<Events> |
getEventList(String channel) |
retrofit2.Call<FlowDetail> |
getFlowDetail(String flowId) |
retrofit2.Call<Flow[]> |
getFlowList() |
retrofit2.Call<LBMockData> |
getMockData(String dataId) |
retrofit2.Call<SpeedLimit> |
getSpeedLimit() |
retrofit2.Call<SpeedLimit> |
setSpeedLimit(BandwidthTemplate template) |
retrofit2.Call<Status> |
status() |
@GET(value="api/status") retrofit2.Call<Status> status()
@PUT(value="api/mock/{group}/activate")
retrofit2.Call<BaseResponse> activate(@Path(value="group")
String groupID)
@PUT(value="api/mock/groups/deactivate") retrofit2.Call<BaseResponse> deactivate()
@GET(value="api/flow") retrofit2.Call<Flow[]> getFlowList()
@GET(value="api/flow/{flowId}")
retrofit2.Call<FlowDetail> getFlowDetail(@Path(value="flowId")
String flowId)
@Headers(value="Content-Type: application/json")
@HTTP(method="DELETE",
path="api/flow",
hasBody=true)
retrofit2.Call<BaseResponse> clearFlowList(@Body
Flow flow)
@GET(value="api/event/{channel}")
retrofit2.Call<Events> getEventList(@Path(value="channel")
String channel)
@GET(value="api/data/{dataId}")
retrofit2.Call<LBMockData> getMockData(@Path(value="dataId")
String dataId)
@Headers(value="Content-Type: application/json") @PUT(value="api/bandwidth") retrofit2.Call<SpeedLimit> setSpeedLimit(@Body BandwidthTemplate template)
@GET(value="api/bandwidth") retrofit2.Call<SpeedLimit> getSpeedLimit()
Copyright © 2021. All rights reserved.