INNER CODE UNIT · Java

post

apache/camel-quarkus · tooling/create-extension-templates/TestResource.java:65

    public Response post(String message) throws Exception {
        LOG.infof("Sending to [=artifactIdBase]: %s", message);
        final String response = producerTemplate.requestBody("[=artifactIdBase]:--fix-me--", message, String.class);
        LOG.infof("Got response from [=artifactIdBase]: %s", response);
        return Response
                .created(new URI("https://camel.apache.org/"))
                .entity(response)
                .build();
    }
[#else]
[#list models as m]
    private static final String [=toSnakeCase(m.kind)?upper_case]_[=toSnakeCase(m.name)?upper_case] = "[=m.name]";
[/#list]
    @Inject
    CamelContext context;

[#list models as model]
    @Path("/load/[=model.kind]/[=toKebabCase(model.name)]")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…