/**
 * ObjectRiver Inc, http://www.objectriver.net/
 * Copyright (c) 2002-2013, ObjectRiver(tm). All rights reserved.
 */
Application Enums = com.companyname {
    Endpoint EnumsIface = 1 {
        Enumeration Flintstones { Fred=0, MrSlate=7, Wilma=2, Pebbles=5, Dino=6, Barney=1, Betty=3, Bambam=4  };
        Exception EnumsException {};
        Bean KidsAndPet {
            Flintstones[] kids;
            Flintstones pet;
        };
        Server Stateless {
			@Path("meetTheFlintstones")
            @Produces(JSON)
            @Consumes(JSON)
            @POST
            KidsAndPet meetTheFlintstones(@In String arg1, @In Flintstones flintstone) raises EnumsException;

			@Path("flintstonesParams/{path}/path")
            @Produces(JSON)
            @POST
            Boolean flintstonesParams(
                @DefaultValue("Dino") @QueryParam("query") Flintstones query,
                @PathParam("path") Flintstones path,
                @HeaderParam("header") Flintstones header
                ) raises EnumsException;
        };
	};
};