To Ethiopian Conversion
sending a GET request with with month, date , year parameters at the following endpoint is enough.
http://www.ipediacomputing.com/GeezDateApi/api?toEthiopian
Example:
Request:
http://www.ipediacomputing.com/GeezDateApi/api?toEthiopian&month=10&year=2012&date=13
Response:
{
"Status": "OK",
"Data": {
"Date": 3,
"Month": "02",
"MonthName": "ጥቅምት",
"Year": 2005
}
}
In case of an invalid input the API will return an ERROR status with the Error Infomation
Request: http://www.ipediacomputing.com/GeezDateApi?toEthiopian&month=15&year=2012&date=13
Request:
{
"Status": "ERROR",
"Data": [],
"ErorInfo": "Invalid Date"
}
To Gregorian Conversion
sending a GET request with with month, date , year parameters at the following endpoint is enough.
http://www.ipediacomputing.com/GeezDateApi/api?toGregorian
Example:
Request:
http://www.ipediacomputing.com/GeezDateApi/api?toGregorian&month=13&year=2012&date=5
Response:
{
"Status": "OK",
"Data": {
"Date": 10,
"Month": "09",
"MonthName": "Septmemeber",
"Year": 2020
}
}
In case of an invalid input the API will return an ERROR status with the Error Infomation
Request: http://www.ipediacomputing.com/GeezDateApi/api?toGregorian&month=15&year=2012&date=13
Request:
{
"Status": "ERROR",
"Data": [],
"ErorInfo": "Invalid Date"
}