Version Number API
This API returns a version number based on a target date and the current date.
Endpoints
GET /api/version
Returns a version number based on the provided parameters.
GET
/api/version
Parameters:
- targetDate (required): The target date in ISO format (e.g., 2025-01-01T00:00:00Z)
- currentDate (optional): The current date in ISO format. If not provided, the server's current date and time will be used.
Example Request:
GET /api/version?targetDate=2025-01-01T00:00:00Z
Example Response:
Response
{
"version": "30.303.643",
"targetDate": "2025-01-01T00:00:00Z",
"currentDate": "2025-12-06T03:54:03.755Z",
"timestamp": "2025-12-06T03:54:03.755Z"
}
Response Fields:
- version: The calculated version number following the formatting rules
- targetDate: The target date that was provided in the request
- currentDate: The date used for calculation (either provided in the request or the server's current time)
- timestamp: The exact moment when the API processed this request and generated the response