package openfoodfacts.github.scrachx.openfood.network;

/**
 * Created by Lobster on 03.03.18.
 */

import io.reactivex.Single;
import openfoodfacts.github.scrachx.openfood.models.AdditivesWrapper;
import openfoodfacts.github.scrachx.openfood.models.AllergensWrapper;
import openfoodfacts.github.scrachx.openfood.models.CategoriesWrapper;
import openfoodfacts.github.scrachx.openfood.models.CountriesWrapper;
import openfoodfacts.github.scrachx.openfood.models.LabelsWrapper;
import retrofit2.http.GET;

/**
 * API calls for loading static multilingual data
 * This calls should be used as rare as possible, because they load Big Data
 */
public interface ProductApiService {

    @GET("data/taxonomies/labels.json")
    Single<LabelsWrapper> getLabels();

    @GET("data/taxonomies/allergens.json")
    Single<AllergensWrapper> getAllergens();

    @GET("data/taxonomies/additives.json")
    Single<AdditivesWrapper> getAdditives();

    @GET("data/taxonomies/countries.json")
    Single<CountriesWrapper> getCountries();

    @GET("data/taxonomies/categories.json")
    Single<CategoriesWrapper> getCategories();

}

@@ -1108,11 +1108,792 @@
 ries();%0A
+    %0A    @GET(%22data/taxonomies/vitamins.json%22)%0A    Single%3CCategoriesWrapper%3E getVitamins();%0A    %0A    @GET(%22data/taxonomies/additives_classes.json%22)%0A    Single%3CCategoriesWrapper%3E getAdditivesClasses();%0A    %0A    @GET(%22data/taxonomies/nucleotides.json%22)%0A    Single%3CCategoriesWrapper%3E getNucleotides();%0A    %0A    @GET(%22data/taxonomies/nutrient_levels.json%22)%0A    Single%3CCategoriesWrapper%3E getNutrientLevels();%0A    %0A    @GET(%22data/taxonomies/languages.json%22)%0A    Single%3CCategoriesWrapper%3E getLanguages();%0A    %0A    @GET(%22data/taxonomies/nutrients.json%22)%0A    Single%3CCategoriesWrapper%3E getNutrients();%0A    %0A    @GET(%22data/taxonomies/minerals.json%22)%0A    Single%3CCategoriesWrapper%3E getMinerals();%0A    %0A    @GET(%22data/taxonomies/states.json%22)%0A    Single%3CCategoriesWrapper%3E getStates();%0A    %0A    
 %0A%7D%0A

Add more taxonomies (#1866)