diff --git a/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs b/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
index 593afadf6..cf2a4a930 100644
--- a/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
+++ b/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
@@ -1,3 +1,4 @@
+//
using GetUserClient.ApiClient.Me;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
@@ -5,6 +6,7 @@
using Microsoft.Kiota.Cli.Commons;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
+using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.CommandLine;
diff --git a/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs b/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
index dde14dce7..612876f71 100644
--- a/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
+++ b/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using GetUserClient.ApiClient.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
diff --git a/get-started/azure-auth/cli/src/Client/Models/User.cs b/get-started/azure-auth/cli/src/Client/Models/User.cs
index 9f0db124a..e37733abe 100644
--- a/get-started/azure-auth/cli/src/Client/Models/User.cs
+++ b/get-started/azure-auth/cli/src/Client/Models/User.cs
@@ -1,3 +1,4 @@
+//
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
@@ -24,7 +25,7 @@ public class User : IAdditionalDataHolder, IParsable {
public string Id { get; set; }
#endif
///
- /// Instantiates a new User and sets the default values.
+ /// Instantiates a new user and sets the default values.
///
public User() {
AdditionalData = new Dictionary();
diff --git a/get-started/azure-auth/cli/src/Client/kiota-lock.json b/get-started/azure-auth/cli/src/Client/kiota-lock.json
index 11dd82d24..7dc9c97fd 100644
--- a/get-started/azure-auth/cli/src/Client/kiota-lock.json
+++ b/get-started/azure-auth/cli/src/Client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/cli/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUserClient.ApiClient",
"language": "Shell",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/cli/src/GetUserClient.csproj b/get-started/azure-auth/cli/src/GetUserClient.csproj
index 773e76cf7..cb9d11f06 100644
--- a/get-started/azure-auth/cli/src/GetUserClient.csproj
+++ b/get-started/azure-auth/cli/src/GetUserClient.csproj
@@ -13,10 +13,11 @@
-
+
+
diff --git a/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs b/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
index 7a39af7f1..998d76e59 100644
--- a/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
+++ b/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
@@ -1,8 +1,10 @@
+//
using GetUserClient.ApiClient.Me;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
+using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.IO;
@@ -26,6 +28,7 @@ public class GetUserApiClient : BaseRequestBuilder {
ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultSerializer();
+ ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultDeserializer();
ApiClientBuilder.RegisterDefaultDeserializer();
ApiClientBuilder.RegisterDefaultDeserializer();
diff --git a/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs b/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
index 9e9438262..e16d3083d 100644
--- a/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
+++ b/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using GetUserClient.ApiClient.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
diff --git a/get-started/azure-auth/dotnet/src/Client/Models/User.cs b/get-started/azure-auth/dotnet/src/Client/Models/User.cs
index 9f0db124a..e37733abe 100644
--- a/get-started/azure-auth/dotnet/src/Client/Models/User.cs
+++ b/get-started/azure-auth/dotnet/src/Client/Models/User.cs
@@ -1,3 +1,4 @@
+//
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
@@ -24,7 +25,7 @@ public class User : IAdditionalDataHolder, IParsable {
public string Id { get; set; }
#endif
///
- /// Instantiates a new User and sets the default values.
+ /// Instantiates a new user and sets the default values.
///
public User() {
AdditionalData = new Dictionary();
diff --git a/get-started/azure-auth/dotnet/src/Client/kiota-lock.json b/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
index aef952def..a57a7cdaa 100644
--- a/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
+++ b/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/dotnet/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUserClient.ApiClient",
"language": "CSharp",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/dotnet/src/GetUserClient.csproj b/get-started/azure-auth/dotnet/src/GetUserClient.csproj
index 13f72fcd2..62d2f0bb8 100644
--- a/get-started/azure-auth/dotnet/src/GetUserClient.csproj
+++ b/get-started/azure-auth/dotnet/src/GetUserClient.csproj
@@ -12,6 +12,7 @@
+
all
diff --git a/get-started/azure-auth/go/client/graph_api_client.go b/get-started/azure-auth/go/client/graph_api_client.go
index 23cd9616f..ca5255a24 100644
--- a/get-started/azure-auth/go/client/graph_api_client.go
+++ b/get-started/azure-auth/go/client/graph_api_client.go
@@ -5,6 +5,7 @@ import (
i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go"
+ i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go"
i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
@@ -21,6 +22,7 @@ func NewGraphApiClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() })
diff --git a/get-started/azure-auth/go/client/kiota-lock.json b/get-started/azure-auth/go/client/kiota-lock.json
index e372f9b5b..9756b2e0b 100644
--- a/get-started/azure-auth/go/client/kiota-lock.json
+++ b/get-started/azure-auth/go/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/go/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GraphApiClient",
"clientNamespaceName": "getuser/client",
"language": "Go",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/go/client/models/user.go b/get-started/azure-auth/go/client/models/user.go
index 3e03de98f..da0b732e0 100644
--- a/get-started/azure-auth/go/client/models/user.go
+++ b/get-started/azure-auth/go/client/models/user.go
@@ -13,7 +13,7 @@ type User struct {
// The id property
id *string
}
-// NewUser instantiates a new User and sets the default values.
+// NewUser instantiates a new user and sets the default values.
func NewUser()(*User) {
m := &User{
}
diff --git a/get-started/azure-auth/go/go.mod b/get-started/azure-auth/go/go.mod
index f44470a10..406a0add1 100644
--- a/get-started/azure-auth/go/go.mod
+++ b/get-started/azure-auth/go/go.mod
@@ -9,6 +9,7 @@ require (
github.com/microsoft/kiota-http-go v1.0.1
github.com/microsoft/kiota-serialization-form-go v1.0.0
github.com/microsoft/kiota-serialization-json-go v1.0.4
+ github.com/microsoft/kiota-serialization-multipart-go v1.0.0
github.com/microsoft/kiota-serialization-text-go v1.0.0
)
diff --git a/get-started/azure-auth/go/go.sum b/get-started/azure-auth/go/go.sum
index 66a742fef..4a049c7a1 100644
--- a/get-started/azure-auth/go/go.sum
+++ b/get-started/azure-auth/go/go.sum
@@ -35,6 +35,8 @@ github.com/microsoft/kiota-serialization-form-go v1.0.0 h1:UNdrkMnLFqUCccQZerKjb
github.com/microsoft/kiota-serialization-form-go v1.0.0/go.mod h1:h4mQOO6KVTNciMF6azi1J9QB19ujSw3ULKcSNyXXOMA=
github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ=
github.com/microsoft/kiota-serialization-json-go v1.0.4/go.mod h1:rM4+FsAY+9AEpBsBzkFFis+b/LZLlNKKewuLwK9Q6Mg=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0 h1:3O5sb5Zj+moLBiJympbXNaeV07K0d46IfuEd5v9+pBs=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0/go.mod h1:yauLeBTpANk4L03XD985akNysG24SnRJGaveZf+p4so=
github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA=
github.com/microsoft/kiota-serialization-text-go v1.0.0/go.mod h1:sM1/C6ecnQ7IquQOGUrUldaO5wj+9+v7G2W3sQ3fy6M=
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU=
diff --git a/get-started/azure-auth/java/app/build.gradle b/get-started/azure-auth/java/app/build.gradle
index 5d0ed4298..90016cc7c 100644
--- a/get-started/azure-auth/java/app/build.gradle
+++ b/get-started/azure-auth/java/app/build.gradle
@@ -31,6 +31,7 @@ dependencies {
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.5.0'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.5.0'
implementation 'com.azure:azure-identity:1.9.2'
//
}
diff --git a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/GetUserApiClient.java b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/GetUserApiClient.java
index 41c930976..25b9e7d81 100644
--- a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/GetUserApiClient.java
+++ b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/GetUserApiClient.java
@@ -7,6 +7,7 @@
import com.microsoft.kiota.serialization.FormSerializationWriterFactory;
import com.microsoft.kiota.serialization.JsonParseNodeFactory;
import com.microsoft.kiota.serialization.JsonSerializationWriterFactory;
+import com.microsoft.kiota.serialization.MultipartSerializationWriterFactory;
import com.microsoft.kiota.serialization.ParseNodeFactoryRegistry;
import com.microsoft.kiota.serialization.SerializationWriterFactoryRegistry;
import com.microsoft.kiota.serialization.TextParseNodeFactory;
@@ -37,6 +38,7 @@ public GetUserApiClient(@javax.annotation.Nonnull final RequestAdapter requestAd
ApiClientBuilder.registerDefaultSerializer(JsonSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultSerializer(TextSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultSerializer(FormSerializationWriterFactory.class);
+ ApiClientBuilder.registerDefaultSerializer(MultipartSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultDeserializer(JsonParseNodeFactory.class);
ApiClientBuilder.registerDefaultDeserializer(FormParseNodeFactory.class);
ApiClientBuilder.registerDefaultDeserializer(TextParseNodeFactory.class);
diff --git a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
index f1a72eb60..8b8a88b78 100644
--- a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
+++ b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/java/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "getuserclient.apiclient",
"language": "Java",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/me/MeRequestBuilder.java b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/me/MeRequestBuilder.java
index 7f04525c1..9f87e9690 100644
--- a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/me/MeRequestBuilder.java
+++ b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/me/MeRequestBuilder.java
@@ -39,7 +39,7 @@ public MeRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.an
super(requestAdapter, "{+baseurl}/me", rawUrl);
}
/**
- * @return a CompletableFuture of User
+ * @return a CompletableFuture of user
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture get() {
@@ -54,7 +54,7 @@ public java.util.concurrent.CompletableFuture get() {
}
/**
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
- * @return a CompletableFuture of User
+ * @return a CompletableFuture of user
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
diff --git a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/models/User.java b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/models/User.java
index 394a14b8f..976dbcb09 100644
--- a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/models/User.java
+++ b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/models/User.java
@@ -21,7 +21,7 @@ public class User implements AdditionalDataHolder, Parsable {
*/
private String id;
/**
- * Instantiates a new User and sets the default values.
+ * Instantiates a new user and sets the default values.
* @return a void
*/
@javax.annotation.Nullable
@@ -31,7 +31,7 @@ public User() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
- * @return a User
+ * @return a user
*/
@javax.annotation.Nonnull
public static User createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
@@ -87,7 +87,7 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer
}
/**
* Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- * @param value Value to set for the AdditionalData property.
+ * @param value Value to set for the additionalData property.
* @return a void
*/
@javax.annotation.Nonnull
diff --git a/get-started/azure-auth/php/client/Models/User.php b/get-started/azure-auth/php/client/Models/User.php
index 442f801f5..a9e639fe2 100644
--- a/get-started/azure-auth/php/client/Models/User.php
+++ b/get-started/azure-auth/php/client/Models/User.php
@@ -25,7 +25,7 @@ class User implements AdditionalDataHolder, Parsable
private ?string $id = null;
/**
- * Instantiates a new User and sets the default values.
+ * Instantiates a new user and sets the default values.
*/
public function __construct() {
$this->setAdditionalData([]);
@@ -88,7 +88,7 @@ public function serialize(SerializationWriter $writer): void {
/**
* Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- * @param array $value Value to set for the AdditionalData property.
+ * @param array $value Value to set for the additionalData property.
*/
public function setAdditionalData(?array $value): void {
$this->additionalData = $value;
diff --git a/get-started/azure-auth/php/client/kiota-lock.json b/get-started/azure-auth/php/client/kiota-lock.json
index 297ac1c32..b7319c170 100644
--- a/get-started/azure-auth/php/client/kiota-lock.json
+++ b/get-started/azure-auth/php/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/php/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GraphApiClient",
"clientNamespaceName": "GetUser\\Client",
"language": "PHP",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/python/client/kiota-lock.json b/get-started/azure-auth/python/client/kiota-lock.json
index 747fcc219..2978ab217 100644
--- a/get-started/azure-auth/python/client/kiota-lock.json
+++ b/get-started/azure-auth/python/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/python/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "client",
"language": "Python",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/ruby/client/kiota-lock.json b/get-started/azure-auth/ruby/client/kiota-lock.json
index daa6abc22..2bc5ca9ad 100644
--- a/get-started/azure-auth/ruby/client/kiota-lock.json
+++ b/get-started/azure-auth/ruby/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/ruby/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUser",
"language": "Ruby",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/ruby/client/models/user.rb b/get-started/azure-auth/ruby/client/models/user.rb
index e21dd760b..1df198fca 100644
--- a/get-started/azure-auth/ruby/client/models/user.rb
+++ b/get-started/azure-auth/ruby/client/models/user.rb
@@ -24,14 +24,14 @@ def additional_data
end
##
## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- ## @param value Value to set for the AdditionalData property.
+ ## @param value Value to set for the additionalData property.
## @return a void
##
def additional_data=(value)
@additional_data = value
end
##
- ## Instantiates a new User and sets the default values.
+ ## Instantiates a new user and sets the default values.
## @return a void
##
def initialize()
@@ -55,7 +55,7 @@ def display_name
end
##
## Sets the displayName property value. The displayName property
- ## @param value Value to set for the display_name property.
+ ## @param value Value to set for the displayName property.
## @return a void
##
def display_name=(value)
diff --git a/get-started/azure-auth/typescript/client/getUserApiClient.ts b/get-started/azure-auth/typescript/client/getUserApiClient.ts
index 27b2a4926..317d795ab 100644
--- a/get-started/azure-auth/typescript/client/getUserApiClient.ts
+++ b/get-started/azure-auth/typescript/client/getUserApiClient.ts
@@ -1,7 +1,9 @@
import {MeRequestBuilder} from './me/meRequestBuilder';
-import {BaseRequestBuilder, enableBackingStoreForSerializationWriterFactory, ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, RequestAdapter, SerializationWriterFactoryRegistry} from '@microsoft/kiota-abstractions';
+import type {RequestAdapter} from '@microsoft/kiota-abstractions';
+import {BaseRequestBuilder, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, enableBackingStoreForSerializationWriterFactory, registerDefaultDeserializer, registerDefaultSerializer} from '@microsoft/kiota-abstractions';
import {FormParseNodeFactory, FormSerializationWriterFactory} from '@microsoft/kiota-serialization-form';
import {JsonParseNodeFactory, JsonSerializationWriterFactory} from '@microsoft/kiota-serialization-json';
+import {MultipartSerializationWriterFactory} from '@microsoft/kiota-serialization-multipart';
import {TextParseNodeFactory, TextSerializationWriterFactory} from '@microsoft/kiota-serialization-text';
/**
@@ -23,6 +25,7 @@ export class GetUserApiClient extends BaseRequestBuilder {
registerDefaultSerializer(JsonSerializationWriterFactory);
registerDefaultSerializer(TextSerializationWriterFactory);
registerDefaultSerializer(FormSerializationWriterFactory);
+ registerDefaultSerializer(MultipartSerializationWriterFactory);
registerDefaultDeserializer(JsonParseNodeFactory);
registerDefaultDeserializer(TextParseNodeFactory);
registerDefaultDeserializer(FormParseNodeFactory);
diff --git a/get-started/azure-auth/typescript/client/kiota-lock.json b/get-started/azure-auth/typescript/client/kiota-lock.json
index 5e33b8812..1173af37e 100644
--- a/get-started/azure-auth/typescript/client/kiota-lock.json
+++ b/get-started/azure-auth/typescript/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/azure-auth/typescript/../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "ApiSdk",
"language": "TypeScript",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/azure-auth/typescript/client/me/meRequestBuilder.ts b/get-started/azure-auth/typescript/client/me/meRequestBuilder.ts
index 3c59b64b2..459be4e3a 100644
--- a/get-started/azure-auth/typescript/client/me/meRequestBuilder.ts
+++ b/get-started/azure-auth/typescript/client/me/meRequestBuilder.ts
@@ -1,7 +1,8 @@
import {User} from '../models/';
import {createUserFromDiscriminatorValue} from '../models/createUserFromDiscriminatorValue';
import {MeRequestBuilderGetRequestConfiguration} from './meRequestBuilderGetRequestConfiguration';
-import {BaseRequestBuilder, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption} from '@microsoft/kiota-abstractions';
+import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
+import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
/**
* Builds and executes requests for operations under /me
diff --git a/get-started/azure-auth/typescript/client/me/meRequestBuilderGetRequestConfiguration.ts b/get-started/azure-auth/typescript/client/me/meRequestBuilderGetRequestConfiguration.ts
index 4512bb82a..7648e274f 100644
--- a/get-started/azure-auth/typescript/client/me/meRequestBuilderGetRequestConfiguration.ts
+++ b/get-started/azure-auth/typescript/client/me/meRequestBuilderGetRequestConfiguration.ts
@@ -1,4 +1,4 @@
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface MeRequestBuilderGetRequestConfiguration {
/**
diff --git a/get-started/azure-auth/typescript/client/models/deserializeIntoUser.ts b/get-started/azure-auth/typescript/client/models/deserializeIntoUser.ts
index 663df34d7..f04b7ef90 100644
--- a/get-started/azure-auth/typescript/client/models/deserializeIntoUser.ts
+++ b/get-started/azure-auth/typescript/client/models/deserializeIntoUser.ts
@@ -1,5 +1,5 @@
-import {User} from './user';
-import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
+import type {User} from './user';
+import type {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
export function deserializeIntoUser(user: User | undefined = {} as User) : Record void> {
return {
diff --git a/get-started/azure-auth/typescript/client/models/serializeUser.ts b/get-started/azure-auth/typescript/client/models/serializeUser.ts
index 798c5bad4..022f2e718 100644
--- a/get-started/azure-auth/typescript/client/models/serializeUser.ts
+++ b/get-started/azure-auth/typescript/client/models/serializeUser.ts
@@ -1,5 +1,5 @@
-import {User} from './user';
-import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
+import type {User} from './user';
+import type {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
export function serializeUser(writer: SerializationWriter, user: User | undefined = {} as User) : void {
writer.writeStringValue("displayName", user.displayName);
diff --git a/get-started/azure-auth/typescript/client/models/user.ts b/get-started/azure-auth/typescript/client/models/user.ts
index 44ab0d28b..7941d8ae4 100644
--- a/get-started/azure-auth/typescript/client/models/user.ts
+++ b/get-started/azure-auth/typescript/client/models/user.ts
@@ -1,4 +1,4 @@
-import {AdditionalDataHolder, Parsable} from '@microsoft/kiota-abstractions';
+import type {AdditionalDataHolder, Parsable} from '@microsoft/kiota-abstractions';
export interface User extends AdditionalDataHolder, Parsable {
/**
diff --git a/get-started/azure-auth/typescript/package-lock.json b/get-started/azure-auth/typescript/package-lock.json
index 5e90080c3..45dee96e8 100644
--- a/get-started/azure-auth/typescript/package-lock.json
+++ b/get-started/azure-auth/typescript/package-lock.json
@@ -10,11 +10,12 @@
"license": "MIT",
"dependencies": {
"@azure/identity": "^3.2.4",
- "@microsoft/kiota-abstractions": "^1.0.0-preview.24",
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
"@microsoft/kiota-authentication-azure": "^1.0.0-preview.21",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.25",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.15",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.24",
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.3",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.23",
"node-fetch": "^3.3.2"
},
@@ -295,6 +296,16 @@
"tslib": "^2.3.1"
}
},
+ "node_modules/@microsoft/kiota-serialization-multipart": {
+ "version": "1.0.0-preview.3",
+ "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-multipart/-/kiota-serialization-multipart-1.0.0-preview.3.tgz",
+ "integrity": "sha512-w1cAy6twf11/tuSNNt4U+FgMueeBzGxpoJsaQl0p2D22FwT71/itIwhIZMwUjUu/Tejs9nCW1UdAy3AHjWuuWw==",
+ "dependencies": {
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
+ "guid-typescript": "^1.0.9",
+ "tslib": "^2.3.1"
+ }
+ },
"node_modules/@microsoft/kiota-serialization-text": {
"version": "1.0.0-preview.23",
"resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-text/-/kiota-serialization-text-1.0.0-preview.23.tgz",
@@ -1126,6 +1137,16 @@
"tslib": "^2.3.1"
}
},
+ "@microsoft/kiota-serialization-multipart": {
+ "version": "1.0.0-preview.3",
+ "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-multipart/-/kiota-serialization-multipart-1.0.0-preview.3.tgz",
+ "integrity": "sha512-w1cAy6twf11/tuSNNt4U+FgMueeBzGxpoJsaQl0p2D22FwT71/itIwhIZMwUjUu/Tejs9nCW1UdAy3AHjWuuWw==",
+ "requires": {
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
+ "guid-typescript": "^1.0.9",
+ "tslib": "^2.3.1"
+ }
+ },
"@microsoft/kiota-serialization-text": {
"version": "1.0.0-preview.23",
"resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-text/-/kiota-serialization-text-1.0.0-preview.23.tgz",
diff --git a/get-started/azure-auth/typescript/package.json b/get-started/azure-auth/typescript/package.json
index 0b4eb129a..7c7363165 100644
--- a/get-started/azure-auth/typescript/package.json
+++ b/get-started/azure-auth/typescript/package.json
@@ -15,11 +15,12 @@
},
"dependencies": {
"@azure/identity": "^3.2.4",
- "@microsoft/kiota-abstractions": "^1.0.0-preview.24",
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
"@microsoft/kiota-authentication-azure": "^1.0.0-preview.21",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.25",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.15",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.24",
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.3",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.23",
"node-fetch": "^3.3.2"
}
diff --git a/get-started/quickstart/cli/.vscode/launch.json b/get-started/quickstart/cli/.vscode/launch.json
index 06490003c..ab9239756 100644
--- a/get-started/quickstart/cli/.vscode/launch.json
+++ b/get-started/quickstart/cli/.vscode/launch.json
@@ -13,7 +13,6 @@
"program": "${workspaceFolder}/src/bin/Debug/net7.0/KiotaPostsCLI.dll",
"args": [
"posts",
- "item",
"patch",
"--post-id",
"5",
@@ -23,6 +22,7 @@
"cwd": "${workspaceFolder}/src",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "integratedTerminal",
+ "internalConsoleOptions": "neverOpen",
"stopAtEntry": false
},
{
diff --git a/get-started/quickstart/cli/makesdk.bat b/get-started/quickstart/cli/makesdk.bat
index 95bd8ec08..8edc2dbe6 100644
--- a/get-started/quickstart/cli/makesdk.bat
+++ b/get-started/quickstart/cli/makesdk.bat
@@ -1 +1 @@
-kiota generate -l Shell -c PostsClient -n KiotaPostsCLI.Client -d ../posts-api.yml -o ./src/Client --co
+kiota generate -l CLI -c PostsClient -n KiotaPostsCLI.Client -d ../posts-api.yml -o ./src/Client --co
diff --git a/get-started/quickstart/cli/src/Client/Models/Post.cs b/get-started/quickstart/cli/src/Client/Models/Post.cs
index 78dae3c04..936a65423 100644
--- a/get-started/quickstart/cli/src/Client/Models/Post.cs
+++ b/get-started/quickstart/cli/src/Client/Models/Post.cs
@@ -1,3 +1,4 @@
+//
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
@@ -28,7 +29,7 @@ public class Post : IAdditionalDataHolder, IParsable {
/// The userId property
public int? UserId { get; set; }
///
- /// Instantiates a new Post and sets the default values.
+ /// Instantiates a new post and sets the default values.
///
public Post() {
AdditionalData = new Dictionary();
diff --git a/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs b/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
index 4a4a05b9f..20a7cd6b4 100644
--- a/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
+++ b/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using KiotaPostsCLI.Client.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
diff --git a/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
index 18301f54b..35f18cb80 100644
--- a/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
+++ b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using KiotaPostsCLI.Client.Models;
using KiotaPostsCLI.Client.Posts.Item;
using Microsoft.Kiota.Abstractions.Serialization;
diff --git a/get-started/quickstart/cli/src/Client/PostsClient.cs b/get-started/quickstart/cli/src/Client/PostsClient.cs
index 17e054b01..740b998a1 100644
--- a/get-started/quickstart/cli/src/Client/PostsClient.cs
+++ b/get-started/quickstart/cli/src/Client/PostsClient.cs
@@ -1,3 +1,4 @@
+//
using KiotaPostsCLI.Client.Posts;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
@@ -5,6 +6,7 @@
using Microsoft.Kiota.Cli.Commons;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
+using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.CommandLine;
diff --git a/get-started/quickstart/cli/src/Client/kiota-lock.json b/get-started/quickstart/cli/src/Client/kiota-lock.json
index 590fe71b9..9ed9256e6 100644
--- a/get-started/quickstart/cli/src/Client/kiota-lock.json
+++ b/get-started/quickstart/cli/src/Client/kiota-lock.json
@@ -1,17 +1,18 @@
{
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
- "descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/cli/../posts-api.yml",
+ "descriptionLocation": "C:\\Source\\Repos\\kiota-samples\\get-started\\quickstart\\cli\\..\\posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.1",
"clientClassName": "PostsClient",
"clientNamespaceName": "KiotaPostsCLI.Client",
- "language": "Shell",
+ "language": "CLI",
"usesBackingStore": false,
"includeAdditionalData": true,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/cli/src/KiotaPostsCLI.csproj b/get-started/quickstart/cli/src/KiotaPostsCLI.csproj
index e274f6a44..0ad7bf42a 100644
--- a/get-started/quickstart/cli/src/KiotaPostsCLI.csproj
+++ b/get-started/quickstart/cli/src/KiotaPostsCLI.csproj
@@ -9,10 +9,11 @@
-
+
+
diff --git a/get-started/quickstart/dotnet/src/Client/Models/Post.cs b/get-started/quickstart/dotnet/src/Client/Models/Post.cs
index 31686eecd..22d4d36b3 100644
--- a/get-started/quickstart/dotnet/src/Client/Models/Post.cs
+++ b/get-started/quickstart/dotnet/src/Client/Models/Post.cs
@@ -1,3 +1,4 @@
+//
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
@@ -28,7 +29,7 @@ public class Post : IAdditionalDataHolder, IParsable {
/// The userId property
public int? UserId { get; set; }
///
- /// Instantiates a new Post and sets the default values.
+ /// Instantiates a new post and sets the default values.
///
public Post() {
AdditionalData = new Dictionary();
diff --git a/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs b/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
index ff4f1d34f..88c60a501 100644
--- a/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
+++ b/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using KiotaPosts.Client.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
diff --git a/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs b/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
index 9bc4d5df1..4ea07356b 100644
--- a/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
+++ b/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
@@ -1,3 +1,4 @@
+//
using KiotaPosts.Client.Models;
using KiotaPosts.Client.Posts.Item;
using Microsoft.Kiota.Abstractions.Serialization;
@@ -14,6 +15,13 @@ namespace KiotaPosts.Client.Posts {
///
public class PostsRequestBuilder : BaseRequestBuilder {
/// Gets an item from the KiotaPosts.Client.posts.item collection
+ public PostItemRequestBuilder this[int position] { get {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("post%2Did", position);
+ return new PostItemRequestBuilder(urlTplParams, RequestAdapter);
+ } }
+ /// Gets an item from the KiotaPosts.Client.posts.item collection
+ [Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public PostItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary(PathParameters);
if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("post%2Did", position);
diff --git a/get-started/quickstart/dotnet/src/Client/PostsClient.cs b/get-started/quickstart/dotnet/src/Client/PostsClient.cs
index f12432602..6dc241430 100644
--- a/get-started/quickstart/dotnet/src/Client/PostsClient.cs
+++ b/get-started/quickstart/dotnet/src/Client/PostsClient.cs
@@ -1,8 +1,10 @@
+//
using KiotaPosts.Client.Posts;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
+using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.IO;
@@ -26,6 +28,7 @@ public class PostsClient : BaseRequestBuilder {
ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultSerializer();
+ ApiClientBuilder.RegisterDefaultSerializer();
ApiClientBuilder.RegisterDefaultDeserializer();
ApiClientBuilder.RegisterDefaultDeserializer();
ApiClientBuilder.RegisterDefaultDeserializer();
diff --git a/get-started/quickstart/dotnet/src/Client/kiota-lock.json b/get-started/quickstart/dotnet/src/Client/kiota-lock.json
index 0cfb8c441..0f886a004 100644
--- a/get-started/quickstart/dotnet/src/Client/kiota-lock.json
+++ b/get-started/quickstart/dotnet/src/Client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/dotnet/../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "KiotaPosts.Client",
"language": "CSharp",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/dotnet/src/KiotaPosts.csproj b/get-started/quickstart/dotnet/src/KiotaPosts.csproj
index df76f7b12..ca5f4f7f0 100644
--- a/get-started/quickstart/dotnet/src/KiotaPosts.csproj
+++ b/get-started/quickstart/dotnet/src/KiotaPosts.csproj
@@ -12,6 +12,7 @@
+
diff --git a/get-started/quickstart/dotnet/src/Program.cs b/get-started/quickstart/dotnet/src/Program.cs
index 83f5ffabc..ccc183764 100644
--- a/get-started/quickstart/dotnet/src/Program.cs
+++ b/get-started/quickstart/dotnet/src/Program.cs
@@ -22,7 +22,7 @@
Console.WriteLine($"Retrieved {allPosts?.Count} posts.");
// GET /posts/{id}
- var specificPostId = "5";
+ var specificPostId = 5;
var specificPost = await client.Posts[specificPostId].GetAsync();
Console.WriteLine($"Retrieved post - ID: {specificPost?.Id}, Title: {specificPost?.Title}, Body: {specificPost?.Body}");
diff --git a/get-started/quickstart/dotnet/test/PostsRequestsTests.cs b/get-started/quickstart/dotnet/test/PostsRequestsTests.cs
index bd07ed0af..17d5be799 100644
--- a/get-started/quickstart/dotnet/test/PostsRequestsTests.cs
+++ b/get-started/quickstart/dotnet/test/PostsRequestsTests.cs
@@ -67,7 +67,7 @@ public async Task Post_By_Id()
// Return the mocked post #1 object if the path
// contains the ID of post #1
adapter.SendAsync(
- Arg.Is(req => req.PathParameters.Values.Contains("1")),
+ Arg.Is(req => req.PathParameters.Values.Contains(1)),
Arg.Any>(),
Arg.Any>>(),
Arg.Any())
@@ -76,15 +76,15 @@ public async Task Post_By_Id()
// Return the mocked post #2 object if the path
// contains the ID of post #2
adapter.SendAsync(
- Arg.Is(req => req.PathParameters.Values.Contains("2")),
+ Arg.Is(req => req.PathParameters.Values.Contains(2)),
Arg.Any>(),
Arg.Any>>(),
Arg.Any())
.Returns(postsMock[1]);
// Act
- var post1 = await postsClient.Posts["1"].GetAsync();
- var post2 = await postsClient.Posts["2"].GetAsync();
+ var post1 = await postsClient.Posts[1].GetAsync();
+ var post2 = await postsClient.Posts[2].GetAsync();
// Assert
Assert.NotNull(post1);
diff --git a/get-started/quickstart/go/client/kiota-lock.json b/get-started/quickstart/go/client/kiota-lock.json
index c59243425..dc606a647 100644
--- a/get-started/quickstart/go/client/kiota-lock.json
+++ b/get-started/quickstart/go/client/kiota-lock.json
@@ -1,8 +1,8 @@
{
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
- "descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/go/../posts-api.yml",
+ "descriptionLocation": "C:\\Source\\Repos\\kiota-samples\\get-started\\quickstart\\go\\..\\posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.1",
"clientClassName": "PostsClient",
"clientNamespaceName": "kiota_posts/client",
"language": "Go",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/go/client/models/post.go b/get-started/quickstart/go/client/models/post.go
index 2c2ff0a45..6ab92ae1a 100644
--- a/get-started/quickstart/go/client/models/post.go
+++ b/get-started/quickstart/go/client/models/post.go
@@ -17,7 +17,7 @@ type Post struct {
// The userId property
userId *int32
}
-// NewPost instantiates a new Post and sets the default values.
+// NewPost instantiates a new post and sets the default values.
func NewPost()(*Post) {
m := &Post{
}
diff --git a/get-started/quickstart/go/client/posts/posts_request_builder.go b/get-started/quickstart/go/client/posts/posts_request_builder.go
index 71981eba5..744c90109 100644
--- a/get-started/quickstart/go/client/posts/posts_request_builder.go
+++ b/get-started/quickstart/go/client/posts/posts_request_builder.go
@@ -2,6 +2,7 @@ package posts
import (
"context"
+ i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i5dbc5a8abf7315a9f71dbdc1d57fa9606d698daab75f49bdbbd6d7a719d6e620 "kiota_posts/client/models"
)
@@ -34,6 +35,7 @@ type PostsRequestBuilderPostRequestConfiguration struct {
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// ByPostId gets an item from the kiota_posts/client.posts.item collection
+// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.
func (m *PostsRequestBuilder) ByPostId(postId string)(*PostItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
@@ -44,6 +46,15 @@ func (m *PostsRequestBuilder) ByPostId(postId string)(*PostItemRequestBuilder) {
}
return NewPostItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
}
+// ByPostIdInteger gets an item from the kiota_posts/client.posts.item collection
+func (m *PostsRequestBuilder) ByPostIdInteger(postId int32)(*PostItemRequestBuilder) {
+ urlTplParams := make(map[string]string)
+ for idx, item := range m.BaseRequestBuilder.PathParameters {
+ urlTplParams[idx] = item
+ }
+ urlTplParams["post%2Did"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(postId), 10)
+ return NewPostItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
+}
// NewPostsRequestBuilderInternal instantiates a new PostsRequestBuilder and sets the default values.
func NewPostsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PostsRequestBuilder) {
m := &PostsRequestBuilder{
diff --git a/get-started/quickstart/go/client/posts_client.go b/get-started/quickstart/go/client/posts_client.go
index 05bb0c8f1..7cc836940 100644
--- a/get-started/quickstart/go/client/posts_client.go
+++ b/get-started/quickstart/go/client/posts_client.go
@@ -5,6 +5,7 @@ import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go"
i52613f2089d5c2e45760a12999fdd9189a97d8912aea5f6eebb961aa543d5d98 "kiota_posts/client/posts"
+ i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go"
i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
@@ -21,6 +22,7 @@ func NewPostsClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() })
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() })
diff --git a/get-started/quickstart/go/go.mod b/get-started/quickstart/go/go.mod
index 632b1edff..7127b0058 100644
--- a/get-started/quickstart/go/go.mod
+++ b/get-started/quickstart/go/go.mod
@@ -7,6 +7,7 @@ require (
github.com/microsoft/kiota-http-go v1.0.1
github.com/microsoft/kiota-serialization-form-go v1.0.0
github.com/microsoft/kiota-serialization-json-go v1.0.4
+ github.com/microsoft/kiota-serialization-multipart-go v1.0.0
github.com/microsoft/kiota-serialization-text-go v1.0.0
)
diff --git a/get-started/quickstart/go/go.sum b/get-started/quickstart/go/go.sum
index dfb4a9675..8d89b7256 100644
--- a/get-started/quickstart/go/go.sum
+++ b/get-started/quickstart/go/go.sum
@@ -20,6 +20,8 @@ github.com/microsoft/kiota-serialization-form-go v1.0.0 h1:UNdrkMnLFqUCccQZerKjb
github.com/microsoft/kiota-serialization-form-go v1.0.0/go.mod h1:h4mQOO6KVTNciMF6azi1J9QB19ujSw3ULKcSNyXXOMA=
github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ=
github.com/microsoft/kiota-serialization-json-go v1.0.4/go.mod h1:rM4+FsAY+9AEpBsBzkFFis+b/LZLlNKKewuLwK9Q6Mg=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0 h1:3O5sb5Zj+moLBiJympbXNaeV07K0d46IfuEd5v9+pBs=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0/go.mod h1:yauLeBTpANk4L03XD985akNysG24SnRJGaveZf+p4so=
github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA=
github.com/microsoft/kiota-serialization-text-go v1.0.0/go.mod h1:sM1/C6ecnQ7IquQOGUrUldaO5wj+9+v7G2W3sQ3fy6M=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
diff --git a/get-started/quickstart/go/main.go b/get-started/quickstart/go/main.go
index bb548fa2f..0657cfff1 100644
--- a/get-started/quickstart/go/main.go
+++ b/get-started/quickstart/go/main.go
@@ -38,8 +38,8 @@ func main() {
fmt.Printf("Retrieved %d posts.\n", len(allPosts))
// GET /posts/{id}
- specificPostId := "5"
- specificPost, err := client.Posts().ByPostId(specificPostId).Get(context.Background(), nil)
+ specificPostId := int32(5)
+ specificPost, err := client.Posts().ByPostIdInteger(specificPostId).Get(context.Background(), nil)
if err != nil {
log.Fatalf("Error getting post by ID: %v\n", err)
}
@@ -65,14 +65,14 @@ func main() {
newTitle := "Updated title"
update.SetTitle(&newTitle)
- updatedPost, err := client.Posts().ByPostId(specificPostId).Patch(context.Background(), update, nil)
+ updatedPost, err := client.Posts().ByPostIdInteger(specificPostId).Patch(context.Background(), update, nil)
if err != nil {
log.Fatalf("Error updating post: %v\n", err)
}
fmt.Printf("Updated post - ID: %d, Title: %s, Body: %s\n", *updatedPost.GetId(), *updatedPost.GetTitle(), *updatedPost.GetBody())
// DELETE /posts/{id}
- _, err = client.Posts().ByPostId(specificPostId).Delete(context.Background(), nil)
+ _, err = client.Posts().ByPostIdInteger(specificPostId).Delete(context.Background(), nil)
if err != nil {
log.Fatalf("Error deleting post: %v\n", err)
}
diff --git a/get-started/quickstart/java/app/build.gradle b/get-started/quickstart/java/app/build.gradle
index 9cc9daeaf..de1ce9757 100644
--- a/get-started/quickstart/java/app/build.gradle
+++ b/get-started/quickstart/java/app/build.gradle
@@ -29,6 +29,7 @@ dependencies {
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.5.0'
+ implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.5.0'
//
}
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/App.java b/get-started/quickstart/java/app/src/main/java/kiotaposts/App.java
index 26ef12d22..9562b81f2 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/App.java
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/App.java
@@ -33,7 +33,7 @@ public static void main(String[] args) {
.join();
// GET /posts/{id}
- final String specificPostId = "5";
+ final Integer specificPostId = 5;
client.posts().byPostId(specificPostId).get()
.thenAccept(specificPost -> {
System.out.printf("Retrieved post - ID: %d, Title: %s, Body: %s%n",
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/PostsClient.java b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/PostsClient.java
index 4b405f606..097a0ab50 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/PostsClient.java
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/PostsClient.java
@@ -7,6 +7,7 @@
import com.microsoft.kiota.serialization.FormSerializationWriterFactory;
import com.microsoft.kiota.serialization.JsonParseNodeFactory;
import com.microsoft.kiota.serialization.JsonSerializationWriterFactory;
+import com.microsoft.kiota.serialization.MultipartSerializationWriterFactory;
import com.microsoft.kiota.serialization.ParseNodeFactoryRegistry;
import com.microsoft.kiota.serialization.SerializationWriterFactoryRegistry;
import com.microsoft.kiota.serialization.TextParseNodeFactory;
@@ -37,6 +38,7 @@ public PostsClient(@javax.annotation.Nonnull final RequestAdapter requestAdapter
ApiClientBuilder.registerDefaultSerializer(JsonSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultSerializer(TextSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultSerializer(FormSerializationWriterFactory.class);
+ ApiClientBuilder.registerDefaultSerializer(MultipartSerializationWriterFactory.class);
ApiClientBuilder.registerDefaultDeserializer(JsonParseNodeFactory.class);
ApiClientBuilder.registerDefaultDeserializer(FormParseNodeFactory.class);
ApiClientBuilder.registerDefaultDeserializer(TextParseNodeFactory.class);
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
index cfc577298..c71dc8c5e 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/java/../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "kiotaposts.client",
"language": "Java",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/models/Post.java b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/models/Post.java
index 9b19b0f5b..a1eabfd83 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/models/Post.java
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/models/Post.java
@@ -29,7 +29,7 @@ public class Post implements AdditionalDataHolder, Parsable {
*/
private Integer userId;
/**
- * Instantiates a new Post and sets the default values.
+ * Instantiates a new post and sets the default values.
* @return a void
*/
@javax.annotation.Nullable
@@ -39,7 +39,7 @@ public Post() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
- * @return a Post
+ * @return a post
*/
@javax.annotation.Nonnull
public static Post createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
@@ -115,7 +115,7 @@ public void serialize(@javax.annotation.Nonnull final SerializationWriter writer
}
/**
* Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- * @param value Value to set for the AdditionalData property.
+ * @param value Value to set for the additionalData property.
* @return a void
*/
@javax.annotation.Nonnull
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/PostsRequestBuilder.java b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/PostsRequestBuilder.java
index 498997d98..9a1910143 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/PostsRequestBuilder.java
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/PostsRequestBuilder.java
@@ -25,7 +25,7 @@ public class PostsRequestBuilder extends BaseRequestBuilder {
* @return a PostItemRequestBuilder
*/
@javax.annotation.Nonnull
- public PostItemRequestBuilder byPostId(@javax.annotation.Nonnull final String postId) {
+ public PostItemRequestBuilder byPostId(@javax.annotation.Nonnull final Integer postId) {
Objects.requireNonNull(postId);
final HashMap urlTplParams = new HashMap(this.pathParameters);
urlTplParams.put("post%2Did", postId);
@@ -53,7 +53,7 @@ public PostsRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax
}
/**
* Get posts
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture> get() {
@@ -69,7 +69,7 @@ public java.util.concurrent.CompletableFuture> get() {
/**
* Get posts
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture> get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
@@ -85,7 +85,7 @@ public java.util.concurrent.CompletableFuture> get(@javax.a
/**
* Create post
* @param body The request body
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Post body) {
@@ -102,7 +102,7 @@ public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnu
* Create post
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture post(@javax.annotation.Nonnull final Post body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/item/PostItemRequestBuilder.java b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/item/PostItemRequestBuilder.java
index ea5d5e66d..be81119d0 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/item/PostItemRequestBuilder.java
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/posts/item/PostItemRequestBuilder.java
@@ -72,7 +72,7 @@ public java.util.concurrent.CompletableFuture delete(@javax.annotat
}
/**
* Get post by ID
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture get() {
@@ -88,7 +88,7 @@ public java.util.concurrent.CompletableFuture get() {
/**
* Get post by ID
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
@@ -104,7 +104,7 @@ public java.util.concurrent.CompletableFuture get(@javax.annotation.Nullab
/**
* Update post
* @param body The request body
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Post body) {
@@ -121,7 +121,7 @@ public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonn
* Update post
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
- * @return a CompletableFuture of Post
+ * @return a CompletableFuture of post
*/
@javax.annotation.Nonnull
public java.util.concurrent.CompletableFuture patch(@javax.annotation.Nonnull final Post body, @javax.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
diff --git a/get-started/quickstart/php/client/Models/Post.php b/get-started/quickstart/php/client/Models/Post.php
index 8742b3215..f38a5df77 100644
--- a/get-started/quickstart/php/client/Models/Post.php
+++ b/get-started/quickstart/php/client/Models/Post.php
@@ -35,7 +35,7 @@ class Post implements AdditionalDataHolder, Parsable
private ?int $userId = null;
/**
- * Instantiates a new Post and sets the default values.
+ * Instantiates a new post and sets the default values.
*/
public function __construct() {
$this->setAdditionalData([]);
@@ -118,7 +118,7 @@ public function serialize(SerializationWriter $writer): void {
/**
* Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- * @param array $value Value to set for the AdditionalData property.
+ * @param array $value Value to set for the additionalData property.
*/
public function setAdditionalData(?array $value): void {
$this->additionalData = $value;
diff --git a/get-started/quickstart/php/client/Posts/PostsRequestBuilder.php b/get-started/quickstart/php/client/Posts/PostsRequestBuilder.php
index 8be017b69..a49b3c3f7 100644
--- a/get-started/quickstart/php/client/Posts/PostsRequestBuilder.php
+++ b/get-started/quickstart/php/client/Posts/PostsRequestBuilder.php
@@ -19,10 +19,10 @@ class PostsRequestBuilder extends BaseRequestBuilder
{
/**
* Gets an item from the KiotaPosts/Client.posts.item collection
- * @param string $postId Unique identifier of the item
+ * @param int $postId Unique identifier of the item
* @return PostItemRequestBuilder
*/
- public function byPostId(string $postId): PostItemRequestBuilder {
+ public function byPostId(int $postId): PostItemRequestBuilder {
$urlTplParams = $this->pathParameters;
$urlTplParams['post%2Did'] = $postId;
return new PostItemRequestBuilder($urlTplParams, $this->requestAdapter);
diff --git a/get-started/quickstart/php/client/kiota-lock.json b/get-started/quickstart/php/client/kiota-lock.json
index 18346d38a..6c9b2cbdd 100644
--- a/get-started/quickstart/php/client/kiota-lock.json
+++ b/get-started/quickstart/php/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/php/../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "PostsApiClient",
"clientNamespaceName": "KiotaPosts\\Client",
"language": "PHP",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/php/main.php b/get-started/quickstart/php/main.php
index a9fa23745..19aa02633 100644
--- a/get-started/quickstart/php/main.php
+++ b/get-started/quickstart/php/main.php
@@ -23,7 +23,7 @@
echo "Retrieved {$postCount} posts.\n";
// GET /posts/{id}
- $specificPostId = "5";
+ $specificPostId = 5;
$specificPost = $client->posts()->byPostId($specificPostId)->get()->wait();
echo "Retrieved post - ID: {$specificPost->getId()}, Title: {$specificPost->getTitle()}, Body: {$specificPost->getBody()}\n";
diff --git a/get-started/quickstart/python/client/kiota-lock.json b/get-started/quickstart/python/client/kiota-lock.json
index 9a23a26ba..cf5817ad2 100644
--- a/get-started/quickstart/python/client/kiota-lock.json
+++ b/get-started/quickstart/python/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/python/../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "client",
"language": "Python",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/python/client/posts/posts_request_builder.py b/get-started/quickstart/python/client/posts/posts_request_builder.py
index b7c00f46a..a4c765781 100644
--- a/get-started/quickstart/python/client/posts/posts_request_builder.py
+++ b/get-started/quickstart/python/client/posts/posts_request_builder.py
@@ -27,7 +27,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
"""
super().__init__(request_adapter, "{+baseurl}/posts{?userId*,title*}", path_parameters)
- def by_post_id(self,post_id: str) -> PostItemRequestBuilder:
+ def by_post_id(self,post_id: int) -> PostItemRequestBuilder:
"""
Gets an item from the client.posts.item collection
Args:
diff --git a/get-started/quickstart/typescript/client/kiota-lock.json b/get-started/quickstart/typescript/client/kiota-lock.json
index e3d288782..8e5049ad7 100644
--- a/get-started/quickstart/typescript/client/kiota-lock.json
+++ b/get-started/quickstart/typescript/client/kiota-lock.json
@@ -2,7 +2,7 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "/home/runner/work/kiota-samples/kiota-samples/get-started/quickstart/typescript/../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.4.0",
+ "kiotaVersion": "1.5.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "ApiSdk",
"language": "TypeScript",
@@ -11,7 +11,8 @@
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
- "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory"
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
],
"deserializers": [
"Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
@@ -21,7 +22,8 @@
"structuredMimeTypes": [
"application/json",
"text/plain",
- "application/x-www-form-urlencoded"
+ "application/x-www-form-urlencoded",
+ "multipart/form-data"
],
"includePatterns": [],
"excludePatterns": [],
diff --git a/get-started/quickstart/typescript/client/models/deserializeIntoPost.ts b/get-started/quickstart/typescript/client/models/deserializeIntoPost.ts
index 1b2d9ac57..2dce9c823 100644
--- a/get-started/quickstart/typescript/client/models/deserializeIntoPost.ts
+++ b/get-started/quickstart/typescript/client/models/deserializeIntoPost.ts
@@ -1,5 +1,5 @@
-import {Post} from './post';
-import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
+import type {Post} from './post';
+import type {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
export function deserializeIntoPost(post: Post | undefined = {} as Post) : Record void> {
return {
diff --git a/get-started/quickstart/typescript/client/models/post.ts b/get-started/quickstart/typescript/client/models/post.ts
index f2b18e882..491b41d7d 100644
--- a/get-started/quickstart/typescript/client/models/post.ts
+++ b/get-started/quickstart/typescript/client/models/post.ts
@@ -1,4 +1,4 @@
-import {AdditionalDataHolder, Parsable} from '@microsoft/kiota-abstractions';
+import type {AdditionalDataHolder, Parsable} from '@microsoft/kiota-abstractions';
export interface Post extends AdditionalDataHolder, Parsable {
/**
diff --git a/get-started/quickstart/typescript/client/models/serializePost.ts b/get-started/quickstart/typescript/client/models/serializePost.ts
index 8e48739fb..7d570f7b5 100644
--- a/get-started/quickstart/typescript/client/models/serializePost.ts
+++ b/get-started/quickstart/typescript/client/models/serializePost.ts
@@ -1,5 +1,5 @@
-import {Post} from './post';
-import {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
+import type {Post} from './post';
+import type {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
export function serializePost(writer: SerializationWriter, post: Post | undefined = {} as Post) : void {
writer.writeStringValue("body", post.body);
diff --git a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilder.ts b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilder.ts
index ccb11972d..f35f1620c 100644
--- a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilder.ts
+++ b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilder.ts
@@ -1,11 +1,12 @@
import {createPostFromDiscriminatorValue} from '../../models/createPostFromDiscriminatorValue';
import {deserializeIntoPost} from '../../models/deserializeIntoPost';
-import {Post} from '../../models/post';
+import type {Post} from '../../models/post';
import {serializePost} from '../../models/serializePost';
import {PostItemRequestBuilderDeleteRequestConfiguration} from './postItemRequestBuilderDeleteRequestConfiguration';
import {PostItemRequestBuilderGetRequestConfiguration} from './postItemRequestBuilderGetRequestConfiguration';
import {PostItemRequestBuilderPatchRequestConfiguration} from './postItemRequestBuilderPatchRequestConfiguration';
-import {BaseRequestBuilder, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption} from '@microsoft/kiota-abstractions';
+import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
+import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
/**
* Builds and executes requests for operations under /posts/{post-id}
@@ -47,8 +48,7 @@ export class PostItemRequestBuilder extends BaseRequestBuilder {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of Post
*/
- public patch(body: Post | undefined, requestConfiguration?: PostItemRequestBuilderPatchRequestConfiguration | undefined) : Promise {
- if(!body) throw new Error("body cannot be undefined");
+ public patch(body: Post, requestConfiguration?: PostItemRequestBuilderPatchRequestConfiguration | undefined) : Promise {
const requestInfo = this.toPatchRequestInformation(
body, requestConfiguration
);
@@ -93,7 +93,7 @@ export class PostItemRequestBuilder extends BaseRequestBuilder {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
- public toPatchRequestInformation(body: Post | undefined, requestConfiguration?: PostItemRequestBuilderPatchRequestConfiguration | undefined) : RequestInformation {
+ public toPatchRequestInformation(body: Post, requestConfiguration?: PostItemRequestBuilderPatchRequestConfiguration | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation();
requestInfo.urlTemplate = this.urlTemplate;
@@ -104,7 +104,7 @@ export class PostItemRequestBuilder extends BaseRequestBuilder {
requestInfo.addRequestHeaders(requestConfiguration.headers);
requestInfo.addRequestOptions(requestConfiguration.options);
}
- requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body as any, serializePost);
+ requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePost);
return requestInfo;
};
}
diff --git a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderDeleteRequestConfiguration.ts b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderDeleteRequestConfiguration.ts
index 020dde4be..ee9d9ec81 100644
--- a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderDeleteRequestConfiguration.ts
+++ b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderDeleteRequestConfiguration.ts
@@ -1,4 +1,4 @@
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface PostItemRequestBuilderDeleteRequestConfiguration {
/**
diff --git a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderGetRequestConfiguration.ts b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderGetRequestConfiguration.ts
index c595fc1a6..c796a6515 100644
--- a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderGetRequestConfiguration.ts
+++ b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderGetRequestConfiguration.ts
@@ -1,4 +1,4 @@
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface PostItemRequestBuilderGetRequestConfiguration {
/**
diff --git a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderPatchRequestConfiguration.ts b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderPatchRequestConfiguration.ts
index 8b0ec9cf1..780c2cc4b 100644
--- a/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderPatchRequestConfiguration.ts
+++ b/get-started/quickstart/typescript/client/posts/item/postItemRequestBuilderPatchRequestConfiguration.ts
@@ -1,4 +1,4 @@
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface PostItemRequestBuilderPatchRequestConfiguration {
/**
diff --git a/get-started/quickstart/typescript/client/posts/postsRequestBuilder.ts b/get-started/quickstart/typescript/client/posts/postsRequestBuilder.ts
index 4fbb6d4a2..ce630e268 100644
--- a/get-started/quickstart/typescript/client/posts/postsRequestBuilder.ts
+++ b/get-started/quickstart/typescript/client/posts/postsRequestBuilder.ts
@@ -1,11 +1,12 @@
import {createPostFromDiscriminatorValue} from '../models/createPostFromDiscriminatorValue';
import {deserializeIntoPost} from '../models/deserializeIntoPost';
-import {Post} from '../models/post';
+import type {Post} from '../models/post';
import {serializePost} from '../models/serializePost';
import {PostItemRequestBuilder} from './item/postItemRequestBuilder';
import {PostsRequestBuilderGetRequestConfiguration} from './postsRequestBuilderGetRequestConfiguration';
import {PostsRequestBuilderPostRequestConfiguration} from './postsRequestBuilderPostRequestConfiguration';
-import {BaseRequestBuilder, getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter, RequestInformation, RequestOption} from '@microsoft/kiota-abstractions';
+import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
+import {BaseRequestBuilder, HttpMethod, RequestInformation, getPathParameters} from '@microsoft/kiota-abstractions';
/**
* Builds and executes requests for operations under /posts
@@ -16,7 +17,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder {
* @param postId Unique identifier of the item
* @returns a PostItemRequestBuilder
*/
- public byPostId(postId: string) : PostItemRequestBuilder {
+ public byPostId(postId: number) : PostItemRequestBuilder {
if(!postId) throw new Error("postId cannot be undefined");
const urlTplParams = getPathParameters(this.pathParameters);
urlTplParams["post%2Did"] = postId
@@ -47,8 +48,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of Post
*/
- public post(body: Post | undefined, requestConfiguration?: PostsRequestBuilderPostRequestConfiguration | undefined) : Promise {
- if(!body) throw new Error("body cannot be undefined");
+ public post(body: Post, requestConfiguration?: PostsRequestBuilderPostRequestConfiguration | undefined) : Promise {
const requestInfo = this.toPostRequestInformation(
body, requestConfiguration
);
@@ -78,7 +78,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder {
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
- public toPostRequestInformation(body: Post | undefined, requestConfiguration?: PostsRequestBuilderPostRequestConfiguration | undefined) : RequestInformation {
+ public toPostRequestInformation(body: Post, requestConfiguration?: PostsRequestBuilderPostRequestConfiguration | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation();
requestInfo.urlTemplate = this.urlTemplate;
@@ -89,7 +89,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder {
requestInfo.addRequestHeaders(requestConfiguration.headers);
requestInfo.addRequestOptions(requestConfiguration.options);
}
- requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body as any, serializePost);
+ requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePost);
return requestInfo;
};
}
diff --git a/get-started/quickstart/typescript/client/posts/postsRequestBuilderGetRequestConfiguration.ts b/get-started/quickstart/typescript/client/posts/postsRequestBuilderGetRequestConfiguration.ts
index 7c33c5503..aa478987e 100644
--- a/get-started/quickstart/typescript/client/posts/postsRequestBuilderGetRequestConfiguration.ts
+++ b/get-started/quickstart/typescript/client/posts/postsRequestBuilderGetRequestConfiguration.ts
@@ -1,5 +1,5 @@
import {PostsRequestBuilderGetQueryParameters} from './postsRequestBuilderGetQueryParameters';
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface PostsRequestBuilderGetRequestConfiguration {
/**
diff --git a/get-started/quickstart/typescript/client/posts/postsRequestBuilderPostRequestConfiguration.ts b/get-started/quickstart/typescript/client/posts/postsRequestBuilderPostRequestConfiguration.ts
index 7185fdc50..742416417 100644
--- a/get-started/quickstart/typescript/client/posts/postsRequestBuilderPostRequestConfiguration.ts
+++ b/get-started/quickstart/typescript/client/posts/postsRequestBuilderPostRequestConfiguration.ts
@@ -1,4 +1,4 @@
-import {RequestOption} from '@microsoft/kiota-abstractions';
+import type {RequestOption} from '@microsoft/kiota-abstractions';
export interface PostsRequestBuilderPostRequestConfiguration {
/**
diff --git a/get-started/quickstart/typescript/client/postsClient.ts b/get-started/quickstart/typescript/client/postsClient.ts
index 06e0db698..6a1fd0ffc 100644
--- a/get-started/quickstart/typescript/client/postsClient.ts
+++ b/get-started/quickstart/typescript/client/postsClient.ts
@@ -1,7 +1,9 @@
import {PostsRequestBuilder} from './posts/postsRequestBuilder';
-import {BaseRequestBuilder, enableBackingStoreForSerializationWriterFactory, ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, RequestAdapter, SerializationWriterFactoryRegistry} from '@microsoft/kiota-abstractions';
+import {BaseRequestBuilder, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, enableBackingStoreForSerializationWriterFactory, registerDefaultDeserializer, registerDefaultSerializer} from '@microsoft/kiota-abstractions';
+import type {RequestAdapter} from '@microsoft/kiota-abstractions';
import {FormParseNodeFactory, FormSerializationWriterFactory} from '@microsoft/kiota-serialization-form';
import {JsonParseNodeFactory, JsonSerializationWriterFactory} from '@microsoft/kiota-serialization-json';
+import {MultipartSerializationWriterFactory} from '@microsoft/kiota-serialization-multipart';
import {TextParseNodeFactory, TextSerializationWriterFactory} from '@microsoft/kiota-serialization-text';
/**
@@ -23,6 +25,7 @@ export class PostsClient extends BaseRequestBuilder {
registerDefaultSerializer(JsonSerializationWriterFactory);
registerDefaultSerializer(TextSerializationWriterFactory);
registerDefaultSerializer(FormSerializationWriterFactory);
+ registerDefaultSerializer(MultipartSerializationWriterFactory);
registerDefaultDeserializer(JsonParseNodeFactory);
registerDefaultDeserializer(TextParseNodeFactory);
registerDefaultDeserializer(FormParseNodeFactory);
diff --git a/get-started/quickstart/typescript/index.ts b/get-started/quickstart/typescript/index.ts
index 650e0a989..6f14cf17e 100644
--- a/get-started/quickstart/typescript/index.ts
+++ b/get-started/quickstart/typescript/index.ts
@@ -22,7 +22,7 @@ async function main(): Promise {
console.log(`Retrieved ${allPosts?.length} posts.`);
// GET /posts/{id}
- const specificPostId = '5';
+ const specificPostId = 5;
const specificPost = await client.posts.byPostId(specificPostId).get();
console.log(`Retrieved post - ID: ${specificPost?.id}, Title: ${specificPost?.title}, Body: ${specificPost?.body}`);
diff --git a/get-started/quickstart/typescript/package-lock.json b/get-started/quickstart/typescript/package-lock.json
index b1f6bf431..a581fa109 100644
--- a/get-started/quickstart/typescript/package-lock.json
+++ b/get-started/quickstart/typescript/package-lock.json
@@ -9,10 +9,11 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
- "@microsoft/kiota-abstractions": "^1.0.0-preview.22",
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.25",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.15",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.24",
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.3",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.23"
},
"devDependencies": {
@@ -102,6 +103,16 @@
"tslib": "^2.3.1"
}
},
+ "node_modules/@microsoft/kiota-serialization-multipart": {
+ "version": "1.0.0-preview.3",
+ "resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-multipart/-/kiota-serialization-multipart-1.0.0-preview.3.tgz",
+ "integrity": "sha512-w1cAy6twf11/tuSNNt4U+FgMueeBzGxpoJsaQl0p2D22FwT71/itIwhIZMwUjUu/Tejs9nCW1UdAy3AHjWuuWw==",
+ "dependencies": {
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
+ "guid-typescript": "^1.0.9",
+ "tslib": "^2.3.1"
+ }
+ },
"node_modules/@microsoft/kiota-serialization-text": {
"version": "1.0.0-preview.23",
"resolved": "https://registry.npmjs.org/@microsoft/kiota-serialization-text/-/kiota-serialization-text-1.0.0-preview.23.tgz",
diff --git a/get-started/quickstart/typescript/package.json b/get-started/quickstart/typescript/package.json
index ea6dea7c9..168dd092f 100644
--- a/get-started/quickstart/typescript/package.json
+++ b/get-started/quickstart/typescript/package.json
@@ -10,10 +10,11 @@
"author": "",
"license": "MIT",
"dependencies": {
- "@microsoft/kiota-abstractions": "^1.0.0-preview.22",
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.26",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.25",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.15",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.24",
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.3",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.23"
},
"devDependencies": {