/SharePointWebAPI.NetCore

SharePointWebAPI using .Net Core 2.0 and Microsoft.SharePoint.Client DLLs.

Primary LanguageC#

SharePointWebAPI.NetCore

SharePointWebAPI using .Net Core 2.0 and Microsoft.SharePoint.Client DLLs.

Description:

This application is using .Net Core 2.0 and Microsoft.SharePoint.Client DLLs. It implements the following features:

  • Authenticate with SharePoint online
  • List SharePoint site collection templates
  • List SharePoint site collections
  • Create new SharePoint site collection
  • Delete SharePoint site collection
  • Create new SharePoint sites
  • Delete SharePoint sites

Build Steps:

  • Open the solution file in Visual Studio

  • Right click the project and choose "Manage User Secrets"

  • Enter the following values into the secret file:

    "Authentication:SharePoint:Username": "<SharePoint Online login id/email>",

    "Authentication:SharePoint:Password": "",

  • Save the file

  • Build and run the solution. This can usually be achieved by hitting "F5" key.

  • To run the Unit Test project, update the UserSecretsId value in SharePointWebAPIUnitTest.csproj in a text editor with the value in SharePointWebAPI.NetCore.csproj

Swagger:

Known Issues: