You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,7 +113,7 @@ Sprout also offers several optional features that you can enable by adding addit
113
113
-`@SproutPolicy` Lets you define custom access policies for your each endpoint.
114
114
-`@SproutId` Lets you define which field of your entity should be used as the ID field if you don't want to use the Database ID.
115
115
116
-
The `@SproutRessource` annotation also provides several configuration options:
116
+
The `@SproutResource` annotation also provides several configuration options:
117
117
-`path`: Customize the base path for the generated endpoints (default: `/api/{entity}`)
118
118
-`generateSwaggerDocs`: Enable or disable Swagger documentation generation for the endpoints (default: true)
119
119
-`name`: Customize the name of the resource used in the endpoint paths and swagger tag (default: entity class name in lowercase)
@@ -137,7 +137,7 @@ If you add the sprout-runtime dependency to your project, you can also use the f
137
137
Sprout provides a unified error handling mechanism that returns consistent error responses for all endpoints.
138
138
This is enabled by default when you include the sprout-runtime dependency. It'll provide the following parameters which can be set via the application.properties file:
139
139
-`sprout.errors.enabled` - Whether the error handling is enabled (default: true)
140
-
-`sprout.error.log-log-stacktraces` - Whether to include stack traces in error responses (default: false)
140
+
-`sprout.error.log-stacktraces` - Whether to include stack traces in error responses (default: false)
141
141
-`sprout.errors.internal-code` - The error code to log for internal server errors (default: internal-error)
0 commit comments