Tags » SWAGGER

Cannabis

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

Giphy

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

@Path("/swagger")
public class SwaggerResource {

    @GET
    @Path("/json")
    @Produces({MediaType.APPLICATION_JSON})
    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();
            object.entrySet().stream()
                    .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()
                        .add(uriInfo.getBaseUri().getScheme()));
            return Response.ok((StreamingOutput) output -> {
                try (JsonWriter writer = Json.createWriter(output)) {
                    writer.writeObject(builder.build());
                }
            }).build();
        }
    }

    @GET
    @Path("/ui")
    public Response readUi() throws IOException {
        final URI json
                = uriInfo.getBaseUriBuilder()
                .path("swagger")
                .path("json")
                .build();
        final URI swaggerUi
                = UriBuilder.fromUri(servletContext.getContextPath())
                .path("swagger-ui")
                .path("index.html")
                .queryParam("url", json).build();
        return Response.seeOther(swaggerUi).build();
    }

    @Context
    private UriInfo uriInfo;

    @Context
    private ServletContext servletContext;
}
Programming

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

#sevenhundredandone

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

Music