-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: document API for supported calendars, currency and countdown ev…
…ent (#23) * v1.4.3 * docs: document API for supported calendars, currency and countdown event
- Loading branch information
1 parent
c5b26c0
commit c2e8420
Showing
11 changed files
with
251 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Get List of Supported Calendar | ||
|
||
Fetch the list of all supported calendar. | ||
|
||
## Endpoint | ||
|
||
```http | ||
GET /calendar | ||
``` | ||
|
||
## Example Request | ||
|
||
```http | ||
GET https://world-clockify-api.onrender.com/api/v1/calendar | ||
``` | ||
|
||
## Example Response | ||
|
||
```json | ||
{ | ||
"calendar": [ | ||
"buddhist", | ||
"chinese", | ||
"coptic", | ||
"dangi", | ||
"ethioaa", | ||
"ethiopic", | ||
"gregory", | ||
"hebrew", | ||
"indian", | ||
"islamic", | ||
"islamic-civil", | ||
"islamic-rgsa", | ||
"islamic-tbla", | ||
"islamic-umalqura", | ||
"iso8601", | ||
"japanese", | ||
"persian", | ||
"roc" | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Get List of Supported Currencies | ||
|
||
Fetch the list of all supported currencies. | ||
|
||
## Endpoint | ||
|
||
```http | ||
GET /currency | ||
``` | ||
|
||
## Example Request | ||
|
||
```http | ||
GET https://world-clockify-api.onrender.com/api/v1/currency | ||
``` | ||
|
||
## Example Response | ||
|
||
```json | ||
{ | ||
"crrencies": [ | ||
"AED", | ||
"AFN", | ||
"ALL", | ||
"AMD", | ||
"ANG", | ||
"AOA", | ||
"ARS", | ||
"AUD", | ||
"AWG", | ||
"AZN", | ||
"BAM", | ||
"BBD", | ||
"BDT", | ||
"BGN", | ||
"BHD", | ||
"BIF", | ||
"BMD", | ||
"BND", | ||
"BOB", | ||
"BRL", | ||
"BSD", | ||
"BTN", | ||
"BWP", | ||
"BYN", | ||
"BZD", | ||
"CAD", | ||
"CDF", | ||
"CHF", | ||
"CLP", | ||
"CNY", | ||
... more currencies | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 6. Format Date for locale | ||
|
||
Format a date/time string according to a locale (e.g. 'en-us', 'fr'). | ||
|
||
## Endpoint | ||
|
||
```http | ||
GET /formatdatelocale | ||
``` | ||
|
||
## Query Parameters | ||
|
||
- dateStr (string) - The date/time in ISO format (e.g., "2024-10-17T10:30:00"). | ||
- locale (string) – The locale to format the date/time (e.g., "en-us"). | ||
- timezone (string) – The timezone of the original date/time (e.g., "America/New_York"). | ||
|
||
## Example Request | ||
|
||
```http | ||
GET https://world-clockify-api.onrender.com/api/v1/formatdatelocale?dateStr=2024-10-18T12:00:00&locale=en-us&timezone=Europe/Paris | ||
``` | ||
|
||
## Example Response | ||
|
||
```json | ||
{ | ||
"formatDateLocale": "October 18, 2024 at 12:00 PM GMT+2" | ||
} | ||
``` | ||
|
||
## Error Responses | ||
|
||
```json | ||
{ | ||
"message": "Invalid parameters" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Get Count Down To Event | ||
|
||
This endpoint returns the count down to the event. | ||
|
||
## Endpoint | ||
|
||
```bash | ||
GET /countdownevent | ||
``` | ||
|
||
## Query Parameters | ||
|
||
- eventDate (string) - The date/time in ISO format (e.g., "2024-10-17T10:30:00"). | ||
- eventTimezone (string) – The timezone of the original event date/time (e.g., "America/New_York"). | ||
|
||
## Example Request | ||
|
||
```http | ||
https://world-clockify-api.onrender.com/api/v1/countdownevent?eventDate=2024-10-21T15:00:00&eventTimezone=America/New_York | ||
``` | ||
|
||
## Example Response | ||
|
||
```json | ||
{ | ||
"countdownToEvent": "3 days, 2 hours, 30 minutes, 0 seconds" | ||
} | ||
``` | ||
|
||
## Error Responses | ||
|
||
```json | ||
{ | ||
"message": "Invalid parameters" | ||
} | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters