{"repo":"dragfyre/bahai-date-api","free":true,"listed":false,"github":"https://github.com/dragfyre/bahai-date-api","clone":"git clone https://github.com/dragfyre/bahai-date-api.git","description":"RESTful API for the Baha'i (Badi) calendar.","language":"JavaScript","stars":13,"topics":["bahai","calendar"],"license":"ISC","category":"productivity","readme_excerpt":"Baháʼí Date RESTful API So far, there are three endpoints for this API: POST /today Returns today's date according to the Baháʼí/Badí' calendar via POST request. GET /today Returns today's date according to the Baháʼí/Badí' calendar via GET request (as HTML). GET /date Given a date from the Gregorian calendar defined via GET data, returns the corresponding date in the Baháʼí calendar (as JSON). Public endpoints Public endpoints are now available on bahai-browser.org: /today - https://bahai-browser.org/today /date - https://bahai-browser.org/date Running To launch the API server, simply navigate to the main folder and type npm start . Examples From either endpoint, the output is returned in a similar format: a JSON object containing a message, a Baháʼí calendar date, and a Gregorian date/time. Today URL: localhost:1844/today date Available parameters include: - year - month - day - hour - minute - second - latitude - longitude - timezoneId May 23, 1844 URL: localhost:1844/date?year=1844&month=5&day=23&hour=20&minute=45 Output: February 15, 2014 URL: localhost:1844/date?year=2014&month=2&day=15&hour=13&minute=45 Output: CLI usage","default_branch":null,"files":null,"tree":[],"storefront":"/r/dragfyre","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dragfyre/bahai-date-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}