Retrofit 2.0, request GET to a .json file as endpoint
问题 Hello Im working in a test with Retrofit 2.0 and one of the test is making a resquest to a url that finish with .json: Example: https://domain.com/contacts.json baseURl: https://domain.com/ endPoint: /contacts.json Which is a file, but I want to make a normal GET request and get the json inside directly 回答1: If you have control over your web server, you can customize it supports .json file as text/plain or application/json . Please see my following screenshot (I have done with IIS 7.5) The