Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 2.25 KB

README.md

File metadata and controls

84 lines (60 loc) · 2.25 KB

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