In Retrofit, an HTTP API is described as a:

  1. JSON file
  2. Layout XML
  3. SQL table
  4. 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