Significance of Adding Parms at Resource vs Method Level - REST Parameters
Hey,
I'm prepping for an interview and I've just realised there's something else I don't know the answer to!
When you create REST request parameters - you have a variety of parm options, template, matrix, query, header and plain options.
You can set these parms at either RESOURCE or METHOD level.
I was wondering the significance of setting these at RESOURCE vs METHOD level? Is there any advantage/disadvantage to setting them at a particular level? I've typically created them at RESOURCE level before now - simply thinking - set it at the parent level so that it filters down to any children - but I don't know if my idea about this is correct or if there's any advantages/disadvantages to setting the parms at a particular level.
Can anyone comment?
Thanks to all!
richie!