Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itwin/project-api-sample-app
Simple c# sample app for creating & querying iTwin projects as well as team members.
https://github.com/itwin/project-api-sample-app
project projects rest-api sample
Last synced: about 2 months ago
JSON representation
Simple c# sample app for creating & querying iTwin projects as well as team members.
- Host: GitHub
- URL: https://github.com/itwin/project-api-sample-app
- Owner: iTwin
- License: other
- Created: 2021-07-08T19:26:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T18:44:02.000Z (12 months ago)
- Last Synced: 2024-04-15T06:45:32.438Z (9 months ago)
- Topics: project, projects, rest-api, sample
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Project API Sample App
Copyright © Bentley Systems, Incorporated. All rights reserved.
An iTwin sample application that demonstrates how to create, query and update an iTwin Project using the Project API. It also demonstrates how to create a project role and add a user to the project with that role.
This application contains sample code that should not be used in a production environment. It contains no retry logic and minimal logging/error handling.
## Prerequisites
* [Git](https://git-scm.com/)
* Visual Studio 2019 or [Visual Studio Code](https://code.visualstudio.com/)
* [.NET 5.0](https://dotnet.microsoft.com/download/dotnet/5.0/)## Development Setup (Visual Studio 2019)
1. Clone Repository
2. Open iTwinProjectSampleApp.sln and Build
3. (Optional) Put breakpoint in Program.cs
4. Run to debug
5. It will require a user token.
* Go to the Project API [developer portal](https://developer.bentley.com/api-groups/administration/apis/projects/operations/create-project/)
* Click the TryIt Button
* In the popup window, select authorizationCode in the Bentley OAuth2 Service dropdown
* This will popup another window that will require you to login.
* After you login, the Authorization header will be populated. Copy the entire string and paste into the command window for the iTwin Sample Project App.
* Press Enter6. You can now step through the code that will create and manage an iTwin project.