diff --git a/README.md b/README.md index 968847a..d4f956f 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ func main() { o := okapi.Default() o.Get("/", func(c okapi.Context) error { - return c.OK(okapi.M{"message": "Hello from Okapi Web Framework!","Licence":"MIT"}) + return c.OK(okapi.M{"message": "Hello from Okapi Web Framework!","License":"MIT"}) }) // Start the server if err := o.Start(); err != nil { @@ -151,7 +151,7 @@ func main() { return c.OK(response) }, // OpenAPI Documentation - okapi.DocSummary("Create a new Book"), + okapi.DocSummary("Create a new Book"), // Route Summary okapi.DocRequestBody(Book{}), // Request body okapi.DocResponse(Response{}), // Success Response body okapi.DocErrorResponse(http.StatusBadRequest, ErrorResponse{}), // Error response body @@ -174,7 +174,7 @@ Visit [`http://localhost:8080`](http://localhost:8080) to see the response: ```json { - "Licence": "MIT", + "License": "MIT", "message": "Hello from Okapi Web Framework!" } ``` diff --git a/examples/sample/main.go b/examples/sample/main.go index a915bf9..cf9457a 100644 --- a/examples/sample/main.go +++ b/examples/sample/main.go @@ -25,7 +25,7 @@ func main() { o := okapi.Default() o.Get("/", func(c okapi.Context) error { - return c.OK(okapi.M{"message": "Hello from Okapi Web Framework!", "Licence": "MIT"}) + return c.OK(okapi.M{"message": "Hello from Okapi Web Framework!", "License": "MIT"}) }) o.Post("/books", func(c okapi.Context) error { book := Book{}