Jump to content
Sign in to follow this  
Andrea Magni

New feature: Required attribute for (Path|Query|Form|Cookie|Header|Body)Params

Recommended Posts

Just pushed: https://github.com/andrea-magni/MARS/commit/a0bcbce5c43dbb45648d89e6bc3a44b74e7996bd

 

If you define a QueryParam or any other kind of param as argument of your method (or field of your resource), you can now enforce whether it is required or not.

If a required parameter is not found, MARS will throw an exception while parsing the request.

 

HTH

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×