var::webservices::examples::Base - base class for Ready2Adopt web services examples
This is a base class for example web services and should not be instantiated directly.
All _pre.pm and _post.pm files can use helper methods defined in this class.
package var::webservices::examples::MyWebServiceExample; use strict; use warnings; use parent qw(var::webservices::examples::Base); # methods go here
Creates dynamic fields according to provided configurations.
my %Result = $WebServiceExampleObject->DynamicFieldsAdd( DynamicFieldList => [ # (required) List of dynamic field configuration { Name => 'PreProcApplicationRecorded', Label => 'Application Recorded', FieldType => 'Dropdown', ObjectType => 'Ticket', FieldOrder => 10000, Config => { DefaultValue => '', PossibleNone => 1, PossibleValues => { 'no' => 'no', 'yes' => 'yes', }, TranslatableValues => 0, }, }, ... ], );
Result: %Result = ( Success => 1, Error => undef, );
Updates system configuration according with the provided data.
my $Success = $WebServiceExampleObject->SystemConfigurationUpdate( WebServiceName => 'Some WebService', Data => [ { 'GenericInterface::Invoker::Settings::ResponseDynamicField' => { 1234 => 'Some Dynamic Field', # ... }, }, ], );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.