Files
sailing-analytics/java/com.sap.sse.security/webservices/api/create_user.html
T
2017-07-31 18:24:49 +02:00

121 lines
3.4 KiB
HTML
Executable File

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href='../../../../fontface.css' media='screen' rel='stylesheet' title='Default stylesheet' type='text/css' />
<link href='../../../main.css' media='screen' rel='stylesheet' title='Default stylesheet' type='text/css' />
<link rel='icon' href='../../../../sap.ico' type='image/x-icon'>
<title>SAP Sponsorships Engine Security Webservices API</title>
</head>
<body>
<h1>SAP Sponsorships Engine Security Webservices API</h1>
<h2>URL: /api/restsecurity/create_user</h2>
<b>Description:</b>
<p>The service creates a user object.</p>
<br/>
<table>
<tr>
<td>Request Method:</td>
<td>POST</td>
</tr>
<tr>
<td>Output format:</td>
<td>a JSON document of the following format, documenting the successful creation of the user object<br>
<pre>{"username":"abc","access_token":"gISIhDNIFoXEVxzefrKUcXYOFKwBfq1xDPfv4wQdDjA="}</pre>
</td>
</tr>
<tr>
<td>Mandatory parameters:</td>
<td>
<div>username</div>
<div>email</div>
<div>password</div>
<div>fullName</div>
<div>company</div>
</td>
</tr>
<tr>
<td>Example:</td>
<td><code>curl -X PUT "http://127.0.0.1:8888/security/api/restsecurity/user?username=uhl&email=axel.uhl@sap.com&password=abcabc&fullName=Axel%20Uhl&company=SAP%20SE"</code><br>
Will provide a JSON document as explained above.</td>
</tr>
</table>
<table>
<tr>
<td>Request Method:</td>
<td>PUT</td>
</tr>
<tr>
<td>Output format:</td>
<td>a JSON document of the following format, documenting the successful creation of the user object<br>
<pre>{"username":"abc","access_token":"gISIhDNIFoXEVxzefrKUcXYOFKwBfq1xDPfv4wQdDjA="}</pre>
</td>
</tr>
<tr>
<td>Mandatory parameters:</td>
<td>
<div>username</div>
<div>email</div>
<div>password</div>
<div>fullName</div>
<div>company</div>
</td>
</tr>
<tr>
<td>Example:</td>
<td><code>curl -X PUT "http://127.0.0.1:8888/security/api/restsecurity/user?username=uhl&email=axel.uhl@sap.com&password=abcabc&fullName=Axel%20Uhl&company=SAP%20SE"</code><br>
Will provide a JSON document as explained above.</td>
</tr>
</table>
<table>
<tr>
<td>Request Method:</td>
<td>PUT</td>
</tr>
<tr>
<td>Output format:</td>
<td>a JSON document of the following format, documenting the successful creation of the user object<br>
<pre>{"username":"abc","access_token":"gISIhDNIFoXEVxzefrKUcXYOFKwBfq1xDPfv4wQdDjA="}</pre>
</td>
</tr>
<tr>
<td>Mandatory parameters:</td>
<td>
<div>username</div>
<div>email</div>
<div>password</div>
<div>fullName</div>
<div>company</div>
</td>
</tr>
<tr>
<td>Example:</td>
<td><code>curl -X PUT "http://127.0.0.1:8888/security/api/restsecurity/user?username=uhl&email=axel.uhl@sap.com&password=abcabc&fullName=Axel%20Uhl&company=SAP%20SE"</code><br>
Will provide a JSON document as explained above.</td>
</tr>
</table>
<table>
<tr>
<td>Request Method:</td>
<td>DELETE</td>
</tr>
<tr>
<td>Output format:</td>
<td>An Empty response with status code 200 in case of success; error-indicating status codes otherwise</pre>
</td>
</tr>
<tr>
<td>Mandatory parameters:</td>
<td>
<div>username</div>
</td>
</tr>
<tr>
<td>Example:</td>
<td><code>curl -X DELETE "http://127.0.0.1:8888/security/api/restsecurity/user?username=uhl"</code></td>
</tr>
</table>
</body>
</html>