Provide service information
Before publishing the service, you can provide information to users about the service.
In your service module:
- Define a
PUBLIC
record with aWSInfo
attribute. - Add fields as required, such as title, version, contact details, etc.
- Add values for the record fields.
Note: If you do not set a service information record, the default value as the name of the service
module is used for the service title.
# service module
PUBLIC DEFINE serviceInfo RECORD ATTRIBUTE(WSInfo)
title STRING,
version STRING,
contact STRING
END RECORD = (
title: "my service",
version: "1.0",
contact: "fg@4js.com")
# ... service functions ...
This information is then generated in the openapi.json or openapi.yaml specification file.