package de.ironjan.mensaupb.stw.rest_api;
import org.androidannotations.annotations.rest.Accept;
import org.androidannotations.annotations.rest.Get;
import org.androidannotations.annotations.rest.Rest;
import org.androidannotations.api.rest.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import de.ironjan.mensaupb.BuildConfig;
/**
* Do not use this class directly, use StwRestWrapper instead!
* Rest-API of the Studentenwerk Paderborn.
* BuildConfig.STW_URL is a secret URL that must not be shared because of "quality assurance"
*/
@Rest(converters = MappingJackson2HttpMessageConverter.class, rootUrl = BuildConfig.STW_URL)
interface StwRest {
@Get("&restaurant={restaurant}&date={date}")
@Accept(MediaType.APPLICATION_JSON)
StwMenu[] getMenus(String restaurant, String date);
}