RestfulQB Mphasis
RestfulQB Mphasis
2 Which of the following HTTP method should be used to create resource using
3 Which of the following is a best practice for caching in RESTful web service?
Which of the following component of HTTP request contains message
4 content or Resource representation?
8 What is WADL?
12 Name The Most Commonly Http Methods Used In Designing Restful Services?
13 Which of the following HTTP Status code means OK REQUEST, states that valid
16 Which of the following annotation of JAX RS API is used to get status of method
17 Which of the following directive of Cache Control Header of HTTP response indicates that resource is ca
31 What is W3C?
32 What is OWIN?
33 What are the different approach to create entity?
Addressing
refers to
locating a
resource or It is analogous to
multiple locate a postal
resources lying address of a
on the server. person. representationa
A and B l service token c
SupportedMedi
SupportedMedi SupportedMedia aTypes.Add(ne
aTypes.Add(new Types.Add(new SupportedMediaType w
MediaTypeHead MediaTypeHead s.Add(new MediaTypeHea
erValue("text/te erValue("html/te MediaTypeHeaderVal derValue("html
xt")); xt")); ue("text/HTML")); /html")); c
windows
web application application webservices web api
description description application description
language language description language language a
World wide
World wide web World wide web World wide web windows
common consortium console console b
$.ajax({ $.ajax({
type: "Put", $.ajax({ type: "GET",
dataType: type: "GET", $.ajax({ dataType:
"JSONP", dataType: type: "POST", "jsonp",
url: "jsonp", dataType: "jsonp", url:
"http://localhost url: url: "http://localhos
:8080/restws/js "http://localhost: "http://localhost:8080 t:8080/restws/j
on/product/get" 8080/restws/json /restws/json/product/ son/product/po
, /product/get", get", st", b
{ { {
“code”: "1234", “code”: 1234, “code”= 1234,
“message” : “message” : { “message” =
“Something bad “Something bad code: 1234, “Something bad
happened :(“, happened :(“, message : Something happened :(“,
“description” : “description” : bad happened :(, “description” =
“More details “More details description : More “More details
about the error about the error details about the error about the error
here” here” here here”
} } } } b
Above Default ro Below default rou inside route cant define multiple route a
json xml string html b
Bad Request Ok proxy error not found a
Bad Request Ok proxy error not found b
Bad Request Ok proxy error not found d
400 401 500 501 a,b
400 401 500 501 c,d
300 200 201 500 b,c
Universal ResourcUniversal ResourceUniform Resource IdentiUniform Resource Identity c
Do not use undersUse lowercase lett use file extenstions Never use CRUD function names in URIs a,b,d
get put post delete c
RAML Hypermedia RSDL Odata a,b,c,d
IMG_PAT SUB_TOPI
H LEVEL TOPIC C REMARK QUE_ID
Basic
1 Restful web services REST
Basic
1 Restful web services REST
Basic
1 Restful web services REST
Basic
2 Restful web services REST
REST
2 Restful web services Intro
REST
1 Restful web services Intro
REST
Formatter
3 Restful web services s
REST
2 Restful web services Basic
REST
3 Restful web services Basic
REST
1 Restful web services Basic
REST
2 Restful web services Basic
REST
2 Restful web services Basic
REST
1 Restful web services Basic
REST
2 Restful web services Basic
REST
2 Restful web services Basic
REST
2 Restful web services Basic
REST
1 Restful web services Basic
REST
1 Restful web services Basic
REST
1 Restful web services Basic
REST
2 Restful web services Basic
REST
2 Restful web services Basic
REST
1 Restful web services Basic
REST
1 Restful web services Basic
REST
1 Restful web services Basic
REST
2 Restful web services Basic
REST
2 Restful web services Basic
3 Restful web services REST Into
3. Which of the following is a best practice for caching in RESTful web service?
A - Always keep static contents like images, css, JavaScript cacheable, with expiration date of 2 to 3 days.
4. Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP header?
A - @PathParam
B - @QueryParam
C - @MatrixParam
D - @HeaderParam