Newer
Older
tampopo-server / src / main / java / org / ntlab / tampoposerver / resources / NotificationsResource.java
package org.ntlab.tampoposerver.resources;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.QueryParam;
import org.springframework.stereotype.Component;

@Path("/{userID}/notifications")
@Component
public class NotificationsResource {
    @GET
    public String getNotifications(@PathParam("userID") String userID, @QueryParam("token") String token){
        return "Hello World";
    }

    @Path("/{notificationID}")
    @GET
    public String getNotification(@PathParam("userID") String userID, @PathParam("notificationID") String notificationID, @QueryParam("token") String token){
        return "Hello World";
    }

    @Path("/{notificationID}/text")
    @GET
    public String getNotificationText(@PathParam("userID") String userID, @PathParam("notificationID") String notificationID, @QueryParam("token") String token){
        return "Hello World";
    }

    @Path("/{notificationID}/time")
    @GET
    public String getNotificationTime(@PathParam("userID") String userID, @PathParam("notificationID") String notificationID, @QueryParam("token") String token){
        return "Hello World";
    }

    @Path("/{notificationID}/from")
    @GET
    public String getNotificationFrom(@PathParam("userID") String userID, @PathParam("notificationID") String notificationID, @QueryParam("token") String token){
        return "Hello World";
    }

}