curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_user_001",
"password":"Hello World"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_user_001",
"password":"Hello World"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_staff_user_001",
"password":"Hello Staff Password"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_staff_user_001",
"password":"Hello Staff Password"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_staff_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_staff_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"sample_superuser_001",
"password":"Hello Superuser Password"
}' "http://localhost:8000/auth/token/"
POST /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"sample_superuser_001",
"password":"Hello Superuser Password"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"refresh":"sample_superuser_token"
}' "http://localhost:8000/auth/token/refresh/"
POST /auth/token/refresh/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"refresh":"sample_superuser_token"
}
Status | 0 |
---|---|
|
curl -X DELETE -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/auth/token/"
DELETE /auth/token/ HTTP/1.1
Host: localhost:8000
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"token":"sample_token"
}' "http://localhost:8000/auth/token/"
PUT /auth/token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"token":"sample_token"
}
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users?limit=10"
GET /users?limit=10 HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_staff_token
Status | 400 Bad Request |
---|---|
Content-Type | application/json |
|
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001"
GET /users/test_user_001 HTTP/1.1
Host: localhost:8000
Accept: application/json
Content-Type: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_staff_token" "http://localhost:8000/users/test_user_001/privileges"
GET /users/test_user_001/privileges HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_staff_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
Status | 200 OK |
---|---|
|
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"password":"Hello World",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}' "http://localhost:8000/users/"
POST /users/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"password":"Hello World",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}
Status | 201 Created |
---|---|
Content-Type | application/json |
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|
Status | 400 Bad Request |
---|---|
Content-Type | application/json |
|
curl -X PUT -H "Content-Type: application/json" -H "accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}' "http://localhost:8000/users/test_user_001"
PUT /users/test_user_001 HTTP/1.1
Host: localhost:8000
Content-Type: application/json
accept: application/json
Authorization: Bearer sample_token
{
"username":"test_user_001",
"firstName":"Test",
"lastName":"User",
"email":"test_user_001@testers.techfesia.iiits.in",
"phoneNumber":"+911234567890",
"collegeName":"Test College 123",
"profilePicture":"url_to_profile_pic"
}
Status | 200 OK |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"provider":"google"
}' "http://localhost:8000/users/test_user_001/picture"
PUT /users/test_user_001/picture HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"provider":"google"
}
Status | 200 OK |
---|---|
|
curl -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" "http://localhost:8000/users/test_user_001/auth_modes"
GET /users/test_user_001/auth_modes HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
Status | 200 OK |
---|---|
Content-Type | application/json |
|
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"password":"Hello World"
}' "http://localhost:8000/users/test_user_001/password/"
POST /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"password":"Hello World"
}
Status | 201 Created |
---|---|
|
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer sample_token" -d '{
"oldPassword":"old_passord",
"newPassword":"new_password"
}' "http://localhost:8000/users/test_user_001/password/"
PUT /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
Authorization: Bearer sample_token
{
"oldPassword":"old_passord",
"newPassword":"new_password"
}
curl -X PATCH -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"resetToken":"sampled_reset_token",
"newPassword":"password"
}' "http://localhost:8000/users/test_user_001/password/"
PATCH /users/test_user_001/password/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Accept: application/json
{
"resetToken":"sampled_reset_token",
"newPassword":"password"
}
Status | 200 OK |
---|---|
|
Status | 422 Unprocessable Entity (WebDAV) (RFC 4918) |
---|---|
|