在swagger中为java端点显示Map <string,string>的示例模型

时间:2017-05-09 16:56:34

标签: swagger-ui

我有

In [117]: x = np.random.randint(0,9,(3,4,5,6,7))
     ...: y = np.random.randint(0,9,(3,4,5,6,7))
     ...: I = np.argmin(y,axis=-1)
     ...: 

In [118]: d0,d1,d2,d3,d4 = x.shape
     ...: s0,s1,s2,s3 = np.ogrid[:d0,:d1,:d2,:d3]
     ...: ymin = y[s0,s1,s2,s3,I]
     ...: xmin = x[s0,s1,s2,s3,I]
     ...: 

In [119]: np.allclose( y.min(-1), ymin)
Out[119]: True

In [120]: indxs = np.ix_(*[np.arange(i) for i in x.shape[:-1]]) + (I,)
     ...: ymin = y[indxs]
     ...: xmin = x[indxs]
     ...: 

In [121]: np.allclose( y.min(-1), ymin)
Out[121]: True

但swagger以@POST @Path("/path-to-call") @Timed @ActionRequired("my path-to-call") @ApiOperation("description of call") @Produces(MediaType.APPLICATION_JSON) public Response processmyCall(Map<String, String> requestBody) throws Exception{ 为模型显示。

我怎么告诉它显示

{}

0 个答案:

没有答案