getUserbyRole abstract method

  1. @GET('/users/{role_name}/role')
Future<List<User>> getUserbyRole(
  1. @Path('role_name') String role_name
)

Implementation

@GET('/users/{role_name}/role')
Future<List<User>> getUserbyRole(@Path('role_name') String role_name);