c# - Web API response xml language -


i having simple post url clients send post request.

http://mydomain.com/requests/request

post data:

<request> <orderid>1e008921</orderid> <ordername>mc1</ordername> </request> 

to respond sending them xml

<srequest> <requestedby>client 1 </requestedby> <requestname>test name</requestname> <requeststatus>success</requeststatus> <srequest> 

now client wants above xml in different language (say french)

how handle ? how send response language preference in web api ? specially post scenario ? (append language string ? or best practices ?)

i suggest either include in url: http://mydomain.com/fr/requests/request or use http header accept-language. read more in answer to: good way changing language resources dynamically request


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -