Agree. APISIX should be as simple as possible, and because Swagger has fixed formats, so we could use js to parse the yml file, and then do a batch create to APISIX.
Ming Wen <wenm...@apache.org>于2020年5月14日 周四下午5:35写道: > I think it may be more suitable as a separate tool, and it will be more > flexible. > How about add this parser tool in dashhaord? > > Thanks, > Ming Wen, Apache APISIX & Apache SkyWalking > Twitter: _WenMing > > > Nirojan Selvanathan <sshn...@gmail.com> 于2020年5月12日周二 下午5:13写道: > > > Hi All, > > > > Many use Open API specification to define the APIs. It would be nice if > we > > can support the feature > > to import the API specification and to automatically create routes based > on > > the specification. In case if we support this how can we implement this? > > > > - Feature as part of the Admin API? An upload Open API spec endpoint? > > - A separate script (probably python ?) to parse the swagger spec and > > create routes? > > > > Also, I assume we need to provide support for a route prefix when > importing > > the swagger specs. > > Would like to know your thoughts on this. > > -- > > Best Regards, > > S.Nirojan > > Linked-in <https://www.linkedin.com/in/niroselva/> > > > -- 来自 琚致远