You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
471 B

2 years ago
  1. import 'package:itasmob/app/constants.dart';
  2. import 'package:itasmob/data/response/responses.dart';
  3. import 'package:dio/dio.dart';
  4. import 'package:retrofit/http.dart';
  5. part 'app_api.g.dart';
  6. @RestApi(baseUrl: Constants.baseUrl)
  7. abstract class AppServiceClient{
  8. factory AppServiceClient(Dio dio, {String baseUrl}) = _AppServiceClient;
  9. @GET("/v2/top-headlines?country=us&category=business&apiKey=640f7435fec643d6abdd8eb6de375859")
  10. Future<NewsResponse> getNews();
  11. }