我是REST HTTPS的新手,所以我的知识很少。我详细介绍了REST HTTPS的所有文档,并且在我看来并没有得到很好的解释。无论我需要什么,我都可以毫无问题地获得,但我无法进行PUT / POST。所有文件都是
当HTTP PUT方法用于CRUD以外的操作时,URL 指定所需的操作。这也用于区分 来自PUT方法的消息进行更新。关键字“op”包含在中 URL如下:
休息/ {包} / {对象类型} /运算/ {操作}
例如,/ Rest / Identity / IdentityGroup / op / query
获取https://10.42.9.140/Rest/Identity/User/name/requenaf
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:user xmlns:ns2="identity.rest.mgmt.acs.nm.cisco.com">
<description>name.surname@paddypowerbetfair.co.uk</description>
<id>1745</id>
<identityGroupName>All Groups:IS Networks</identityGroupName>
<name>requenaf</name>
<attributeInfo>
<attributeName>Description</attributeName>
<attributeValue></attributeValue>
</attributeInfo>
<attributeInfo>
<attributeName>Email Address</attributeName>
<attributeValue>name.surname@paddypowerbetfair.co.uk</attributeValue>
</attributeInfo>
<attributeInfo>
<attributeName>Full Name</attributeName>
<attributeValue>Name Surname</attributeValue>
</attributeInfo>
<attributeInfo>
<attributeName>Real Name</attributeName>
<attributeValue></attributeValue>
</attributeInfo>
<changePassword>false</changePassword>
<created>May 04 2017 08:32:17</created>
<dateExceedsEnabled>false</dateExceedsEnabled>
<enablePassword>*******</enablePassword>
<enabled>true</enabled>
<lastLogin></lastLogin>
<lastModified>Nov 14 2017 13:58:22</lastModified>
<lastPasswordChange>Oct 31 2017 09:22:45</lastPasswordChange>
<loginFailuresCounter>0</loginFailuresCounter>
<password>*******</password>
<passwordNeverExpires>false</passwordNeverExpires>
<passwordType>Internal Users</passwordType>
</ns2:user>
PUT https://10.42.9.140/Rest/Identity/User/op/query
<attributeInfo>
<attributeName>Email Address</attributeName>
<attributeValue>name.surname@gmail.com</attributeValue>
</attributeInfo>
61000400XML Parsing Error: unexpected element (uri:"", local:"attributeInfo"). Expected elements are <{query.rest.mgmt.acs.nm.cisco.com}andFilter>,<{query.rest.mgmt.acs.nm.cisco.com}query>,<{query.rest.mgmt.acs.nm.cisco.com}simpleFilter>. NOT_AVAILABLENOT_AVAILABLEBAD_REQUEST
更新
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:query xmlns:ns2="query.rest.mgmt.acs.nm.cisco.com">
<name>names</name>
<attributeInfo>
<attributeName>Email Address</attributeName>
<attributeValue>name.surname@gmail.com</attributeValue>
</attributeInfo>
</ns2:query>
61013400Query page number should be no less than 1.SEARCH_BY_QUERYUserBAD_REQUEST