Endpoint accepting object and array of objects

1

This is a question that refers more to good practice.

The scenario is that I have 2 endpoints to receive a given record. In the first I receive the object and register one per requisition. In the second I get an array of this object, iterate and register one at a time.

My question is whether there is a convention about whether I should merge these two endpoints or continue to offer one service for joint and one individual.

    
asked by anonymous 06.06.2018 / 14:38

0 answers