public static void get ( String url , HttpConsumer < HttpExchange > endpoint , MediaTypes ... mediaTypes ) { addResource ( Methods . GET , url , endpoint , mediaTypes ) ; }
Define a REST endpoint mapped to HTTP GET