jobrouter / php-rest-client Goto Github PK
View Code? Open in Web Editor NEWPHP REST Client for the JobRouter® digitalisation platform
License: GNU General Public License v2.0
PHP REST Client for the JobRouter® digitalisation platform
License: GNU General Public License v2.0
It may be useful to adjust the default options from curl like proxy settings or the verification of the SSL certificate. Currently, this is not possible.
The ClientConfiguration
object can receive an additional configuration for the curl settings as array. As the underlying browser component (kriswallsmith/Buzz) validates those settings this is not needed in the JobRoutert Client.
ClientConfiguration
class an additional method withClientOptions
is available to set client options overriding default values.ClientOptions
value object.For now, this is just a collection to be done once PHP 8.1 is the minimum requirement.
FileInterface
FileStorage->current()
and add return typesIncident
class)Incident
class)step
, priority
, pool
and simulation
properties in Incident
classException trace:
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Buzz\Browser::prepareMultipart() must be of the type string, int given, called in /xxx/vendor/kriswallsmith/buzz/lib/Browser.php on line 127 and defined in /xxx/vendor/kriswallsmith/buzz/lib/Browser.php:219
Stack trace:
#0 /xxx/vendor/kriswallsmith/buzz/lib/Browser.php(127): Buzz\Browser->prepareMultipart()
#1 /xxx/vendor/brotkrueml/jobrouter-client/src/Client/RestClient.php(200): Buzz\Browser->submitForm()
#2 /xxx/vendor/brotkrueml/jobrouter-client/src/Client/RestClient.php(156): Brotkrueml\JobRouterClient\Client\RestClient->sendForm()
#3 /xxx/start_instance.php(48): Brotkrueml\JobRouterClient\Client\RestClient->request()
#4 {main}
thrown in /xxx/vendor/kriswallsmith/buzz/lib/Browser.php on line 219
Example:
$multipart = [
'step' => '1',
'summary' => 'Instance started via JobRouter Client',
'processtable[fields][0][name]' => 'NAME',
'processtable[fields][0][value]' => 'Max Mustermann',
'subtables[0][name]' => 'KNOWLEDGE',
'subtables[0][rows][0][fields][0][name]' => 'SUBJECT',
'subtables[0][rows][0][fields][0][value]'=> 'Excel',
'subtables[0][rows][0][fields][1][name]' => 'SELF_ASSESSMENT',
'subtables[0][rows][0][fields][1][value]'=> 2,
];
$response = $client->request(
'POST',
'application/incidents/application',
$multipart
);
Solution would be to cast an integer to a string for subtables.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.