Skip to content

Commit

Permalink
fix:fix on typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
yinebebt committed Aug 13, 2024
1 parent 5e3eb67 commit 3763778
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github: [Yinebeb-01]
github: [yinebebt]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
136 changes: 3 additions & 133 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<p align="center">
<img src="internal/assets/logo_medium.png" alt="logo" width="110" height="110">
</p>
<h1 align="center"><a href="https://pkg.go.dev/github.com/Yinebeb-01/ethiopiancalendar">Ethiopian Calendar (ባሕረ-ሐሳብ)</a></h1>
<h1 align="center"><a href="https://pkg.go.dev/github.com/yinebebt/ethiopiancalendar">Ethiopian Calendar (ባሕረ-ሐሳብ)</a></h1>

![build-workflow](https://github.com/Yinebeb-01/ethiopiancalendar/actions/workflows/build-and-test.yml/badge.svg)
![build-workflow](https://github.com/yinebebt/ethiopiancalendar/actions/workflows/build-and-test.yml/badge.svg)

## Description
The Ethiopian calendar(ባሕረ-ሀሳብ) is used to get Fasting and Holiday's specific date with in a year based on
Expand All @@ -26,137 +26,7 @@ respond with the converted date in JSON format whereas for the calendar, it will

* <p><a href="https://ethiocal.koyeb.app/v1/swagger/index.html" target="_blank" >Try on swagger</a></p>

* <p><a href="https://pkg.go.dev/gihub.com/ethiopiancalendar" target="_blank" >pkg.go.dev</a></p>


v1 Convert Gregorian DOverview Ethiopian Date

```curl
GET /ad-to-et/{date}
```

* Parameters:

`date:` The Gregorian date to convert (in _yy-mm-dd_ format).

**Example**:

```curl
GET /ad-to-et/2013-09-11
```

Response:

```json
{
"gregorian_date": "2021-05-22"
}
```

2. Convert Gregorian Date to Ethiopian Date

```curl
GET /et-to-ad/{date}
```

* Parameters:

`date:` The Ethiopia date to convert (in _yy-mm-dd_ format).

**Example**:
```curl
GET /et-to-ad/2021-05-22
```
Response:
```json
{
"ethiopian_date": "2013-09-11"
}
```

3. Get Ethiopian Calendar such as Holidays and Fasting dates.

```curl
GET /bahire-hasab/{year}
```

* Parameters:

`year:` The Ethiopian year.

**Example**:

```curl
GET /bahire-hasab/2016
```

Response:

```json
{
"data": {
"year": {
"year":2016,
"evangelist_num":0,
"evangelist":"ዮሐንስ(John)",
"day_of_the_week":"ማክሰኞ(Tuesday)"
},
"basic": {
"medeb":11,
"wenber":10,
"abektie":20,
"metiq":10,
"beale_metiq":2,
"mebaja_hamer":18,
"nenewie":{
"date_of_the_month":18,
"month_of_the_year":6
}
},
"fasting":{
"abiy":{
"date_of_the_month":2,
"month_of_the_year":7
},
"debrezeit":{
"date_of_the_month":29,
"month_of_the_year":7
},
"hosanna":{
"date_of_the_month":20,
"month_of_the_year":8
},
"siklet":{
"date_of_the_month":25,
"month_of_the_year":8
},
"tinsaye":{
"date_of_the_month":27,
"month_of_the_year":8
},
"rkbekahnat":{
"date_of_the_month":21,
"month_of_the_year":9
},
"dihnet":{
"date_of_the_month":19,
"MonthOfTheYear":10
},
"hawariyat":{
"date_of_the_month":17,
"month_of_the_year":10
},
"erget":{
"date_of_the_month":6,
"month_of_the_year":10},
"peraklitos":{
"date_of_the_month":16,
"month_of_the_year":10
}
}
}
}
```
* <p><a href="https://pkg.go.dev/github.com/yinebebt/ethiopiancalendar" target="_blank" >pkg.go.dev</a></p>

## Installation
Install using below go command:
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ func main() {
v1.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
}

router.Run(fmt.Sprintf("%v:%v", viper.GetString("server.host"), viper.GetString("server.port")))
router.Run(fmt.Sprintf(":%s", viper.GetString("server.port")))
}
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
host:
host: 0.0.0.0
port: 8080
schemes:
- http
Expand Down
2 changes: 1 addition & 1 deletion internal/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>API Endpoints</h2>
<h2>Documentation</h2>
<p><a href="https://ethiocal.koyeb.app/v1/swagger/index.html" target="_blank" >Try on swagger</a></p>

<p><a href="https://pkg.go.dev/gihub.com/ethiopiancalendar" target="_blank" >pkg.go.dev</a></p>
<p><a href="https://pkg.go.dev/github.com/yinebebt/ethiopiancalendar" target="_blank" >pkg.go.dev</a></p>

</div>
</body>
Expand Down

0 comments on commit 3763778

Please sign in to comment.