All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carma.swagger.doclet.sample.resources.GreetingsResource Maven / Gradle / Ivy

package com.carma.swagger.doclet.sample.resources;

import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

@Path("/greetings/{name}")
public class GreetingsResource {
    @GET
    public String getGreeting(@PathParam("name") @DefaultValue("World") String name) {
        return "Hello, " + name + "!";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy