Skip to content

Commit

Permalink
Merge pull request #376 from LerianStudio/feature/MIDAZ-358
Browse files Browse the repository at this point in the history
Feature/MIDAZ-358
  • Loading branch information
qnen authored Dec 12, 2024
2 parents 31f5bc7 + 08059f4 commit ae11b42
Show file tree
Hide file tree
Showing 70 changed files with 3,204 additions and 526 deletions.
8 changes: 4 additions & 4 deletions components/audit/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
)

// @title Midaz Audit API
// @version 1.0.0
// @description This is a swagger documentation for the Midaz Audit API
// @version 1.0.0
// @description This is a swagger documentation for the Midaz Audit API
// @termsOfService http://swagger.io/terms/
// @contact.name Discord community
// @contact.url https://discord.gg/DnhqKwkGv3
// @contact.url https://discord.gg/DnhqKwkGv3
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:3005
// @BasePath /
func main() {
Expand Down
2 changes: 1 addition & 1 deletion components/audit/internal/adapters/http/in/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ type HashValidationResponse struct {
AuditID string `json:"auditId"`
ExpectedHash string `json:"expectedHash"`
CalculatedHash string `json:"calculatedHash"`
IsTampered bool `json:"isTampered"`
IsTampered bool `json:"isTampered"`
} // @Name HashValidationResponse
12 changes: 6 additions & 6 deletions components/audit/internal/adapters/http/in/trillian.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ type TrillianHandler struct {

// AuditLogs compares leaf hash with a hash generated from the leaf value
//
// @Summary Audit logs by reference ID
// @Description Audit logs to check if any was tampered
// @Tags Audit
// @Summary Audit logs by reference ID
// @Description Audit logs to check if any was tampered
// @Tags Audit
// @Produce json
// @Param Authorization header string true "Authorization Bearer Token"
// @Param Midaz-Id header string false "Request ID"
Expand Down Expand Up @@ -79,9 +79,9 @@ func (th *TrillianHandler) AuditLogs(c *fiber.Ctx) error {

// ReadLogs retrieves log values by the audit id
//
// @Summary Get logs by reference ID
// @Description Get log values from Trillian by reference ID
// @Tags Audit
// @Summary Get logs by reference ID
// @Description Get log values from Trillian by reference ID
// @Tags Audit
// @Produce json
// @Param Authorization header string true "Authorization Bearer Token"
// @Param Midaz-Id header string false "Request ID"
Expand Down
4 changes: 4 additions & 0 deletions components/ledger/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ SWAGGER_BASE_PATH=/
SWAGGER_SCHEMES=http
SWAGGER_LEFT_DELIMITER={{
SWAGGER_RIGHT_DELIMITER=}}

# PAGINATION
MAX_PAGINATION_LIMIT=100
MAX_PAGINATION_MONTH_DATE_RANGE=3
Loading

0 comments on commit ae11b42

Please sign in to comment.