Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
how to handle a post collection zf2 rest

Everywhere I read that the POST method in ZF2 RestController is builded to support create Collections of data

But I can't find a tutorial on internet that shows a create collection method, I only found alone enitity been created in POST create method.

So, how handle the POST (create) method to accept only one Entity post or a Collection of Entities

sorry for my English, I'm Brazilian

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I assume you are talking about the implementation of this controller https://github.com/zendframework/zend-mvc/blob/master/src/Controller/AbstractRestfulController.php

Basically, it is up to you how you will implement the create() method. You can either support multiple record creation or not. You have all the freedom how you will process the payload data.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda