Calling REST Server After Form Submission

Author Message

Jordan Duggan

Tuesday 02 August 2011 1:18:40 pm

What is the best way to call and process a call to a REST API after a person fills out a form?

Xavier Serna

Wednesday 03 August 2011 9:02:38 am

Perhaps you can take advantage of the CustomAction hook to call your custom action...

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:55:20
Script start
Timing: Jan 30 2025 00:55:20
Module start 'layout'
Timing: Jan 30 2025 00:55:20
Module start 'content'
Timing: Jan 30 2025 00:55:20
Module end 'content'
Timing: Jan 30 2025 00:55:20
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2656151.2266
Module start 'layout' 0.00470.0030 739.492236.6875
Module start 'content' 0.00770.0066 776.179790.1094
Module end 'content' 0.01430.0012 866.289129.9766
Script end 0.0156  896.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.8434140.0002
Check MTime0.00106.6775140.0001
Mysql Total
Database connection0.00063.907110.0006
Mysqli_queries0.002717.125930.0009
Looping result0.00000.090310.0000
Template Total0.00095.810.0009
Template load0.00074.587810.0007
Template processing0.00021.231510.0002
Override
Cache load0.00053.073310.0005
General
dbfile0.002516.134680.0003
String conversion0.00000.056640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs