Can We Make URI Parameter Optional?
Can We Make URI Parameter Optional? You can make a URI parameter as optional by adding a question mark (“?”) to the route parameter. If you make a route parameter as optional then you must specify a default value by using parameter = value for the method parameter. Can query parameters be mandatory? Yes, mandatory