Hello All,
I have existing api with https://environmet/module/xyz Now PO/business user asking for few modification into it. they don't want to change the existing URL & also it is impacting no. of places.
I know api versioning in .net having multiple options like
1] Query String
2] URL
In the above 2 methods we need to change the URL.
3] HTTP Header Based versioning
In this case no need to change the existing URL need to change/update the header with version
How we can achieve/implement api versioning in outsystems
Hi Pradip,
Did you checked this forum discussion on API versioning.
Regards,
Rasika
Hi Rasika,
Thanks for the reply, i went through the link but i did not find meaningful. As i don't want to change my existing URL. Because we have multiple clients using that URL so i can not change it.
API header versioning is an option we can use, but i don't know how to implement it.
Hi @Pradip Chavhan,
Did you try adding a input parameter and receive it on headers? And execute the new or old logic accordingly.
Hope it may shed some light.
Hi @Arnold Ayaoan Jr i will go through it & i will share the feedback soon.
Thanks.
Hi Pradip
If you are using same API for multiple Clients, you can use 2 input parameters(1. ClientId,2. Input para DataType as Text ) and based on client write different logic and use JsonDeserialize for converting the Text to structure.