package com.armstrongconsulting.acprotasks.client;

import com.armstrongconsulting.acprotasks.client.model.ItemsContainer;

import feign.Headers;
import feign.Param;
import feign.RequestLine;

@Headers("Accept: application/json")
public interface AcproClient
{
    @RequestLine("GET /api_key?user={user}&password={password}")
    String getApiKey(@Param("user") String user, @Param("password") String password);

    @RequestLine("GET /items?q=title:{title}&start={offset}&count={limit}")
    ItemsContainer getItems(@Param("title") String titleContains, @Param("offset") Integer offset,
        @Param("limit") Integer limit);
}
