blob: b17fedd7d5d04b674d7c873cbcc11d12a71159b7 [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001package org.onlab.onos.gui;
2
tom0eb04ca2014-08-25 14:34:51 -07003import org.onlab.rest.BaseResource;
4
5import javax.ws.rs.DefaultValue;
6import javax.ws.rs.GET;
7import javax.ws.rs.Path;
8import javax.ws.rs.QueryParam;
9import javax.ws.rs.core.Response;
10
11/**
12 * Simple example of a GUI JAX-RS resource.
13 */
14@Path("greet")
15public class GreetResource extends BaseResource {
16
17 @GET
18 public Response yo(@QueryParam("name") @DefaultValue("dude") String name) {
tom202175a2014-09-19 19:00:11 -070019 return Response.ok("Yo!!!").build();
tom0eb04ca2014-08-25 14:34:51 -070020 }
21
22}