Changeset 3447


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

Location:
cats/ISOcat/trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/index.acc

    r2893 r3447  
    1919                                                                <link rel="shortcut icon" href="{$props//site}interface/JSXAPPS/ISOcat/images/favicon.ico"/>
    2020                                                                <link rel="icon" href="{$props//site}interface/JSXAPPS/ISOcat/images/favicon.gif" type="image/gif"/>
    21                                                                 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
     21                                                                <!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>-->
    2222                                                        </head>
    2323                                                        <body BGCOLOR="#9898a5" SCROLL="no"
    2424                                                                style="position:absolute;width:100%;height:100%;left:0px;top:0px;padding:0px;margin:0px;border:0px;overflow:hidden;">
    2525                                                                <div id="jsxmain" style="position:absolute;left:0px;top:0px;width:100%;height:100%;">
    26                                                                         <script type="text/javascript" src="{$props//static}gi/3_9_1/JSX/js/JSX30.js"
     26                                                                        <script type="text/javascript" src="{$props//static}gi/3_9_2-r1111/JSX/js/JSX30.js"
    2727                                                                jsxapppath="{$props//site}interface/JSXAPPS/ISOcat/"
    2828                                                                        jsxlt="true"
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/components/DataCategoryEditor.xml

    r3344 r3447  
    362362                                  <object type="jsx3.gui.ImageButton">
    363363                                    <variants jsxwidth="16" jsxheight="16" jsxprefetch="1" jsxtype="0" jsxstate="0"></variants>
    364                                     <strings jsxname="resetEffectiveDate" jsximage="jsx:///images/list/delete.gif" jsxoverimage="jsx:///images/list/delete.gif" jsxdownimage="jsx:///images/list/delete.gif" jsxonimage="jsx:///images/list/delete.gif" jsxdisabledimage="jsx:///images/list/delete.gif"></strings>
     364                                    <strings jsxname="resetEffectiveDate" jsximage="jsx:///images/list/delete.gif" jsxoverimage="jsx:///images/list/delete.gif" jsxdownimage="jsx:///images/list/delete.gif" jsxonimage="jsx:///images/list/delete.gif" jsxdisabledimage="jsx:///images/list/delete.gif" jsxvisibility="visible"></strings>
    365365                                    <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.resetEffectiveDate();"></events>
    366366                                  </object>
     
    397397                                  <object type="jsx3.gui.ImageButton">
    398398                                    <variants jsxwidth="16" jsxheight="16" jsxprefetch="1" jsxtype="0" jsxstate="0"></variants>
    399                                     <strings jsxname="resetUntilDate" jsximage="jsx:///images/list/delete.gif" jsxoverimage="jsx:///images/list/delete.gif" jsxdownimage="jsx:///images/list/delete.gif" jsxonimage="jsx:///images/list/delete.gif" jsxdisabledimage="jsx:///images/list/delete.gif"></strings>
     399                                    <strings jsxname="resetUntilDate" jsximage="jsx:///images/list/delete.gif" jsxoverimage="jsx:///images/list/delete.gif" jsxdownimage="jsx:///images/list/delete.gif" jsxonimage="jsx:///images/list/delete.gif" jsxdisabledimage="jsx:///images/list/delete.gif" jsxvisibility="visible"></strings>
    400400                                    <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.resetUntilDate();"></events>
    401401                                  </object>
     
    671671                                          <object type="jsx3.gui.Select">
    672672                                            <variants jsxrelativeposition="0" jsxleft="16" jsxtop="0" jsxheight="20" jsxzindex="10"></variants>
    673                                             <strings jsxwidth="100%" jsxname="profileMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxvalue="profile-5" jsxxmlid="profiles-_jsx_1_15b"></strings>
     673                                            <strings jsxwidth="100%" jsxname="profileMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxvalue="profile-5" jsxxmlid="profiles-_jsx_1_17u"></strings>
    674674                                          </object>
    675675                                        </object>
     
    807807                                        <object type="jsx3.gui.Menu">
    808808                                          <variants jsxxmlasync="1"></variants>
    809                                           <strings jsxname="languageMenuLeft" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_15b-left" jsximage="images/flag.png"></strings>
     809                                          <strings jsxname="languageMenuLeft" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_17u-left" jsximage="images/flag.png"></strings>
    810810                                          <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLanguageSection(this,objRECORD); "></events>
    811811                                        </object>
     
    817817                                        <object type="jsx3.gui.Menu">
    818818                                          <variants jsxxmlasync="1"></variants>
    819                                           <strings jsxname="languageMenuRight" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_15b-right" jsximage="images/flag.png"></strings>
     819                                          <strings jsxname="languageMenuRight" jsxtip="Select a language section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="language-_jsx_1_17u-right" jsximage="images/flag.png"></strings>
    820820                                          <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLanguageSection(this,objRECORD);"></events>
    821821                                        </object>
     
    10201020                                          <object type="jsx3.gui.Select">
    10211021                                            <variants jsxwidth="150" jsxheight="18" jsxxmlasync="1" _isfocusing="true"></variants>
    1022                                             <strings jsxname="datatypes" jsxmargin="0 4 0 0" jsxxmlid="datatypes-_jsx_1_15b" jsxvalue="datatype-1"></strings>
     1022                                            <strings jsxname="datatypes" jsxmargin="0 4 0 0" jsxxmlid="datatypes-_jsx_1_17u" jsxvalue="datatype-1"></strings>
    10231023                                            <events jsxselect="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.changed();"></events>
    10241024                                          </object>
     
    11161116                                                        <object type="jsx3.gui.Select">
    11171117                                                          <variants jsxrelativeposition="0" jsxleft="16" jsxtop="20" jsxheight="20" jsxzindex="10" _isfocusing="true"></variants>
    1118                                                           <strings jsxwidth="100%" jsxname="ruleTypeMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxxmlid="ruletypes-_jsx_1_15b" jsxvalue="Object Constraint Language"></strings>
     1118                                                          <strings jsxwidth="100%" jsxname="ruleTypeMask" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;&gt;&#xA;&lt;record jsxid=&quot;1&quot; jsxtext=&quot;One&quot;/&gt;&#xA;&lt;record jsxid=&quot;2&quot; jsxtext=&quot;Two&quot;/&gt;&#xA;&lt;record jsxid=&quot;3&quot; jsxtext=&quot;Three&quot;/&gt;&#xA;&lt;/data&gt;" jsxdisplay="none" jsxxmlid="ruletypes-_jsx_1_17u" jsxvalue="Object Constraint Language"></strings>
    11191119                                                          <events jsxselect="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.changed();"></events>
    11201120                                                        </object>
     
    11831183                                                <object type="jsx3.gui.Menu">
    11841184                                                  <variants jsxxmlasync="1"></variants>
    1185                                                   <strings jsxname="linguisticMenuLeft" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_15b-left" jsximage="images/flag.png"></strings>
     1185                                                  <strings jsxname="linguisticMenuLeft" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_17u-left" jsximage="images/flag.png"></strings>
    11861186                                                  <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLinguisticSection(this,objRECORD); "></events>
    11871187                                                </object>
     
    11931193                                                <object type="jsx3.gui.Menu">
    11941194                                                  <variants jsxxmlasync="1"></variants>
    1195                                                   <strings jsxname="linguisticMenuRight" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_15b-right" jsximage="images/flag.png"></strings>
     1195                                                  <strings jsxname="linguisticMenuRight" jsxtip="Select a linguistic section." jsxtext="Language" jsxxml="&lt;data jsxid=&quot;jsxroot&quot;/&gt;" jsxxmlid="linguistic-_jsx_1_17u-right" jsximage="images/flag.png"></strings>
    11961196                                                  <events jsxexecute="this.getAncestorOfName(&quot;DataCategoryEditor&quot;).controller.selectLinguisticSection(this,objRECORD);"></events>
    11971197                                                </object>
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/data/CR.js

    r2288 r3447  
    187187                        this.cdf(this.toCDF(grp,tdg,descr,dcs,copies));
    188188                       
    189                         var req = this.send("PUT");
     189                        var req = this.send("POST");
    190190                        if (req != null) {
    191191                                this.created(req);
     
    272272    CR_prototype.update = function(status,msg) {   
    273273                if (this.status() != "NEW") {
    274                         var req = this.send("POST");
     274                        var req = this.send("PUT");
    275275                        if (req != null) {
    276276                                this.updated(req);
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/data/Group.js

    r2288 r3447  
    163163        Group_prototype.create = function() {
    164164                if (this.status() == "NEW") {
    165                         var req = this.send("PUT");
     165                        var req = this.send("POST");
    166166                        if (req != null) {
    167167                                this.created(req);
     
    234234        Group_prototype.update = function() {
    235235                if (this.status() != "NEW") {
    236                         var req = this.send("POST");
     236                        var req = this.send("PUT");
    237237                        if (req != null) {
    238238                                this.updated(req);
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/data/User.js

    r2288 r3447  
    119119                        var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+"/session/0";
    120120                        this._prefix = jsx3.xml.CDF.getKey();
    121                         req = jsx3.net.Request.open("PUT",uri,false,this._prefix+"-"+this._login,this._password);
     121                        req = jsx3.net.Request.open("POST",uri,false,this._prefix+"-"+this._login,this._password);
    122122                        org.isocat.data.User.log.info("uri["+uri+"] ["+this._prefix+"-"+this._login+":"+this._password+"]");
    123                         req.send("<session/>");// PUT an empty session document
     123                        req.send("<session/>");// POST an empty session document
    124124                } else if (this._method == "shib") {
    125125                        var uri = "http://isocat:8080/isocat/rest/shib/sso";
     
    181181                        var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+".xml";
    182182                       
    183                         //req = new jsx3.net.Request().open("POST",uri,false,this._login,this._password);
    184                         req = new jsx3.net.Request().open("POST",uri,false);
     183                        //req = new jsx3.net.Request().open("PUT",uri,false,this._login,this._password);
     184                        req = new jsx3.net.Request().open("PUT",uri,false);
    185185                        req.setRequestHeader("Content-Type","application/xml");// IE doesn't set this automagically (FF does), and otherwise NK won't pass it on to the ISOcat accessors
    186186                        req.send(res.toString());
     
    265265        User_prototype.lockDC = function(id) {
    266266                var uri = "http://isocat:8080/isocat/rest/user/"+escape(this._login)+"/session/"+this._session.id+"/lock/dc/"+id;
    267                 org.isocat.data.User.log.info("request[PUT] uri["+uri+"]");
    268                 var req = jsx3.net.Request.open("PUT",uri,false);
    269                 req.send("<lock/>");// PUT an empty lock document
    270                 org.isocat.data.User.log.info("request[PUT] uri["+uri+"] status["+req.getStatus()+"] response["+req.getResponseText()+"]["+req.getResponseXML()+"]");
     267                org.isocat.data.User.log.info("request[POST] uri["+uri+"]");
     268                var req = jsx3.net.Request.open("POST",uri,false);
     269                req.send("<lock/>");// POST an empty lock document
     270                org.isocat.data.User.log.info("request[POST] uri["+uri+"] status["+req.getStatus()+"] response["+req.getResponseText()+"]["+req.getResponseXML()+"]");
    271271                if (req.getStatus()==201) {
    272272                        // acquired the DC lock
  • 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";
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/DCEditor.js

    r3344 r3447  
    14101410                }
    14111411                               
    1412                 var method = "POST";
     1412                var method = "PUT";
    14131413                if (typeof(this.dc) == 'undefined')
    1414                         method = "PUT";
     1414                        method = "POST";
    14151415                               
    14161416                org.isocat.gui.DCEditor.log.info("accessing service uri["+uri+"]["+method+"]["+dcifDoc+"]");
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/js/org/isocat/gui/Register.js

    r2288 r3447  
    167167                        var uri = "http://isocat:8080/isocat/rest/user/"+escape(user)+".xml";
    168168               
    169                         var req = new jsx3.net.Request().open("PUT",uri,false);
     169                        //NOTE: as the URL of the new user is fully specified this should be a PUT instead of a POST, but this is an outlier to the rest of the API
     170                        var req = new jsx3.net.Request().open("POST",uri,false);
    170171                        req.setRequestHeader("Content-Type","application/xml");// IE doesn't set this automagically (FF does), and otherwise NK won't pass it on to the ISOcat accessors
    171172                        req.send(res.toString());
     
    174175                                org.isocat.gui.Register.log.info("created user["+user+"] profile");
    175176                                this.view.doClose();
    176                                 org.isocat.APP.alert("Your registration was successful.","You will receive an email  containing your password and your account details at your email address.",null,"OK")
     177                                org.isocat.APP.alert("Your registration was successful.","You will receive an email containing your password and your account details at your email address.",null,"OK")
    177178                        } else {
    178179                                org.isocat.gui.Register.log.info("failed to create user["+this._login+"] profile: "+req.getStatus()+"["+req.getStatusText()+"]");
  • cats/ISOcat/trunk/mod-ISOcat-interface-gi/interface/settings/builder.xml

    r3344 r3447  
    33  <record jsxid="window" type="map">
    44    <record jsxid="splitters" type="map">
    5       <record jsxid="jsx_ide_splitter1" type="string">81.88775510204081%</record>
     5      <record jsxid="jsx_ide_splitter1" type="string">95.56962025316456%</record>
    66      <record jsxid="jsx_ide_splitter2" type="string">21.369047619047617%</record>
    77      <record jsxid="jsx_ide_splitter3" type="string">41.20734908136483%</record>
     
    5454    <record jsxid="JSXAPPS/ISOcat" type="map">
    5555      <record jsxid="recentFiles" type="array">
    56         <record jsxid="0" type="string">components/appCanvas.xml</record>
    57         <record jsxid="1" type="string">jss/locale.xml</record>
    58         <record jsxid="2" type="string">components/DataCategoryEditor.xml</record>
     56        <record jsxid="0" type="string">components/DataCategoryEditor.xml</record>
     57        <record jsxid="1" type="string">components/appCanvas.xml</record>
     58        <record jsxid="2" type="string">jss/locale.xml</record>
    5959        <record jsxid="3" type="string">components/Scope.xml</record>
    6060        <record jsxid="4" type="string">components/User.xml</record>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/etc/XRLLinks.xml

    r2922 r3447  
    9999        <link>
    100100                <ext>/group/new</ext>
    101                 <int>active:sloot.accessor+operand@ffcpl:/interface/group.acc+method@data:text/plain,PUT</int>
     101                <int>active:sloot.accessor+operand@ffcpl:/interface/group.acc+method@data:text/plain,POST</int>
    102102                <args>credentials,group,param</args>
    103103        </link>
     
    123123        <link>
    124124                <ext>/user/session/new</ext>
    125                 <int>active:sloot.accessor+operand@ffcpl:/interface/session.acc+method@data:text/plain,PUT</int>
     125                <int>active:sloot.accessor+operand@ffcpl:/interface/session.acc+method@data:text/plain,POST</int>
    126126                <args>credentials,user,session</args>
    127127        </link>
     
    144144        <link>
    145145                <ext>/user/session/lock/new/dc</ext>
    146                 <int>active:sloot.accessor+operand@ffcpl:/interface/lock.acc+type@data:text/plain,data%2520category+method@data:text/plain,PUT</int>
     146                <int>active:sloot.accessor+operand@ffcpl:/interface/lock.acc+type@data:text/plain,data%2520category+method@data:text/plain,POST</int>
    147147                <args>credentials,user,session,lock,dc</args>
    148148        </link>
  • 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>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/dc.acc

    r2612 r3447  
    334334                                        <operand>var:method</operand>
    335335                                        <operator>
    336                                                 <xpath>.='PUT'</xpath>
     336                                                <xpath>.='POST'</xpath>
    337337                                        </operator>
    338338                                        <target>this:cond</target>
     
    340340                        </cond>
    341341                        <then>
    342                                 <accessor-trace name="PUT">
     342                                <accessor-trace name="POST">
    343343                                        <if>
    344344                                                <cond>
     
    448448                                        <operand>var:method</operand>
    449449                                        <operator>
    450                                                 <xpath>.='POST'</xpath>
     450                                                <xpath>.='PUT'</xpath>
    451451                                        </operator>
    452452                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/dcs.acc

    r2029 r3447  
    166166                                        <operand>var:method</operand>
    167167                                        <operator>
    168                                                 <xpath>.='PUT'</xpath>
     168                                                <xpath>.='POST'</xpath>
    169169                                        </operator>
    170170                                        <target>this:cond</target>
     
    205205                                        </instr>
    206206                                </accessor-debug>
    207                                 <accessor-trace name="PUT">
     207                                <accessor-trace name="POST">
    208208                                        <instr>
    209209                                                <type>ISOcat.manage.dcs.new</type>
     
    241241                                        <operand>var:method</operand>
    242242                                        <operator>
    243                                                 <xpath>.='POST'</xpath>
     243                                                <xpath>.='PUT'</xpath>
    244244                                        </operator>
    245245                                        <target>this:cond</target>
     
    280280                                        </instr>
    281281                                </accessor-debug>
    282                                 <accessor-trace name="POST">
     282                                <accessor-trace name="PUT">
    283283                                        <instr>
    284284                                                <type>ISOcat.manage.dcs.update</type>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/group.acc

    r2322 r3447  
    120120                                        <operand>var:method</operand>
    121121                                        <operator>
    122                                                 <xpath>.='PUT'</xpath>
     122                                                <xpath>.='POST'</xpath>
    123123                                        </operator>
    124124                                        <target>this:cond</target>
     
    204204                                        <operand>var:method</operand>
    205205                                        <operator>
    206                                                 <xpath>.='POST'</xpath>
     206                                                <xpath>.='PUT'</xpath>
    207207                                        </operator>
    208208                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/lock.acc

    r2612 r3447  
    9595                </choose>
    9696                <choose>
    97                         <!-- PUT: acquire a new lock -->
     97                        <!-- POST: acquire a new lock -->
    9898                        <cond>
    9999                                <instr>
     
    101101                                        <operand>var:method</operand>
    102102                                        <operator>
    103                                                 <xpath>.='PUT'</xpath>
     103                                                <xpath>.='POST'</xpath>
    104104                                        </operator>
    105105                                        <target>this:cond</target>
     
    277277                                </instr>
    278278                        </then>
    279                         <!-- POST: use an existing lock -->
     279                        <!-- PUT: use an existing lock -->
    280280                        <cond>
    281281                                <instr>
     
    283283                                        <operand>var:method</operand>
    284284                                        <operator>
    285                                                 <xpath>.='POST'</xpath>
     285                                                <xpath>.='PUT'</xpath>
    286286                                        </operator>
    287287                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/private.acc

    r2029 r3447  
    127127                                        <operand>var:method</operand>
    128128                                        <operator>
    129                                                 <xpath>.='PUT'</xpath>
     129                                                <xpath>.='POST'</xpath>
    130130                                        </operator>
    131131                                        <target>this:cond</target>
     
    148148                                        <operand>var:method</operand>
    149149                                        <operator>
    150                                                 <xpath>.='POST'</xpath>
     150                                                <xpath>.='PUT'</xpath>
    151151                                        </operator>
    152152                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/profile.acc

    r2029 r3447  
    160160                                        <operand>var:method</operand>
    161161                                        <operator>
    162                                                 <xpath>.='PUT'</xpath>
     162                                                <xpath>.='POST'</xpath>
    163163                                        </operator>
    164164                                        <target>this:cond</target>
     
    181181                                        <operand>var:method</operand>
    182182                                        <operator>
    183                                                 <xpath>.='POST'</xpath>
     183                                                <xpath>.='PUT'</xpath>
    184184                                        </operator>
    185185                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/session.acc

    r2029 r3447  
    3939                                        <operand>var:method</operand>
    4040                                        <operator>
    41                                                 <xpath>.='PUT'</xpath>
     41                                                <xpath>.='POST'</xpath>
    4242                                        </operator>
    4343                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/shared.acc

    r2029 r3447  
    127127                                        <operand>var:method</operand>
    128128                                        <operator>
    129                                                 <xpath>.='PUT'</xpath>
     129                                                <xpath>.='POST'</xpath>
    130130                                        </operator>
    131131                                        <target>this:cond</target>
     
    148148                                        <operand>var:method</operand>
    149149                                        <operator>
    150                                                 <xpath>.='POST'</xpath>
     150                                                <xpath>.='PUT'</xpath>
    151151                                        </operator>
    152152                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/user.acc

    r2029 r3447  
    7171                                        <operand>var:method</operand>
    7272                                        <operator>
    73                                                 <xpath>.='PUT'</xpath>
    74                                         </operator>
    75                                         <target>this:cond</target>
    76                                 </instr>
    77                         </cond>
    78                         <then>
     73                                                <xpath>.='POST'</xpath>
     74                                        </operator>
     75                                        <target>this:cond</target>
     76                                </instr>
     77                        </cond>
     78                        <then>
     79                                <!-- NOTE: as the URL of the new user is fully specified this should be a PUT instead of a POST, but this is an outlier to the rest of the API-->
    7980                                <if>
    8081                                        <cond>
     
    129130                                        <operand>var:method</operand>
    130131                                        <operator>
    131                                                 <xpath>.='POST'</xpath>
     132                                                <xpath>.='PUT'</xpath>
    132133                                        </operator>
    133134                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/interface/workspace.acc

    r3041 r3447  
    135135                                        <operand>var:method</operand>
    136136                                        <operator>
    137                                                 <xpath>(.='PUT') or (.='POST') or (.='DELETE')</xpath>
     137                                                <xpath>(.='POST') or (.='PUT') or (.='DELETE')</xpath>
    138138                                        </operator>
    139139                                        <target>this:cond</target>
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/TDGs.html

    r3375 r3447  
    13881388 <tr>
    13891389  <td width=701 height=35 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
    1390   height:26.2479pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
     1390  height:26.0944pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
    13911391  padding-bottom:1.5pt;background:#E0E6E6;border-left:solid black 6.0pt;
    13921392  border-top:solid black .25pt;border-right:solid black 2.0pt;border-bottom:
     
    14221422 <tr>
    14231423  <td width=701 height=65 colspan=3 bgcolor="#E0E6E6" style='width:525.48pt;
    1424   height:49.0924pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
     1424  height:49.2459pt;padding-left:1.5pt;padding-right:1.5pt;padding-top:1.5pt;
    14251425  padding-bottom:1.5pt;background:#E0E6E6;border-left:solid black 6.0pt;
    14261426  border-top:solid black .25pt;border-right:solid black 2.0pt;border-bottom:
  • cats/ISOcat/trunk/mod-ISOcat-site/site/index_files/news.html

    r3375 r3447  
    823823  style='direction:ltr;unicode-bidi:embed;font-family:"Times New Roman";
    824824  font-size:10.0pt;language:x-none;color:black'>●</span><span style='width:
     825  12.75pt'>&nbsp;</span><span lang=en-US style='font-family:Verdana;language:
     826  en-US'>added button to explicitly reset an effective or until date</span></p>
     827  <p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
     828  style='direction:ltr;unicode-bidi:embed;font-family:"Times New Roman";
     829  font-size:10.0pt;language:x-none;color:black'>●</span><span style='width:
     830  12.75pt'>&nbsp;</span><span lang=en-US style='font-family:Verdana;language:
     831  en-US'>fixed SQL generation for ‘deleting’ fields, i.e., set them to NULL</span></p>
     832  <p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
     833  style='direction:ltr;unicode-bidi:embed;font-family:"Times New Roman";
     834  font-size:10.0pt;language:x-none;color:black'>●</span><span style='width:
    825835  12.75pt'>&nbsp;</span><a href="$site$12620/schemas/DCR-1_2.html"><span
    826836  lang=en-US style='font-family:Verdana;text-decoration:underline;language:
     
    829839  href="http://sourceforge.net/p/tei/bugs/441/"><span lang=en-US
    830840  style='font-family:Verdana;text-decoration:underline;language:en-US'>TEI Feature System Declarations</span></a></p>
     841  <p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
     842  style='direction:ltr;unicode-bidi:embed;font-family:"Times New Roman";
     843  font-size:10.0pt;language:x-none;color:black'>●</span><span style='width:
     844  12.75pt'>&nbsp;</span><span lang=en-US style='font-family:Verdana;language:
     845  en-US'>updated to General Interface 3.9.2 r1111 to fix IE 10 support</span></p>
    831846  <p class=MsoNormal><span lang=en-US style='font-family:Verdana;font-weight:
    832847  bold;language:en-US'>&nbsp;</span></p>
Note: See TracChangeset for help on using the changeset viewer.