Register
curl --request POST \
--url https://solarmoney.up.railway.app/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'import requests
url = "https://solarmoney.up.railway.app/api/auth/register"
payload = {
"email": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', password: '<string>'})
};
fetch('https://solarmoney.up.railway.app/api/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"user_id": "<string>",
"email": "<string>",
"role": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authentication
Register
POST
/
api
/
auth
/
register
Register
curl --request POST \
--url https://solarmoney.up.railway.app/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'import requests
url = "https://solarmoney.up.railway.app/api/auth/register"
payload = {
"email": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', password: '<string>'})
};
fetch('https://solarmoney.up.railway.app/api/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"user_id": "<string>",
"email": "<string>",
"role": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}