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

258
Views
¿Cómo llamar a una ruta FastAPI desde NodeJS?

esta es mi ruta FasiAPI:

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

El backend de mi aplicación web se ejecuta en NodeJs + ExpressJS. Tengo el almacén de archivos en './uploads/filename.jpeg'

FastAPI se está ejecutando en: localhost:8000

Servidor back-end web ejecutándose en: localhost:3000

¡Gracias por adelantado!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede enviar una solicitud directamente a través de url: localhost: 8000/ utilizando el módulo de solicitud.

 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!