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-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/Basket.js

    r2288 r3447  
    311311       
    312312                                var uri = "http://isocat:8080/isocat/rest/dcs";
    313                                 var method = "PUT";
     313                                var method = "POST";
    314314                                if (overwrite) {
    315315                                        uri += "/"+id;
    316                                         method = "POST";
     316                                        method = "PUT";
    317317                                }
    318318                                uri += ".xml";
Note: See TracChangeset for help on using the changeset viewer.