Changes

Jump to: navigation, search

stoney core: Authentication Resource - REST API

214 bytes added, 11:43, 1 May 2014
/* Auth retrieval (GET) example */
=== Auth action ===Also visit [[stoney core: Authentication Resource Mapping (REST - LDAP)]].
To give a client the possibility of verifying username and password, a pseudo-ressource is provided, the only method implemented is the GET.= Auth action =
==== Auth retrieval (To give a client the possibility of verifying username and password, a pseudo-ressource is provided, the only method implemented is the GET) ====.
==Auth retrieval (GET) ===== Auth retrieval (GET) example =====
To verify the authentication the clients sends a HTTP <code>GET</code> request on the auth's resource URI <code>https://api.example.com/v1/auth</code>.
The service responds with a HTTP status code:
Content-Type: application/json; charset=UTF-8
</pre>
(no content for now)<source lang='javascript'>{ "id": 4000123, "user": "user@example.com", "location": "https://api.example.com/v1/people/4000123"}</source> 
[[Category: REST API]][[Category:stoney core]]
3,368
edits