简体   繁体   中英

How to generate WADL for rest service written with fastapi python?

The developer who will interact with my web service will require a wsdl. As I understand it, wsdl is for the soap service, and wadl for my rest service. The web service has already been written. How can I get/generate this file?

So, you've just bumped the REST vs SOAP conundrum. =)

There is no practical way to generate a WSDL description for a REST service.

But again, there is not really a good reason to do that, since they're consumed differently.

Your options are:

  • explain to the developer who will use your web service that this is a REST service (and not SOAP)
  • write a SOAP version of your service

In either case, you want to document and possibly give examples on how to consume the service. FastAPI already helps to do that with the /docs page, but you may need to better document how it's supposed to be used.

Good luck!

Read more

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM