package com.p3.bewoplaner.data.api.services;

import com.p3.bewoplaner.data.api.responses.ProfileResponse;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by laszloffiferenc on 2/21/17.
 */
public interface LoginService {
    @FormUrlEncoded
    @POST("api/user/login")
    Observable<ProfileResponse> login(
            @Field("username") String username,
            @Field("password") String password
    );
}
