Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
How to call a FastAPI route from NodeJS?

this is my FasiAPI route :

@app.post("/files/")
async def create_file(file: UploadFile = Form(...)):
    #some ml code
    return {'detected_face': base64_return, 'feature_vector': str(embedded)}

My webapp backend is running on NodeJs + ExpressJS. I have the file store in './uploads/filename.jpeg'

FastAPI is running on : localhost:8000

Web backend server running on : localhost:3000

Thanks in advance!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can send request directly through url: localhost:8000/ by using request module.

request('http://localhost:8000/files/<parameter>', function (error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body)
    }
})
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!