-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 101 Added 5 new APIs: * File.Deletefile (DELETE /api/data/files/{fileId}) * Holiday.Queryresourceholidays (GET /api/data/holidays/resource) * Holiday.Querycountryholidays (GET /api/data/holidays/country) * Holiday.Queryglobalholidays (GET /api/data/holidays/global) * NptFiles.UploadFileToNonProjectTasks (POST /api/data/non-project-tasks/{taskId}/files) * Fix byte reference * Updates for R102 Differences between R101 and R102: * Deprecated old Discussion APIs; created new ones * Removed parameter "$select" which did not have any effect * Fix naming and ignore metadata API
- Loading branch information
Showing
185 changed files
with
1,622 additions
and
896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2023 ProjectManager.com, Inc. | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2023 ProjectManager.com, Inc. | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
@@ -90,7 +90,7 @@ public async Task<AstroResult<string>> RevokeAllApiKeys() | |
/// | ||
/// </summary> | ||
/// <param name="id">The unique identifier of the API key to revoke</param> | ||
public async Task<AstroResult<string>> RevokeAPIKey(Guid id) | ||
public async Task<AstroResult<string>> RevokeApiKey(Guid id) | ||
{ | ||
var url = $"/api/data/api-keys/{id}/revoke"; | ||
return await _client.Request<string>(HttpMethod.Delete, url, null, null, null); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2023 ProjectManager.com, Inc. | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2023 ProjectManager.com, Inc. | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2023 ProjectManager.com, Inc. | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2023 ProjectManager.com, Inc. | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
@@ -54,7 +54,7 @@ public async Task<AstroResult<DashboardSettingDto>> RetrieveDashboardUserSetting | |
/// | ||
/// </summary> | ||
/// <param name="body">User dashboard settings object</param> | ||
public async Task<AstroResult<DashboardSettingDto>> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body) | ||
public async Task<AstroResult<DashboardSettingDto>> CreateOrUpdateUserDashboardSettings(DashboardSettingCreateDto body) | ||
{ | ||
var url = $"/api/data/dashboards/settings"; | ||
return await _client.Request<DashboardSettingDto>(HttpMethod.Post, url, null, body, null); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2023 ProjectManager.com, Inc. | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2023 ProjectManager.com, Inc. | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
@@ -43,10 +43,10 @@ public DiscussionClient(ProjectManagerClient client) | |
/// | ||
/// </summary> | ||
/// <param name="taskId">The unique ID number of the task to retrieve comments</param> | ||
public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId) | ||
public async Task<AstroResult<DiscussionCommentDto[]>> RetrieveTaskComments(Guid taskId) | ||
{ | ||
var url = $"/api/data/tasks/{taskId}/discussions"; | ||
return await _client.Request<DiscussionDto[]>(HttpMethod.Get, url, null, null, null); | ||
var url = $"/api/data/tasks/{taskId}/comments"; | ||
return await _client.Request<DiscussionCommentDto[]>(HttpMethod.Get, url, null, null, null); | ||
} | ||
|
||
/// <summary> | ||
|
@@ -57,10 +57,10 @@ public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId | |
/// </summary> | ||
/// <param name="taskId">The unique ID number of the task being commented upon</param> | ||
/// <param name="body">The Markdown-formatted text of the comment</param> | ||
public async Task<AstroResult<DiscussionCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCreateDto body) | ||
public async Task<AstroResult<DiscussionCommentCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCommentCreateDto body) | ||
{ | ||
var url = $"/api/data/tasks/{taskId}/discussions"; | ||
return await _client.Request<DiscussionCreateResponseDto>(HttpMethod.Post, url, null, body, null); | ||
var url = $"/api/data/tasks/{taskId}/comments"; | ||
return await _client.Request<DiscussionCommentCreateResponseDto>(HttpMethod.Post, url, null, body, null); | ||
} | ||
} | ||
} |
Oops, something went wrong.