From b4dafb7204ac2b1aca7f933b55f09bd1b978bf13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=B6fer=20Patrick?=
Date: Mon, 12 Dec 2022 08:55:52 +0100
Subject: [PATCH] add webroot create method
---
src/MeshClient.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/MeshClient.php b/src/MeshClient.php
index 50700e4..5d85e20 100644
--- a/src/MeshClient.php
+++ b/src/MeshClient.php
@@ -1098,6 +1098,11 @@ public function webroot(string $projectName, string $path, array $parameters = [
return $this->buildRequest("GET", "/" . $this->encodeSegment($projectName) . "/webroot/" . $path, null, $parameters, $stream);
}
+ public function webrootCreate(string $projectName, string $path, $request, array $parameters = [], $stream = false): MeshRequest
+ {
+ return $this->buildRequest("POST", "/" . $this->encodeSegment($projectName) . "/webroot/" . $path, $request , $parameters, $stream);
+ }
+
public function webrootField(string $projectName, string $fieldName, string $path, array $parameters = [], $stream = false): MeshRequest
{
return $this->buildRequest("GET", "/" . $this->encodeSegment($projectName) . "/webrootfield/" . $fieldName . "/" . $path, null, $parameters, $stream);