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.2.0
// @version 2.3.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
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "2.2.0",
Version: "2.3.0",
Host: "pico-api.banuacoder.com",
BasePath: "/api/v1",
Schemes: []string{"https", "http"},
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
},
"version": "2.2.0"
"version": "2.3.0"
},
"host": "pico-api.banuacoder.com",
"basePath": "/api/v1",
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ info:
url: https://opensource.org/licenses/MIT
termsOfService: http://swagger.io/terms/
title: Sulawesi Tengah COVID-19 Data API
version: 2.2.0
version: 2.3.0
paths:
/:
get:
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 @@ -298,7 +298,7 @@ func (h *CovidHandler) HealthCheck(w http.ResponseWriter, r *http.Request) {
health := map[string]interface{}{
"status": "healthy",
"service": "COVID-19 API",
"version": "2.2.0",
"version": "2.3.0",
"timestamp": time.Now().UTC().Format(time.RFC3339),
}

Expand Down Expand Up @@ -355,7 +355,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.2.0",
"version": "2.3.0",
"description": "A comprehensive REST API for COVID-19 data in Sulawesi Tengah (Central Sulawesi)",
},
"documentation": map[string]interface{}{
Expand Down