Answers for "https://community.smartbear.com/t5/Swagger-Open-Source-Tools/Swagger-UI-does-not-show-the-externalValue-URL-contents-while/m-p/232334#M2404"

0

https://community.smartbear.com/t5/Swagger-Open-Source-Tools/Swagger-UI-does-not-show-the-externalValue-URL-contents-while/m-p/232334#M2404

import javax.ws.rs.*;

import org.eclipse.microprofile.openapi.annotations.media.ExampleObject;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import org.eclipse.microprofile.openapi.annotations.parameters.Parameter;
import org.eclipse.microprofile.openapi.annotations.parameters.RequestBody;



@Path("/api")
public class Resources{


@POST
@Path("/generate")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@RequestBody(description = "InputTemplate",
content = @Content(examples = {
@ExampleObject(name = "Schema Example", externalValue = "https://jsonplaceholder.typicode.com/todos/1")
}))
public Multi<String> generateTestData(final Map<String, Object> input){
return null;
}
}
Posted by: Guest on April-10-2022

Browse Popular Code Answers by Language