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
  • 703
  • 720

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)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java