Front end url = https://rich-oak-app.codemagic.app
[ Jump to Models ]
post /accounts/
delete /accounts/{user_id}/
get /accounts/
patch /accounts/{user_id}/
get /accounts/{user_id}/
put /accounts/{user_id}/
post /api/token/
post /api/token/refresh/
post /user/
delete /user/{id}/
get /user/
patch /user/{id}/
get /user/{id}/
put /user/{id}/
Up
post /accounts/
(createAccountDetails)
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body AccountDetails (optional)
Body Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
AccountDetails
Content-Type: application/json
{
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
AccountDetails
Up
delete /accounts/{user_id}/
(destroyAccountDetails)
user_id (required)
Path Parameter —
Up
get /accounts/
(listAccountDetails)
array[AccountDetails]
Content-Type: application/json
[ {
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
}, {
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
} ]
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Up
patch /accounts/{user_id}/
(partialUpdateAccountDetails)
user_id (required)
Path Parameter —
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body AccountDetails (optional)
Body Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
AccountDetails
Content-Type: application/json
{
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
AccountDetails
Up
get /accounts/{user_id}/
(retrieveAccountDetails)
user_id (required)
Path Parameter —
AccountDetails
Content-Type: application/json
{
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
AccountDetails
Up
put /accounts/{user_id}/
(updateAccountDetails)
user_id (required)
Path Parameter —
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body AccountDetails (optional)
Body Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
id (optional)
Form Parameter —
user (optional)
Form Parameter —
bank_details (optional)
Form Parameter —
account_balance (optional)
Form Parameter —
AccountDetails
Content-Type: application/json
{
"account_balance" : 2.3021358869347655,
"bank_details" : {
"bank_code" : "bank_code",
"credit_card" : 5,
"name" : "name",
"id" : 5
},
"id" : 0,
"user" : {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 6,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 1,
"first_name" : "first_name",
"email" : ""
}
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
AccountDetails
Up
post /api/token/
(createTokenObtainPair)
Takes a set of user credentials and returns an access and refresh JSON web token pair to prove the authentication of those credentials.
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body TokenObtainPair (optional)
Body Parameter —
email (optional)
Form Parameter —
password (optional)
Form Parameter —
email (optional)
Form Parameter —
password (optional)
Form Parameter —
TokenObtainPair
Content-Type: application/json
{
"password" : "password",
"email" : "email"
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
TokenObtainPair
Up
post /api/token/refresh/
(createTokenRefresh)
Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body TokenRefresh (optional)
Body Parameter —
refresh (optional)
Form Parameter —
refresh (optional)
Form Parameter —
TokenRefresh
Content-Type: application/json
{
"refresh" : "refresh"
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
TokenRefresh
Up
post /user/
(createUser)
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body User (optional)
Body Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
User
Content-Type: application/json
{
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
User
Up
delete /user/{id}/
(destroyUser)
id (required)
Path Parameter — A unique integer value identifying this user.
Up
get /user/
(listUsers)
array[User]
Content-Type: application/json
[ {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
}, {
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
} ]
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
Up
patch /user/{id}/
(partialUpdateUser)
id (required)
Path Parameter — A unique integer value identifying this user.
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body User (optional)
Body Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
User
Content-Type: application/json
{
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
User
Up
get /user/{id}/
(retrieveUser)
id (required)
Path Parameter — A unique integer value identifying this user.
User
Content-Type: application/json
{
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
User
Up
put /user/{id}/
(updateUser)
id (required)
Path Parameter — A unique integer value identifying this user.
This API call consumes the following media types via the Content-Type request header:
application/json
application/x-www-form-urlencoded
multipart/form-data
body User (optional)
Body Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
id (optional)
Form Parameter —
last_login (optional)
Form Parameter — format: date-time
is_superuser (optional)
Form Parameter —
is_staff (optional)
Form Parameter —
is_active (optional)
Form Parameter —
date_joined (optional)
Form Parameter — format: date-time
email (optional)
Form Parameter — format: email
first_name (optional)
Form Parameter —
last_name (optional)
Form Parameter —
bvn (optional)
Form Parameter —
groups (optional)
Form Parameter —
user_permissions (optional)
Form Parameter —
User
Content-Type: application/json
{
"is_superuser" : true,
"is_active" : true,
"user_permissions" : [ "user_permissions", "user_permissions" ],
"is_staff" : true,
"last_login" : "2000-01-23T04:56:07.000+00:00",
"last_name" : "last_name",
"groups" : [ "groups", "groups" ],
"id" : 0,
"date_joined" : "2000-01-23T04:56:07.000+00:00",
"bvn" : 6,
"first_name" : "first_name",
"email" : ""
}
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
application/json
User
[ Jump to Methods ]
AccountDetails
AccountDetails_bank_details
AccountDetails_user
TokenObtainPair
TokenRefresh
User
id (optional)
Integer
user (optional)
AccountDetails_user
bank_details (optional)
AccountDetails_bank_details
account_balance (optional)
BigDecimal
id (optional)
Integer
name
String
bank_code
String
credit_card (optional)
Integer
id (optional)
Integer
last_login (optional)
Date format: date-time
is_superuser (optional)
Boolean Designates that this user has all permissions without explicitly assigning them.
is_staff (optional)
Boolean Designates whether the user can log into this admin site.
is_active (optional)
Boolean Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joined (optional)
Date format: date-time
String format: email
first_name
String
last_name
String
bvn (optional)
Integer
groups (optional)
[arrayString] The groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissions (optional)
[arrayString] Specific permissions for this user.
String
password
String
refresh
String
id (optional)
Integer
last_login (optional)
Date format: date-time
is_superuser (optional)
Boolean Designates that this user has all permissions without explicitly assigning them.
is_staff (optional)
Boolean Designates whether the user can log into this admin site.
is_active (optional)
Boolean Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joined (optional)
Date format: date-time
String format: email
first_name
String
last_name
String
bvn (optional)
Integer
groups (optional)
[arrayString] The groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissions (optional)
[arrayString] Specific permissions for this user.