package com.nmakademija.nmaakademija.api;

import com.nmakademija.nmaakademija.entity.Article;
import com.nmakademija.nmaakademija.entity.ScheduleEvent;
import com.nmakademija.nmaakademija.entity.Section;
import com.nmakademija.nmaakademija.entity.TimeTillSession;
import com.nmakademija.nmaakademija.entity.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;

public interface NMAService {

    @GET("api/events")
    Call<List<ScheduleEvent>> getEvents();

    @GET("api/tts")
    Call<TimeTillSession> getTimeTillSession();

    @GET("api/users")
    Call<List<User>> getUsers();

    @GET("api/news")
    Call<List<Article>> getArticles();

    @GET("api/sections")
    Call<List<Section>> getSections();
}

@@ -434,19 +434,20 @@
 i/events
+/
 %22)%0A
-
     Call
@@ -499,16 +499,17 @@
 %22api/tts
+/
 %22)%0A    C
@@ -571,16 +571,17 @@
 pi/users
+/
 %22)%0A    C
@@ -627,16 +627,17 @@
 api/news
+/
 %22)%0A    C
@@ -667,24 +667,24 @@
 rticles();%0A%0A
-
     @GET(%22ap
@@ -693,16 +693,17 @@
 sections
+/
 %22)%0A    C

Add slash at the end to avoid redirects from server