Skip to content

Commit 211267e

Browse files
committed
feature: set up Api Resource class
1 parent a58539e commit 211267e

File tree

1 file changed

+12
-0
lines changed
  • app/src/main/java/com/example/diff_utils_recyclerview_example/data/remote

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.example.diff_utils_recyclerview_example.data.remote
2+
3+
4+
import com.example.diff_utils_recyclerview_example.data.responses.CharactersResponse
5+
import retrofit2.http.GET
6+
7+
interface ApiService {
8+
9+
@GET("characters")
10+
suspend fun fetchCharacters(): CharactersResponse
11+
12+
}

0 commit comments

Comments
 (0)