Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
swagger-js client POST body missing

I've created a generated a swagger-documentation defining a small api. I wanted to consume this in Vue.js with swagger-js.

All is working fine with the GET-requests but when I try to supply a requestBody to my POST, it is just simply dropped:

new SwaggerClient({ spec })
          .then(
              (client) => {
                client
                    .apis
                    .Beverage
                    .orderBeverage({
                      requestBody: {
                        id_user: 1,
                        id_beverage: 1,
                        quantity: 1
                      }
                    })
                    .then(data => {
                      console.log(data.body)
                    });
              });

The corresponding swagger-definition can be found here, the full definition is here.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda