public static void define(Configuration config, RestExpress server) { server.uri("/maintenances/{oid}.{format}", config.getRecordController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.SINGLE_RECORD); server.uri("/maintenances.{format}", config.getRecordController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.RECORD_COLLECTION); server.uri("/maintenances/utils/ping.{format}", config.getDiagnosticController()) .action("ping", HttpMethod.GET); } }
public static void define(Configuration config, RestExpress server) { server.uri("/blogs.{format}", config.getBlogController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.BLOGS_READ_ROUTE); server.uri("/blogs/{blogId}.{format}", config.getBlogController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.BLOG_READ_ROUTE); server.uri("/blogs/{blogId}/entries.{format}", config.getBlogEntryController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.BLOG_ENTRIES_READ_ROUTE); server.uri("/blogs/{blogId}/entries/{entryId}.{format}", config.getBlogEntryController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.BLOG_ENTRY_READ_ROUTE); server.uri("/blogs/{blogId}/entries/{entryId}/comments.{format}", config.getCommentController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.COMMENTS_READ_ROUTE); server.uri("/blogs/{blogId}/entries/{entryId}/comments/{commentId}.{format}", config.getCommentController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.COMMENT_READ_ROUTE); } }
/** * * @param config * @param server */ public static void define(Configuration config, RestExpress server) { server.uri("/valets/{oid}.{format}", config.getTransactionController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.SINGLE_TRANSACTION); server.uri("/valets.{format}", config.getTransactionController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.TRANSACTION_COLLECTION); server.uri("/valets/utils/ping.{format}", config.getDiagnosticController()) .action("ping", HttpMethod.GET); } }
/** * * @param config * @param server */ public static void define(Configuration config, RestExpress server) { server.uri("/vehicles/{oid}.{format}", config.getVehicleController()) .method(HttpMethod.GET, HttpMethod.PUT, HttpMethod.DELETE) .name(Constants.Routes.SINGLE_VEHICLE); server.uri("/vehicles.{format}", config.getVehicleController()) .action("readAll", HttpMethod.GET) .method(HttpMethod.POST) .name(Constants.Routes.VEHICLE_COLLECTION); server.uri("/vehicles/utils/ping.{format}", config.getDiagnosticController()) .action("ping", HttpMethod.GET); } }
.method(HttpMethod.POST) .name(Constants.Routes.CLIENT_COLLECTION);