Class ResponseWriter


  • public class ResponseWriter
    extends Object
    Writing the APIResponse to json
    Author:
    Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
    See Also:
    responseObject
    • Method Detail

      • writeAPIResponses

        public static void writeAPIResponses​(com.fasterxml.jackson.databind.node.ObjectNode parent,
                                             Map<String,​org.eclipse.microprofile.openapi.models.responses.APIResponse> responses)
        Writes a map of APIResponse to the JSON tree.
        Parameters:
        parent - the parent json node
        responses - map of APIResponse models
      • writeAPIResponses

        public static void writeAPIResponses​(com.fasterxml.jackson.databind.node.ObjectNode parent,
                                             org.eclipse.microprofile.openapi.models.responses.APIResponses model)
        Writes a APIResponses map to the JSON tree.
        Parameters:
        parent - the parent json node
        model - APIResponse model