diff --git a/README.md b/README.md index 5572ac6..5af24c3 100644 --- a/README.md +++ b/README.md @@ -362,3 +362,9 @@ docker build --target=release-distroless -t hapi-fhir:distroless . Note that distroless images are also automatically build and pushed to the container registry, see the `-distroless` suffix in the image tags. + +## Adding custom operations + +To add a custom operation, refer to the documentation in the core hapi-fhir libraries [here](https://hapifhir.io/hapi-fhir/docs/server_plain/rest_operations_operations.html). + +Within `hapi-fhir-jpaserver-starter`, create a generic class (that does not extend or implement any classes or interfaces), add the `@Operation` as a method within the generic class, and then register the class as a provider using `RestfulServer.registerProvider()`. \ No newline at end of file