Skip to content

nishith-p-shetty/visitor-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

visitor-counter

This project keeps track of your page visitors.

USAGE

API Reference

Show Visitor Count

  GET /api?name=test&operation=show
Parameter Type Description
name string Required. name to track
operation string Required. show

Increment Visitor Count

  GET /api?name=test&operation=increment
Parameter Type Description
name string Required. name to track
operation string Required. increment

Update Visitor Count to Required Value

  GET /api/?name=test&operation=update&value=100
Parameter Type Description
name string Required. name to track
operation string Required. update
value int Required. integer number

Reset Visitor Count to 0

  GET /api?name=test&operation=reset
Parameter Type Description
name string Required. name to track
operation string Required. reset

Delete Visitor Count

  GET /api?name=test&operation=delete
Parameter Type Description
name string Required. name to track
operation string Required. delete

List All Visitor Count

  GET /api/admin?operation=list
Parameter Type Description
operation string Required. list

Delete All Visitor Count

  GET /api/admin?operation=delete-all
Parameter Type Description
operation string Required. delete-all