Showing posts with label Rest. Show all posts
Showing posts with label Rest. Show all posts

Saturday, 21 May 2016

Difference between pathparam and QueryParam in Rest.

Difference between pathparam and QueryParam in Rest.

Pathparam : used get the part of the string from URL.
ex:  @Pathparam("id")
ex : http://localhost:8080/voice{id}

QueryParam  : using this we are able to access the key,value after from URL after "?"
ex:  @QueryParam("id")
ex : http://localhost:8080/voice?id=1009

Wednesday, 13 April 2016


Getting started with Facebook oauth2 api using postman

Facebook oauth2/

go the facebook developer
URL : https://developers.facebook.com/
Login/register
Register as facebook developer and click on basic setup

a) Create a New App ID  by providing the basic details and submit
b) get the appid , api version, app secret, Client Token
c) Enter the above details in postman client.
c.1) auth URL : https://graph.facebook.com/oauth/authorize
c.2) Access Token URL : https://graph.facebook.com/oauth/access_token
c.3) client id : "facebook App ID"
c.4) client secret : "facebook app secret "

d) You will be redirected to linked page
Authenticating the LinkedIn Account
enter the credentails and allow access

to access basic profile of the user

ex :  https://graph.facebook.com/me?access_token="genrated token"

append genrated token.

e) weill be able to see basic user details as response