ISQA Project
- Anonymous Message Board
Norton Solutions FreeCodeCamp Portfolio Project
User Stories
Only allow your site to be loading in an iFrame on your own pages.
Do not allow DNS prefetching.
Only allow your site to send the referrer for your own pages.
I can
POST
a thread to a specific message board by passing form data
text
and
delete_password
to
/api/threads/{board}
.
I can
POST
a reply to a thread on a specific board by passing form data
text
,
delete_password
, &
thread_id
to
/api/replies/{board}
.
I can
GET
an array of the most recent 10 bumped threads on the board with only the most recent 3 replies from
/api/threads/{board}
.
I can
GET
an entire thread with all its replies from
/api/replies/{board}?thread_id={thread_id}
.
I can delete a thread completely if I send a
DELETE
request to
/api/threads/{board}
and pass along the
thread_id
&
delete_password
.
I can delete a post (changing text to '[deleted]') if I send a
DELETE
request to
/api/replies/{board}
.
I can report a thread and change its reported value to true by sending a
PUT
request to
/api/threads/{board}
.
I can report a reply and change its reported value to true by sending a
PUT
request to
/api/replies/{board}
.
Complete functional tests that wholly test routes and pass.
Go to Testing Board - 'general'
API Tests
New Thread (POST /api/threads/:board)
Submit
Report Thread (PUT /api/threads/:board)
Report
Delete Thread (DELETE /api/threads/:board)
Delete
New Reply (POST /api/replies/:board)
Submit Reply
Report Reply (PUT /api/replies/:board)
Report Reply
Delete Reply (DELETE /api/replies/:board)
Delete Reply