Please enable JavaScript.
Coggle requires JavaScript to display documents.
API (careFi) - Coggle Diagram
API (careFi)
bitcoin_api App
urls.py
'ping/' just for testing the connection.
'current-price/' fetch the current price of bitcoin.
'price-history/' for fetching data from database
views.py
class ping:- for testing the connection.
class BitcoinListAPIView:- for fetching bitcoin data from database.
fetchPrice() :- for fetching current price of bitcoin.
models.py
Bitcoin (Store the data related to bitcoin)
timestamp
price
description
created_at
updated_at
serializers.py
class BitcoinSerializer:- for fetching the data from databse.
Authenticate App
urls.py
'register/' for regestering new user.
'token/' for fetching token.
'token/refresh/' for refreshing exesting token.
views.py
"RegisterView" class for user registration
serializers.py
'RegisterSerializer' use for register user class.
cryptotracker
urls.py
'v1/auth/' will include 'authenticate.urls'
'v1/' will include 'bitcoin_api.urls'
'swagger/'this is for swagger
CRYPTO_TRACKER