public class SwaggerUtil
extends java.lang.Object
Constructor and Description |
---|
SwaggerUtil() |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
addStandardResponse(JSONObject responses,
Status status)
add standard response to the given responses json and status
|
static JSONObject |
addStandardResponse(JSONObject responses,
Status status,
java.lang.String description)
add standard response to the given responses json and status
|
static java.lang.String |
encodeRefName(java.lang.String refName)
replace ~ and / to _ in ref name
|
public static JSONObject addStandardResponse(@Nonnull JSONObject responses, @Nonnull Status status)
responses
- status
- public static JSONObject addStandardResponse(@Nonnull JSONObject responses, @Nonnull Status status, @Nonnull java.lang.String description)
responses
- status
- description
- status descriptionpublic static java.lang.String encodeRefName(@Nonnull java.lang.String refName)
refName
- stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.