diff --git a/get-started/azure-auth/cli/src/GetUserClient.csproj b/get-started/azure-auth/cli/src/GetUserClient.csproj
index a0d592656..d639526a1 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/GetUserClient.csproj b/get-started/azure-auth/dotnet/src/GetUserClient.csproj
index ea974ce9d..5b23282da 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/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/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/src/Client/Posts/PostsRequestBuilder.cs b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
index f15f1b284..38ea6c25b 100644
--- a/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
+++ b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
@@ -20,11 +20,11 @@ namespace KiotaPostsCLI.Client.Posts {
///
public class PostsRequestBuilder : BaseCliRequestBuilder {
/// Gets an item from the KiotaPostsCLI.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);
- } }
+ // [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);
+ // } }
///
/// Gets an item from the KiotaPostsCLI.Client.posts.item collection
///
diff --git a/get-started/quickstart/cli/src/KiotaPostsCLI.csproj b/get-started/quickstart/cli/src/KiotaPostsCLI.csproj
index 9481ad672..f2877a074 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/KiotaPosts.csproj b/get-started/quickstart/dotnet/src/KiotaPosts.csproj
index 211cb2058..a69512e06 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..88490d9b8 100644
--- a/get-started/quickstart/dotnet/test/PostsRequestsTests.cs
+++ b/get-started/quickstart/dotnet/test/PostsRequestsTests.cs
@@ -83,8 +83,8 @@ public async Task Post_By_Id()
.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 6c976c858..8b9ddcab9 100644
--- a/get-started/quickstart/go/client/kiota-lock.json
+++ b/get-started/quickstart/go/client/kiota-lock.json
@@ -1,6 +1,6 @@
{
"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.5.0",
"clientClassName": "PostsClient",
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/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/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": {