// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package test;

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

@Path("/TestPJson/{f1}/{f2}")
public class TestPJsonResource {
    @GET
    @Produces("application/json")
    public T1 get(@PathParam("f1") int f1, @PathParam("f2") String f2) {
        T1 o = new T1(f1, f2);
        return o;
    }
}
