Load tag bookmarks by tag id
This commit is contained in:
@@ -121,4 +121,17 @@ class ApiClientService {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
Future<ApiResponse<Tag>> fetchTagById(String tagId) async {
|
||||
try {
|
||||
final response = await dioInstance.get("/tags/$tagId/");
|
||||
return ApiResponse(
|
||||
successful: true,
|
||||
content: Tag.fromJson(response.data),
|
||||
);
|
||||
} catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user