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

231
Views
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 answers
Answer question

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 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!