Skip to content

Create a user

POST
/api/v1/user/signup

Create a user account to access exclusive content about Argentine Rock legends.

Request Body

JSON
[
{
"name": "1",
"email": "2",
"password": "3"
},
"Maria",
"maria@rock-legends.com",
"rock-n-roll"
]

Responses

Created
JSON
[
{
"id": 1,
"name": "1",
"email": "2"
},
"Carlos",
"carlos@rock-legends.com"
]

Samples

cURL
curl -X POST https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/user/signup
JavaScript
fetch("https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/user/signup", { method: "POST" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/user/signup");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("https://stoplight.io/mocks/enzonotario/argentine-rock/122547792/api/v1/user/signup")
print(response.json())
Powered by VitePress OpenAPI