Skip to content

Commit 9f3bbe6

Browse files
committed
docs: add swagger in README.md file
1 parent 4a710a1 commit 9f3bbe6

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ NAQA API is a RESTful service designed to provide data about the purification pr
8686

8787
[Access the API on GCP](https://naqa-api-36462279645.europe-west1.run.app/)
8888

89+
### API Documentation
90+
91+
[Swagger Documentation](https://naqa-api-36462279645.europe-west1.run.app/docs/index.html) - Interactive API documentation
92+
8993
### Prerequisites
9094
- Go 1.23.4 or higher
9195
- Git
@@ -196,6 +200,8 @@ Server will start at `http://localhost:3000`
196200
- Response Time: 195ms
197201
- Open Connections: 7.8 MB
198202

203+
![Additional Performance View](./assets/3.png)
204+
199205
<details>
200206
<summary>Monitoring Features</summary>
201207

assets/3.png

84.2 KB
Loading

tests/calculator_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,11 @@ func TestGetDaysInYear(t *testing.T) {
9292
}
9393

9494

95-
for _, tt := range te
96-
95+
for _, tt := range tests {
9796
result := handlers.GetDaysInYear(tt.year)
98-
if result != tt.expected {
99-
t.Errorf("getDaysInYear(%d) = %d, expected %d", tt.year, result, tt.expected)
100-
}
101-
})
97+
if result != tt.expected {
98+
t.Errorf("getDaysInYear(%d) = %d, expected %d", tt.year, result, tt.expected)
99+
}
102100
}
103101
}
104102

0 commit comments

Comments
 (0)