Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 3f0b4bc

Browse files
committed
Default "use 1.0 route" to true, so by default developers will use v1.0
1 parent 3213ec2 commit 3f0b4bc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

OneNoteServiceSamplesWinUniversal.Shared/Common/AppSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static bool GetUseBeta()
2222
{
2323
object result = false;
2424
ApplicationData.Current.LocalSettings.Values.TryGetValue("UseBeta", out result);
25-
return (bool)(result ?? true); // default to true
25+
return (bool)(result ?? false); // default to true
2626
}
2727
public static void SetUseBeta(bool useBeta)
2828
{

OneNoteServiceSamplesWinUniversal.Shared/OneNoteApi/Pages/PatchPagesExample.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class PatchCommand
4242

4343
/// <summary>
4444
/// Class to show a selection of examples updating pages via HTTP PATCH requests to the OneNote API
45-
/// Updating an existing page is achieved by sending HTTP PATCH requests to the URL: https://www.onenote.com/api/beta/pages/{id}/content
45+
/// Updating an existing page is achieved by sending HTTP PATCH requests to the URL: https://www.onenote.com/api/v1.0/pages/{id}/content
4646
/// For more info, see http://dev.onenote.com/docs
4747
/// </summary>
4848
/// <remarks>
@@ -56,15 +56,15 @@ public class PatchCommand
5656
/// client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
5757
/// client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", await Auth.GetAuthToken());
5858
///
59-
/// var createMessage = new HttpRequestMessage(new HttpMethod("PATCH"), "https://www.onenote.com/api/beta/pages/{pageId}/content")
59+
/// var createMessage = new HttpRequestMessage(new HttpMethod("PATCH"), "https://www.onenote.com/api/v1.0/pages/{pageId}/content")
6060
/// {
6161
/// Content = new StringContent("[{ 'target': 'body', 'action': 'append', 'content': '<p>New trailing content</p>' }]", Encoding.UTF8, "application/json")
6262
/// };
6363
/// HttpResponseMessage response = await client.SendAsync(createMessage);
6464
/// </code>
6565
public static class PatchPagesExample
6666
{
67-
#region Example of PATCH https://www.onenote.com/api/beta/pages/{id}/content
67+
#region Example of PATCH https://www.onenote.com/api/v1.0/pages/{id}/content
6868

6969
/// <summary>
7070
/// Append to the default outline in the content of an existing page

OneNoteServiceSamplesWinUniversal.Shared/OneNoteApi/SectionGroups/PostSectionGroupsExample.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ namespace OneNoteServiceSamplesWinUniversal.OneNoteApi.SectionGroups
3232
/// <summary>
3333
/// Class to show a selection of examples creating section groups via HTTP POST to the OneNote API
3434
/// - Creating a new section group is represented via the POST HTTP verb.
35-
/// - Creating a new section group under a given notebook is represented by the Uri: https://www.onenote.com/api/beta/me/notes/notebooks/{notebookId}/sectiongroups
36-
/// - Creating a new section group under a given section group is represented by the Uri: https://www.onenote.com/api/beta/me/notes/sectiongroups/{sectionGroupId}/sectiongroups
35+
/// - Creating a new section group under a given notebook is represented by the Uri: https://www.onenote.com/api/v1.0/me/notes/notebooks/{notebookId}/sectiongroups
36+
/// - Creating a new section group under a given section group is represented by the Uri: https://www.onenote.com/api/v1.0/me/notes/sectiongroups/{sectionGroupId}/sectiongroups
3737
/// For more info, see http://dev.onenote.com/docs
3838
/// </summary>
3939
/// <remarks>
@@ -56,7 +56,7 @@ namespace OneNoteServiceSamplesWinUniversal.OneNoteApi.SectionGroups
5656
/// </code>
5757
public static class PostSectionGroupsExample
5858
{
59-
#region Examples of POST https://www.onenote.com/api/beta/me/notes/notebooks/{notebookId}/sectiongroups
59+
#region Examples of POST https://www.onenote.com/api/v1.0/me/notes/notebooks/{notebookId}/sectiongroups
6060

6161
/// <summary>
6262
/// BETA Create a section group with a given name under a given notebookId
@@ -100,7 +100,7 @@ public static async Task<ApiBaseResponse> CreateSectionGroupInNotebook(bool debu
100100
#endregion
101101

102102

103-
#region Examples of POST https://www.onenote.com/api/beta/me/notes/sectiongroups/{sectionGroupId}/sectiongroups
103+
#region Examples of POST https://www.onenote.com/api/v1.0/me/notes/sectiongroups/{sectionGroupId}/sectiongroups
104104
/// <summary>
105105
/// BETA Create a section group with a given name under a given sectionGroupId
106106
/// </summary>

OneNoteServiceSamplesWinUniversal.Shared/OneNoteApi/Sections/PostSectionsExample.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace OneNoteServiceSamplesWinUniversal.OneNoteApi.Sections
3333
/// Class to show a selection of examples creating sections via HTTP POST to the OneNote API
3434
/// - Creating a new section is represented via the POST HTTP verb.
3535
/// - Creating a new section under a given notebook is represented by the Uri: https://www.onenote.com/api/v1.0/me/notes/notebooks/{notebookId}/sections
36-
/// - Creating a new section under a given section group is represented by the Uri: https://www.onenote.com/api/beta/me/notes/sectiongroups/{sectionGroupId}/sections
36+
/// - Creating a new section under a given section group is represented by the Uri: https://www.onenote.com/api/v1.0/me/notes/sectiongroups/{sectionGroupId}/sections
3737
/// For more info, see http://dev.onenote.com/docs
3838
/// </summary>
3939
/// <remarks>
@@ -99,7 +99,7 @@ public static async Task<ApiBaseResponse> CreateSectionInNotebook(bool debug, st
9999

100100
#endregion
101101

102-
#region Examples of POST https://www.onenote.com/api/beta/me/notes/sectiongroups/{sectionGroupId}/sections
102+
#region Examples of POST https://www.onenote.com/api/v1.0/me/notes/sectiongroups/{sectionGroupId}/sections
103103

104104
/// <summary>
105105
/// BETA Create a section with a given name under a given sectionGroupId

0 commit comments

Comments
 (0)