In Retrofit, an HTTP API is described as a:
- JSON file
- Layout XML
- SQL table
- Kotlin/Java interface with annotated methods
Answer
D) Kotlin/Java interface with annotated methods
Each interface method represents an endpoint.
Computer Science MCQ · More Maps and Consuming Web Services over HTTP MCQs · Practise