Java Webservice Interview Question

Connect with

  1. What is difference between a URI and a Resource
  2. To understand Consider the following:

    POST: http:/mysoftkey.com/user
    GET: http:/mysoftkey.com/user/1
    PUT: http:/mysoftkey.com/user/1
    DELETE: http:/mysoftkey.com/user/1

    POST, GET, PUT, DELETE are the HTTP methods

    http:/mysoftkey.com/user, http:/mysoftkey.com/user/1 are URI’s

    user/1 is a user, which is a resource


Connect with

Leave a Reply

Your email address will not be published. Required fields are marked *