Giter Club home page Giter Club logo

holidaycheck's Introduction

holidaycheck

Node API to monitor 2019 holidays in the United States


  • /holidays GET

    Get a paginated list of holidays ordered by ascending date.

    Optional

    • name: search against holiday name. Example: /holidays?name=christmas.

    • type: search against holiday type. Example: /holidays?type=federal.

    • date: search holidays on a date, formatted like YYYY-MM-DD. Takes precedence over month, after, before, peek query params. Example: /holidays?date=2019-01-01.

    • month: search holidays in a month, formatted like M or MM. Takes precedence over after, before, peek query params. Example: /holidays?month=09.

    • after: search holidays after a date formatted like YYYY-MM-DD. Can be used together with before. Takes precedence over peek. Example: /holidays?after=2019-10-31.

    • before: search holidays before a date formatted like YYYY-MM-DD. Can be used together with after. Takes precedence over peek. Example: /holidays?before=2019-11-01.

    • peek: search holidays within a number of days of the current day, forwards or backwards. Days must be represented as integers. Example: holidays?peek=-3.

    • sort: sort holidays by [name, type, or date]. Can set ordering by concatenating :asc or :desc, but is ascending by default. Example: /holidays?sort=type:desc.

    • page: get a specific page in paginated results. Example /holidays?page=2.


  • /holidays/{id} GET

    Get detailed info for a single holiday.

  • /holidays/types GET

    Get a list of holiday types.

  • /holidays/stats GET

    Get holiday counts categorized

    • by type,
    • by type per month

    and holiday count for remaining of the year.

holidaycheck's People

Contributors

sjbitcode avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.