Newer
Older
IrisServer / src / main / java / com / ntlab / irisserver / resources / KeywordsRest.java
k-fujii on 3 Jun 2022 522 bytes Keywords rest
package com.ntlab.irisserver.resources;

import org.springframework.stereotype.Component;
import com.ntlab.irisserver.models.KeywordManager;


import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;


@Component
@Path("/keywords")

public class KeywordsRest {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public String[] getKeywords(){
        KeywordManager km = KeywordManager.getInstance();
        String[] keywords = km.getKeywords();

        return keywords;
    }


}