statamic / docs

Statamic Documentation
https://statamic.dev
Other
110 stars 373 forks source link

Document REST API #1463

Open ScottPenhall98 opened 4 hours ago

ScottPenhall98 commented 4 hours ago

Looking at the docs for content/collections/docs/rest-api.md there is no reference to creating form submissions. Diving a bit deeper and looking into Form submissions, you are able to submit items through the endpoint !/forms/{form} and there is some information on using AJAX to submit forms "https://statamic.dev/forms#using-ajax" but I feel there should be some information in these docs to explain it a bit better.

Cheers

jackmcdade commented 3 hours ago

The rest api is read only, the form submissions via Ajax is more of an HTML/POST adaption of the tag rather than an API specific one. On Sep 26, 2024, at 8:04 PM, ScottPenhall98 @.***> wrote: Looking at the docs for content/collections/docs/rest-api.md there is no reference of creating form submissions. Diving a bit deeper and looking into Form submissions, you are able to submit items through the endpoint !/forms/{form} and there is some information on using AJAX to submit forms "https://statamic.dev/forms#using-ajax" but I feel there should be some information in these docs to explain it a bit better. Cheers

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

ScottPenhall98 commented 2 hours ago

Hi @jackmcdade, Thanks for that.

Looking at the AJAX docs regardless, there is no endpoint listed there. Do you think we could add it?

Cheers