Running the Examples
Typical use cases for the CRUD REST API are provided in
Example Requests. Follow the steps in this procedure to work with the examples.
Before you can run the examples, you must first install the Chrome Advanced REST API extension and the file of examples, and then obtain fresh session cookies and a valid CSRF token.
To run the examples:
3. Update the Cookie header with a valid Cookie header that you obtain by running Max applications locally, for example:
Cookie: fileDownload=true; lastLoginOn=1472496173280; JSESSIONID=mdwhtm5jtdhb19pcwg4egivrc; auth_server_session=68043b18bb0babe5646aff21fd608c7ac539c57814725031488695c6c6db15fa74a27b1728e55a9238cf59e384d22945d35d0560ba07f6a7917f9e7a03db919b4d0e342e90d2d42be7a157409db3669f32fae8472b7b1b6a492b07becb5e539b6a3caeb9ae656ab00de695bedaead045526ab88908bec744d9c4bbdef0f878f1acc22ac5df2ce5b4a6d7a0b76e0eae0f5ba534c33deed5d8767eb53c017c85fd594c00e76ed5fa1db29ec17c9ac207b0c46b25079eb2f50ddf4cf58be74011ba00f62cac3ca933c8d8ad1e54ea84058a2895933138d087116c06ffdfdc10d8ab2080d384b089baaf9cc3632df72c4ccd22641cee698b6c05676b719fbcea5aaa17648ec4d5d57c24572320a76ea3b5f9c2e82eec101cbadbb6f768aaaf16603b0138e31586d5aed585a3ca618b4fbfb0038001111ac6aa9a791f7615d15d6bb8c30f2fe2c04a260b189d4f92125666d2fc96f2d3387d5802adde51eae3b3e83a3863018f470d575e0e264c9e85be20fd7b887d063ffcc13ae9014df64593953f9dca120ac53133c094eba17ea1da4cada228eec61b638a582053bf60fe2d5b1c3efc0b6eb45d46d24c0c9cad41df68d5c155c6189e3f4fead1c89d48b0ab036d474371242fe534116c487ff75a6f398cb7a7e64bc748af39c0dad74cc51ce7995ef058186ebea5d6fb873c47cff9dec10dcdf3a3601e958fd58831ef3a98402fabc861fad11876a188b7338e0a0d84f252bd664e3b4b2fed4f20184f78a5d285e63184dab4587d2cd2b0403d9e9d941cc02782395e85b4fcb49dc332f6b1cb29e140c29b4e8b33bb83615f953db94202f9c4e8a815e938bad382533be0a8252ac5490c79f6bb54df6a1d8b0c728e2695d174606010d09e096e11fd070ccd21b72008d5a7a2521875f0d976d2c8b523bae5ad33698c92fdef425e8f48d5df2e041c0e7c7b3c84b4916507b712a556c856367607519821605a0ebeaf0639e0923b343c5799623dbdf1335c3cfcf8d030491e4c7f4bd20e887348caea372bfbbd1a5eb28983938f5f829b6f3f89b8ac0bfcc4c191980c580a7a321f2cfcb7e4388c821c1562a518ea6c0d31f
4. Update the header X-CSRF-Token with a valid token for the Max instance from which you send requests, for example, X-CSRF-Token: z51nZuBhYT7BGnVLeP1sMf4uAikwZfwP.