Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package main provides the entry point for the Sulawesi Tengah COVID-19 Data API
//
// @title Sulawesi Tengah COVID-19 Data API
// @version 2.8.0
// @version 2.9.0
// @description A comprehensive REST API for COVID-19 data in Sulawesi Tengah (Central Sulawesi), with additional national and provincial data for context. Features enhanced ODP/PDP grouping, hybrid pagination, and rate limiting protection. Rate limiting: 100 requests per minute per IP address by default, with appropriate HTTP headers for client guidance.
// @termsOfService http://swagger.io/terms/
//
Expand Down
4 changes: 2 additions & 2 deletions internal/handler/covid_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (h *CovidHandler) HealthCheck(w http.ResponseWriter, r *http.Request) {
health := map[string]interface{}{
"status": "healthy",
"service": "COVID-19 API",
"version": "2.8.0",
"version": "2.9.0",
"timestamp": time.Now().UTC().Format(time.RFC3339),
}

Expand Down Expand Up @@ -459,7 +459,7 @@ func (h *CovidHandler) GetAPIIndex(w http.ResponseWriter, r *http.Request) {
endpoints := map[string]interface{}{
"api": map[string]interface{}{
"title": "Sulawesi Tengah COVID-19 Data API",
"version": "2.8.0",
"version": "2.9.0",
"description": "A comprehensive REST API for COVID-19 data in Sulawesi Tengah (Central Sulawesi)",
},
"documentation": map[string]interface{}{
Expand Down
4 changes: 2 additions & 2 deletions internal/handler/covid_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func TestCovidHandler_GetAPIIndex(t *testing.T) {
apiInfo, ok := data["api"].(map[string]interface{})
assert.True(t, ok)
assert.Equal(t, "Sulawesi Tengah COVID-19 Data API", apiInfo["title"])
assert.Equal(t, "2.8.0", apiInfo["version"])
assert.Equal(t, "2.9.0", apiInfo["version"])

// Verify endpoints structure
endpoints, ok := data["endpoints"].(map[string]interface{})
Expand Down Expand Up @@ -676,7 +676,7 @@ func TestCovidHandler_HealthCheck(t *testing.T) {
assert.True(t, ok)
assert.Equal(t, "degraded", data["status"])
assert.Equal(t, "COVID-19 API", data["service"])
assert.Equal(t, "2.8.0", data["version"])
assert.Equal(t, "2.9.0", data["version"])
assert.Contains(t, data, "database")

dbData, ok := data["database"].(map[string]interface{})
Expand Down
Loading