issues
search
NavanYatavelli
/
fastpages
MIT License
0
stars
2
forks
source link
CPT Work
#23
Open
NavanYatavelli
opened
1 year ago
NavanYatavelli
commented
1 year ago
CPT Video
Video Link
CPT Writeup
Writeup
Design and Architecture (Extra)
Backend (API/Model/DB)
Project Link
Model/DB -
Model/DB Implementation
Define the BreakingNews class
Builds BreakingNews SQLite Table
Defines Columns - title,network,day,city,link,lat,lng
getter/setter methods for Columns
Handles “read” - for GET requests from API
Handles “update” - for POST requests from API
Builds initial test data for Table
initBreakingNews()
API
API Implementation
Hadles HTTP GET and POST requests
Create - for HTTP POST method. To update SQL Columns
Create - also checks any invalid input
Read - for HTTP GET method. To read SQL Columns
Backend Startup
Backend Startup
Register BreakingNews APIS, Model, URIs
Calls initBreakingNews() of Model to initialize test data in tables
APIs URIs
HTTP GET - To read Breakingnews Columns -
http://fvns.duckdns.org/api/breakingnews
HTTP POST - To Update/Add Breakingnews Columns -
http://fvns.duckdns.org/api/breakingnews/create
HTTP DELETE - To read Breakingnews Columns -
http://fvns.duckdns.org/api/breakingnews/delete
HTTP PUT - To Update/Add Breakingnews Columns -
http://fvns.duckdns.org/api/breakingnews/update
Breaking News Design Flow
CPT Video
Video Link
CPT Writeup
Writeup
Design and Architecture (Extra)
Backend (API/Model/DB)
Project Link
Model/DB -
Model/DB Implementation
API
Backend Startup
APIs URIs
Breaking News Design Flow