Fastapi: [QUESTION] Consume webservices (rest/soap)

Created on 11 Mar 2020  路  5Comments  路  Source: tiangolo/fastapi

First check

  • [ x ] I used the GitHub search to find a similar issue and didn't find it.
  • [ x ] I searched the FastAPI documentation, with the integrated search.
  • [ x ] I already searched in Google "How to X in FastAPI" and didn't find any information.

Description

How can I consume a webservice written in restfull / soap?

Additional context

Project scenario:

I will build a robust api with several features involving workflow as well as payment flow. With this, in the project I will have to consume several web services (soap / rest) to make integrations with other systems.

question

All 5 comments

isn't integrating/using httpx in for consuming rest apis an option? I'm not sure but I would have done it that way.

Thanks @jorgerpo @zero-shubham

Thanks for the help here @zero-shubham and @jorgerpo !

Yes, HTTPX would be the best match for FastAPI.

If that solves your problem, may we close this issue @mayermatheus ?

Yes, @tiangolo

Was this page helpful?
0 / 5 - 0 ratings