API that returns whether or not it is Christmas Day
make && sudo make install
christmas-api (<port>)
(-t|--template <template.json>)
(-v|--verbose)
(-h|--help)
Flag | Description | Default |
---|---|---|
Port to broadcast API on | 8000 | |
-t,--template | JSON template, use %s for true/false result |
template.json |
-v,--verbose | Displays responses from clients | false |
-h,--help | Provides help | N/A |
On December 25:
{
"christmas": true
}
On any other day:
{
"christmas": false
}
Credit for inspiration should be given to isitchristmas.com and other similar sites. May this API spawn many copycats.