这是我的基本 URL https://abh-6ren">
gpt4 book ai didi

java - 在没有值(value)的情况下调用 Retrofit

转载 作者:行者123 更新时间:2023-12-01 19:53:15 25 4
gpt4 key购买 nike

如何调用Retrofit GET方法api,其中GET(")不会传入任何值

这是我的代码

@GET(" ")
fun fetchData(): Call<List<Data>>

这是我的基本 URL https://abhi-debug.github.io/Caption/All

并且末尾不能有反斜杠

最佳答案

  @GET(".")
fun fetchData(): Call<List<Data>>

传递"."作为参数

关于java - 在没有值(value)的情况下调用 Retrofit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59068077/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com