Versioning of Procedure

1

I'm having a bit of a conceptual doubt.

I am currently working on a project where I will have to version the calls from some api's. For example:

Urls: /api/V1.0/Chamados/1220
      /api/V1.5/Chamados/1220

The difference between the two calls is that version 1.5 will return some more fields. Only the system uses Stored Procedures (and I do not have the autonomy to change this condition ... it has to be this way, period).

How would you DO NOT CHANGE the procedure that caters to version 1.0? Would it be the case to duplicate the procedure and add the fields? Does anyone know of a different kind of approach?

    
asked by anonymous 17.07.2018 / 23:21

1 answer

0

Pass a parameter with the version for the procedure and based on the informed version you make the return of the data.

    
23.07.2018 / 22:42