Swagger wasn’t sure what he smelled.  Once again the Life Guards and Cabana Boys were out back, near the dressing rooms, sharing something.  With a snort, he moved off towards the forested parts of the Foggy Bottoms Resort and Spa.  22 more words

music video, no, swag, swagger, best of me, young paris Gif For Fun

music video, no, swag, swagger, best of me, young paris Gif for Fun at your Time


Free Agile API development eBook available

The process of designing, developing, testing, and deploying software – including mission-critical APIs – is very different today than it was even just a few years ago.  63 more words

Service Oriented Architecture (SOA)

Redirecting to swagger-ui from JAX-RS, v2

public class SwaggerResource {

    public Response readJson() throws IOException {
        try (InputStream resource
                = getClass().getResourceAsStream("/swagger.json");
             final JsonReader reader = Json.createReader(resource)) {
            final JsonObject object = reader.readObject();
            final JsonObjectBuilder builder = Json.createObjectBuilder();
                    .filter(e -> !e.getKey().equals("host")
                                 && !e.getKey().equals("basePath")
                                 && !e.getKey().equals("schemes"))
                    .forEach(e -> builder.add(e.getKey(), e.getValue()));
            builder.add("host", uriInfo.getBaseUri().getAuthority());
            builder.add("basePath", servletContext.getContextPath()
                                    + Application_.APPLICATION_PATH);
            builder.add("schemes", Json.createArrayBuilder()
            return Response.ok((StreamingOutput) output -> {
                try (JsonWriter writer = Json.createWriter(output)) {

    public Response readUi() throws IOException {
        final URI json
                = uriInfo.getBaseUriBuilder()
        final URI swaggerUi
                = UriBuilder.fromUri(servletContext.getContextPath())
                .queryParam("url", json).build();
        return Response.seeOther(swaggerUi).build();

    private UriInfo uriInfo;

    private ServletContext servletContext;

Rutting Season

The rutting season was still two Moons away but Swagger, the older twin, took this opportunity to stop in at the Foggy Bottoms Resort and Spa Free Clinic.  49 more words


Marking their second appearance on these humble pages, Tangerines return with Long Way Home.

With a Libertines-esque ramshackle delivery meshing with a toe-tapping country swagger,  24 more words