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.

15 lines
423B

  1. import 'package:dio/dio.dart';
  2. import 'package:farm_tpf/models/user.dart';
  3. import 'package:farm_tpf/models/user_request.dart';
  4. import 'package:retrofit/retrofit.dart';
  5. part 'rest_client.g.dart';
  6. @RestApi(baseUrl: "https://aquaman.aztrace.vn")
  7. abstract class RestClient {
  8. factory RestClient(Dio dio, {String baseUrl}) = _RestClient;
  9. @POST("/api/authenticate")
  10. Future<User> login(@Body() UserRequest userRequest);
  11. }