I am creating a controller for a custom API endpoint. On a GET request, it returns a form schema (defined in the Forms application) so an external app can render the form dynamically. On a POST request, it validates and stores the submitted data in the XbyK database.
I have outlined the solution but am unsure of the best way to obtain the form schema. The most reasonable source seems to be the CMS_Class
table, specifically the ClassFormDefinition
field, which stores the schema as an XML document. While I can retrieve and parse this field via the XbyK API, it feels cumbersome, and I assume there’s a more efficient approach.
I’d appreciate guidance on the best way to retrieve the full form schema, including the submit button, so I can properly render fields with the right attributes and validate values on submission in an external app by consuming the custom API endpoint.
Environment
- Xperience by Kentico version: [30.1.0]
- .NET version: [8|9]