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