forked from eatvio/eatvio_app
14 lines
384 B
Dart
14 lines
384 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:eatvio_app/features/recipes/models/recipe_model.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'recipe_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class RecipeService {
|
|
factory RecipeService(Dio dio, {String baseUrl}) = _RecipeService;
|
|
|
|
@GET('/api/recipe/{id}/show/')
|
|
Future<Map<String, RecipeModel>> getRecipe(@Path() int id);
|
|
}
|