Hello All,
I have recently started my journey with API designing.
We are designing RESTful APIs. Have few questions related to API header, best practices, Query parameters, GET Vs POST?
What are the best practices to keep a clean and simple header ?
If I'm going to use CORS, do I need to always consider the parameter related in header ?
Is custom header is a good idea to use ?
Versioning - is a good to keep in URL or header ?
While using GET, if the parameters are contains sensitive/secured information it is not safe to pass through URL, especially in this case is it good to use POST instead of GET, and all the parameters can be passed through body instead of header.? Do we have any disadvantages here ?
We have few REST services (exposed to presentation layer) are integrated with SOAP services and the responses are converting from SOAP to REST (while displaying to UI layer) and all the custom header parameters are in SOAP, is it safe to keep in part of URL. Or is it better to keep a custom header in REST and do the SOAP REST transformation ?
I'm looking for your guidance/response.
Thanks in advance !!
Regards,
BKR