retrofit 2 @path Vs @query

后端 未结 6 397
暖寄归人
暖寄归人 2021-01-29 23:25

I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying parameters.In my metho

6条回答
  •  时光说笑
    2021-01-30 00:08

    @Query

    • This annotation represents any query key value pair to be sent along with the network request

    @Path

    • This annotation implies that the passed parameter will be swapped in the endpoint path

提交回复
热议问题