Please enable JavaScript.
Coggle requires JavaScript to display documents.
API - Coggle Diagram
API
user :fire:
Model
session token :star:
phone
name
email
gender
created_at
updated_at
premium
pending_balance
order_history
serializers
create
update
Views
generate_session_token
sign_in
sign_out
NOTE: login, logout will come from django auth :!:
Urls
login
logout with ID
default routing
category
Model
created_at
updated_at
name
description
Views
get all categories- serialized
product
Views
get all products- serialized
Model
categorey (foregin key) :check:
is_active
price
name
descripption
stock
image :star:
created_at
updated_at
order
Model
user(foregin key) :check:
product_names
transaction_id
total_amount
total_products
description
image
created_at
updated_at
Views
validate user session
add (when new order is placed)
payment - (
__
)
Views
validate_user_session
generate_token
process_payment
Urls
gettoken/id/token
process/token/id