Merge "Use HTTP response codes for identity v3"
This commit is contained in:
commit
ada63708ce
@ -757,7 +757,7 @@
|
|||||||
<request>
|
<request>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</request>
|
</request>
|
||||||
<response status="200 203">
|
<response status="200">
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response> &commonFaults; &getFaults; </method>
|
</response> &commonFaults; &getFaults; </method>
|
||||||
<method name="GET" id="listAuthorizedAccessTokens">
|
<method name="GET" id="listAuthorizedAccessTokens">
|
||||||
|
@ -4,32 +4,33 @@
|
|||||||
in every request.
|
in every request.
|
||||||
-->
|
-->
|
||||||
<!ENTITY commonFaults '
|
<!ENTITY commonFaults '
|
||||||
<response xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="400" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
<representation mediaType="application/xml"
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Bad Request">
|
||||||
element="identity:identityFault"/>
|
|
||||||
<representation mediaType="application/json"/>
|
|
||||||
</response>
|
|
||||||
<response status="400" xmlns="http://wadl.dev.java.net/2009/02">
|
|
||||||
<representation mediaType="application/xml" element="identity:badRequest"/>
|
<representation mediaType="application/xml" element="identity:badRequest"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>
|
</response>
|
||||||
<response status="401" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="401" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Unauthorized">
|
||||||
<representation mediaType="application/xml" element="identity:unauthorized"/>
|
<representation mediaType="application/xml" element="identity:unauthorized"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>
|
</response>
|
||||||
<response status="403" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="403" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Forbidden">
|
||||||
<representation mediaType="application/xml" element="identity:forbidden"/>
|
<representation mediaType="application/xml" element="identity:forbidden"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>
|
</response>
|
||||||
<response status="405" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="405" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Method Not Allowed">
|
||||||
<representation mediaType="application/xml" element="identity:badMethod"/>
|
<representation mediaType="application/xml" element="identity:badMethod"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>
|
</response>
|
||||||
<response status="413" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="413" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Request Entity Too Large">
|
||||||
<representation mediaType="application/xml" element="identity:overLimit"/>
|
<representation mediaType="application/xml" element="identity:overLimit"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>
|
</response>
|
||||||
<response status="503" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="503" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Service Unavailable">
|
||||||
<representation mediaType="application/xml" element="identity:serviceUnavailable"/>
|
<representation mediaType="application/xml" element="identity:serviceUnavailable"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
</response>'>
|
</response>'>
|
||||||
@ -37,7 +38,8 @@
|
|||||||
Faults on GET
|
Faults on GET
|
||||||
-->
|
-->
|
||||||
<!ENTITY getFaults '
|
<!ENTITY getFaults '
|
||||||
<response status="404" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="404" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Not Found">
|
||||||
<representation mediaType="application/xml"
|
<representation mediaType="application/xml"
|
||||||
element="identity:itemNotFound"/>
|
element="identity:itemNotFound"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
@ -46,7 +48,8 @@
|
|||||||
Faults on POST/PUT
|
Faults on POST/PUT
|
||||||
-->
|
-->
|
||||||
<!ENTITY postPutFaults '
|
<!ENTITY postPutFaults '
|
||||||
<response status="415" xmlns="http://wadl.dev.java.net/2009/02">
|
<response status="415" xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Unsupported Media Type">
|
||||||
<representation mediaType="application/xml"
|
<representation mediaType="application/xml"
|
||||||
element="identity:badMediaType"/>
|
element="identity:badMediaType"/>
|
||||||
<representation mediaType="application/json"/>
|
<representation mediaType="application/json"/>
|
||||||
|
@ -555,15 +555,13 @@
|
|||||||
indicate the supported authentication methods.
|
indicate the supported authentication methods.
|
||||||
</para><para>For authentication processes that require
|
</para><para>For authentication processes that require
|
||||||
multiple round trips, The Identity API implementation
|
multiple round trips, The Identity API implementation
|
||||||
might return an <code>HTTP 401 Not Authorized</code>
|
might return an <code>HTTP 401 Unauthorized</code>
|
||||||
error with additional information for the next
|
error with additional information for the next
|
||||||
authentication step.</para>
|
authentication step.</para>
|
||||||
<para>The following examples illustrate several possible
|
<para>The following examples illustrate several possible
|
||||||
HTTP 401 Unauthorized authentication errors. Other
|
HTTP 401 Unauthorized authentication errors. Other
|
||||||
errors like HTTP <errorcode>403</errorcode>
|
errors like HTTP <errorcode>403</errorcode>
|
||||||
<returnvalue>Forbidden</returnvalue> and HTTP
|
<returnvalue>Forbidden</returnvalue> are also
|
||||||
<errorcode>409</errorcode>
|
|
||||||
<returnvalue>Conflict</returnvalue> are also
|
|
||||||
possible.</para>
|
possible.</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
<request>
|
<request>
|
||||||
@ -666,7 +664,7 @@
|
|||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</representation>
|
</representation>
|
||||||
</response>
|
</response>
|
||||||
<response status="401">
|
<response status="401" xmlns:rax="http://docs.rackspace.com/api" rax:phrase="Unauthorized">
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
title="Error: Basic HTTP 401 Not Authorized: JSON Response">
|
title="Error: Basic HTTP 401 Not Authorized: JSON Response">
|
||||||
@ -693,7 +691,7 @@
|
|||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</representation>
|
</representation>
|
||||||
</response>
|
</response>
|
||||||
<response status="404 409"/> &commonFaults; &getFaults; </method>
|
&commonFaults; &getFaults; </method>
|
||||||
<method name="GET" id="validateTokens">
|
<method name="GET" id="validateTokens">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
@ -718,7 +716,7 @@
|
|||||||
</wadl:doc>&authTokenHeader; &subjectTokenHeader;
|
</wadl:doc>&authTokenHeader; &subjectTokenHeader;
|
||||||
</representation>
|
</representation>
|
||||||
</request>
|
</request>
|
||||||
<response status="200 203">
|
<response status="200">
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user