Link Details

Link 974085 thumbnail
User 448255 avatar

By dotCore
via css.dzone.com
Published: May 26 2013 / 05:12

here are cases when you have to send a complex object to server side using GET requests. In order to achieve that you would use the URI binding by decorating the controller method parameter with [FromURI] attribute. So if you have an object called "Criteria" which is composed from "CriteriaA" and" CriteriaB" properties, your GET request would look like this: http://myapplication/api/getfoobycriteria?CriteriaA=valueA&CriteriaB=valueB.
  • 6
  • 0
  • 632
  • 718

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (0)



    Spring Integration
    Written by: Soby Chacko
    Featured Refcardz: Top Refcardz:
    1. Search Patterns
    2. Python
    3. C++
    4. Design Patterns
    5. OO JS
    1. PhoneGap
    2. Spring Integration
    3. Regex
    4. Git
    5. Java