Serialize Query-Parameter in Retrofit

前端 未结 4 1966
挽巷
挽巷 2021-02-14 12:17

Imagine the following request:

@POST(\"/recipes/create\")
void createRecipe(@Query(\"recipe\") Recipe recipe, Callback callback);

4条回答
  •  后悔当初
    2021-02-14 12:43

    You can use retrofit.RestAdapter.Builder().setConverter(...) to pass a custom json converter.

提交回复
热议问题