Вы находитесь на странице: 1из 7

Music App

Login Api(OAuth Password) -

 Open your Rest Client of choice


 Prepare a POST-Request to your appalbum webserver using the relative
URL oauth/v2/token
E. g. the current test servers oauth authoirzation url is https://api.app-a.io/oauth/v2/token
 Generate the Basic Auth Header using your client credentials. E.g using Postman:

 This will generate the Basic Auth Header:


Basic
MV81NXdwbzY1d29wNTBrYzg4c2dvZ2NzZ2tvb2tzOG9nODRnODRrMDRzY2djY2Nn
OG80d3M6MjNvcmZtOWdjbGhjNG9nYzQwNG84NGNrYzBzNDhnb2tzc29vb2c4OHc4
c2dzOHc4NDA=
 Pass client and user credentials and the password grant type inside your request
body as form-data:

client_id:1_55wpo65wop50kc88sgogcsgkooks8og84g84k04scgcccg8o4ws
client_secret:23orfm9gclhc4ogc404o84ckc0s48gokssooog88w8sgs8w840
grant_type:password
username:placuser1@wits.bz
password:Aaaa1111
 Pass client and user credentials and the password grant type inside your request
body as form-data for Registration:

client_id:1_55wpo65wop50kc88sgogcsgkooks8og84g84k04scgcccg8o4ws
client_secret:23orfm9gclhc4ogc404o84ckc0s48gokssooog88w8sgs8w840
grant_type:client_credentials

 To authorize future requests to the api use the access_token as a bearer token inside
your authorization header:
Registration Api -

 Open your Rest Client of choice


 Prepare a POST-Request to your appalbum webserver using the relative URL /user
E. g. the current test servers config url is https://api.app-a.io/api/user
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer NjU5ZDY3OWU0NTVlOGFjZDFhYmJhYjE0NWI3YjUzYmQ5MzVjODQ1
NjdhNTc5NDNlYTFhZDU4OGRhZWU0NjI5OA

 Pass user detail inside your request body as form-data:

E. g.

{"password":"Asdf12345i!","email":"witstesting@wits.bz","firstname":"User31","lastname":"
User31","birthday":"2005-07-21","gender":"Male","language":"1","logintype":"native","fore
ignkey":""}
Config Api -

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative URL /config E.
g. the current test servers config url is https://api.app-a.io/api/config
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer NjU5ZDY3OWU0NTVlOGFjZDFhYmJhYjE0NWI3YjUzYmQ5MzVjODQ1
NjdhNTc5NDNlYTFhZDU4OGRhZWU0NjI5OA

Get User Detail Api -

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative
URL /user?email=qa.plactron@gmail.com E. g.
the current test servers get User detail url is
https://api.app-a.io/api/user?email=qa.plactron@gmail.com
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer NjU5ZDY3OWU0NTVlOGFjZDFhYmJhYjE0NWI3YjUzYmQ5MzVjODQ1
NjdhNTc5NDNlYTFhZDU4OGRhZWU0NjI5OA
Get News Detail Api -

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative URL /news
E. g. the current test servers get User detail url is https://api.app-a.io/api/news
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer MGI0MTJhYTYwZjMzMWJjZGE2MjBhY2Q1MzgwYTQzMDU1Y
2FiYjgyNzViNjA4ZDUxNWY4ZmQ0YWM1MWM1YzIyMA

Get All Albums Detail Api-

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative URL /albums
E. g. the current test servers get All album detail url is https://api.app-a.io/api/albums
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer MGI0MTJhYTYwZjMzMWJjZGE2MjBhY2Q1MzgwYTQzMDU1Y
2FiYjgyNzViNjA4ZDUxNWY4ZmQ0YWM1MWM1YzIyMA
Get Purhchased Album Detail Api -

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative URL /albums
E. g. the current test servers get Purchased album detail url is
https://api.app-a.io/api/albums?purchases
 Pass Oauth Access Token Inside your Api Header :

E. g. Bearer MGI0MTJhYTYwZjMzMWJjZGE2MjBhY2Q1MzgwYTQzMDU1Y
2FiYjgyNzViNjA4ZDUxNWY4ZmQ0YWM1MWM1YzIyMA

Get Latest Album Detail Api -

 Open your Rest Client of choice


 Prepare a GET-Request to your appalbum webserver using the relative URL /albums
E. g. the current test servers get Latest album detail url is
https://api.app-a.io/api/albums?latestOnly=true
 Pass Oauth Access Token Inside your Api Header :
E. g. Bearer MGI0MTJhYTYwZjMzMWJjZGE2MjBhY2Q1MzgwYTQzMDU1Y
2FiYjgyNzViNjA4ZDUxNWY4ZmQ0YWM1MWM1YzIyMA

Вам также может понравиться