Changes for version 1.02 - 2025-03-04
- Added response_code to endpoint definition, which changes success code in generated OpenAPI
- Added 'schemas' method to resources as a special method executed before 'api' method is executed
- Not setting response in endpoint definition now assumes empty response (status 204)
- API Failures now use more specific HTTP response codes
- Changed how wrappers set their response schemas
- Status classes 4XX and 5XX are now used by built in wrappers
- Wrapper maps statuses to NXX, instead of N00 (for example 2XX instead of 200)
Documentation
Reference to APIs with Whelk
Setting up Whelk inside Kelp
Modules
Whelk as a Kelp module
A friendly API framework based on Kelp
Exceptions for your API
Base class for formatters
Whelk's default OpenAPI generator class
Base Kelp controller for Whelk
Role for Whelk API resources
Whelk validation language
Base class for a Whelk type
Base class for wrappers
Provides
in lib/Whelk/Config.pm
in lib/Whelk/Endpoint.pm
in lib/Whelk/Endpoint/Parameters.pm
in lib/Whelk/Formatter/JSON.pm
in lib/Whelk/Formatter/YAML.pm
in lib/Whelk/ResourceMeta.pm
in lib/Whelk/Schema/Definition/Array.pm
in lib/Whelk/Schema/Definition/Boolean.pm
in lib/Whelk/Schema/Definition/Empty.pm
in lib/Whelk/Schema/Definition/Integer.pm
in lib/Whelk/Schema/Definition/Null.pm
in lib/Whelk/Schema/Definition/Number.pm
in lib/Whelk/Schema/Definition/Object.pm
in lib/Whelk/Schema/Definition/String.pm
in lib/Whelk/Schema/Definition/_Scalar.pm
in lib/Whelk/Schema/ExtraRule.pm
in lib/Whelk/StrictBase.pm
in lib/Whelk/Wrapper/Simple.pm
in lib/Whelk/Wrapper/WithStatus.pm