Question
What are the best practices to create a standard uri for a web service?

Answers

Following are important points to be considered while designing a URI −

Use Plural Noun − Use plural noun to define resources. For example, we've used users to identify users as a resource.
Avoid using spaces − Use underscore(_) or hyphen(-) when using a long resource name, for example, use authorized_users instead of authorized%20users.
Use lowercase letters − Although URI is case-insensitive, it is good practice to keep url in lower case letters only.
Maintain Backward Compatibility − As Web Service is a public service, a URI once made public should always be available. In case, URI gets updated, redirect the older URI to new URI using HTTP Status code, 300.
Use HTTP Verb − Always use HTTP Verb like GET, PUT, and DELETE to do the operations on the resource. It is not good to use operations names in URI.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q The Union Cabinet has approved setting up the Pradhan Mantri Mahila Shakti Kendras across _______districts of the country
  • Q What are date methods?
  • Q How an ordinary citizen can contribute in reforming the political parties?
  • Q What do you mean by constant time complexity?
  • Q What is explanatory research?
  • Q Classes, instances, and methods are characteristics of:
  • Q You have written a java concurrent program in oracle apps. You want to modify the classpath such that new class classpath is effective just for this program?
  • Q How many Filmafare awards has Shahrukh Khan won?
  • Q What is teratogenesis?
  • Q If the business process needs to invoke another web service which resource do you use ?
  • Q How we can access conductor in netcool/omnibus?