Ignore:
Timestamp:
08/20/13 13:54:43 (11 years ago)
Author:
mwindhouwer
Message:

Made the ISOcat API more RESTful:

  • create resources using POST
  • update resources using PUT

One outlier: we use POST for creating users eventhough the client in this case specifies the full resource URL
Other outliers: in many cases we allow a dummy 0 for a POST call, e.g., POST /dcs/0 to create a new DCS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/cr.acc

    r2029 r3447  
    132132                                        <operand>var:method</operand>
    133133                                        <operator>
    134                                                 <xpath>.='PUT'</xpath>
     134                                                <xpath>.='POST'</xpath>
    135135                                        </operator>
    136136                                        <target>this:cond</target>
     
    240240                                        <operand>var:method</operand>
    241241                                        <operator>
    242                                                 <xpath>.='POST'</xpath>
     242                                                <xpath>.='PUT'</xpath>
    243243                                        </operator>
    244244                                        <target>this:cond</target>
Note: See TracChangeset for help on using the changeset viewer.