Public
Documentation Settings

THender

AUTHORIZATIONBearer Token
Token

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjgxNzM5MzEyLCJpYXQiOjE2ODE3Mjg1MTIsImp0aSI6ImQwMjA4OTc0ODgzYzRlMjY5NzEwNDZkYjA3NzMxYjM1IiwidXNlcl9pZCI6IjdjMmU1NGU4LWQ1ZTAtNDUwOS05YmQ5LWVlODAzMjhmZmM2OCJ9.Kb5nQzGRDgMsXSoENAHvRC6S3bBvQYx-cBEDxj8sf9Y

auth

Section that handles user management i.e authentication, registration, logout, updating and retrieving

AUTHORIZATIONBearer Token
This folder is using Bearer Token from collectionTHender

Registration

Section to handle Account registration

POSTAccount Signup

https://thender.onrender.com/account/signup/

Account registration endpoint, creates a user

Profile picture is optional

Bodyraw (json)
json
{
    "username": "Emeka",
    "email": "emeka@gmail.com",
    "first_name": "emeka",
    "last_name": "durimo",
    "password": "$ecretPa$$"
}
Example Request
curl
curl --location 'https://thender.onrender.com/account/signup/' \
--data-raw '{
    "username": "Emeka",
    "email": "emeka@gmail.com",
    "first_name": "emeka",
    "last_name": "durimo",
    "password": "$ecretPa$$"
}'
201 Created
Example Response
json
{
  "username": "Emeka",
  "email": "emeka@gmail.com",
  "first_name": "emeka",
  "last_name": "durimo"
}
Content-Type

application/json

Vary

Accept

Allow

POST, OPTIONS

Content-Length

88

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin

Server

daphne

Login

Section to handle account login

POSTAccount Login

https://thender.onrender.com/account/login/

Login Endpoint, returns refresh and access JWT tokens

Bodyraw (json)
json
{
    "username": "Emeka",
    "password": "$ecretPa$$"
}
Example Request
curl
curl --location 'https://thender.onrender.com/account/login/' \
--data-raw '{
    "username": "toluhunter",
    "password": "Thi$@in'\''tMyP@$$Word"
}'
200 OK
Example Response
json
{
  "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY3NTExNDQ3MSwiaWF0IjoxNjc1MDI4MDcxLCJqdGkiOiIwNDkyYTJmZDIxNzA0ZjgwYjkzZjJiN2JmN2QzMDJhOSIsInVzZXJfaWQiOiI2ZDc2NzdjOS1jNmU4LTQ5YzgtYTI3Ni0xNjlkMzJmMzViMzUifQ.1_k7W-hP66Nzthtw6lbFGlKtkov8y53KfYpb_59VZi4",
  "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjc1MDI4MzcxLCJpYXQiOjE2NzUwMjgwNzEsImp0aSI6IjQzYmY1OTA2MTM3NzRhMmNhZTQxYTQzZjdkYmI5NGJkIiwidXNlcl9pZCI6IjZkNzY3N2M5LWM2ZTgtNDljOC1hMjc2LTE2OWQzMmYzNWIzNSJ9.8oC_L7A8TKtsZ8VNIApleobaXECMK2u2Yl9aJ5xngQ8"
}
Date

Sun, 29 Jan 2023 21:34:31 GMT

Server

WSGIServer/0.2 CPython/3.10.8

Content-Type

application/json

Vary

Accept

Allow

POST, OPTIONS

Content-Length

582

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Cross-Origin-Opener-Policy

same-origin