Forms and Delivery API
# help-with-umbraco
b
Currently latest Umbraco comes with Content and Delivery API. https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api/media-delivery-api Is there anything in progress regarding a Forms Delivery API? Currently these endspoints are
GET
.. but I know there are work in v14 regarding management API. Furthermore is will there be endpoints to
POST
form data in a headless setup using Delivery API or would one need to implement this in its own controller/endpoint?
a
There is an API for Forms as well - lik in the CMS, you have to enable it first though: https://docs.umbraco.com/umbraco-forms/developer/configuration#enableformsapi
For a site I did recently, the configuration for
Umbraco:Forms
looks like this:
Copy code
json
{
  "Options": {
    "EnableFormsApi": true
  },
  "Security": {
    "EnableAntiForgeryTokenForFormsApi": false,
    "FormsApiKey": "your api key"
  }
}
IIRC the API endpoints are shown in Swagger. There is a GET endpoint for getting the form definition, and a POST endpoint for the data submission.
b
@Anders Bjerner thanks, yeah it just came to my attension.. I probably didn't find anything about it because I was looking under the CMS docs 😅 https://docs.umbraco.com/umbraco-cms/ Maybe there should be some cross-linking between these 😊
a
Yeah, using a product like Gitbook probably has some limitations. But there is a DXP drop down in the header - although you have to know to look there 😮
b
Yes, or more just a general dropdown, e.g. on CMS here: https://docs.umbraco.com/umbraco-commerce/v/12.commerce.latest/ Not very clear there are addional options though.
a
19 Views