excellarateinc / voyage-api-dotnet

Enterprise grade C# .NET Web Services API implementing industry standard best practices
Apache License 2.0
16 stars 14 forks source link
api auditing best-practices csharp database enterprise enterprise-software json json-api oauth owasp security standards webservices

Overview

A foundational set of web services that implement industry standard guidelines, common best practices, and the experienced insights afforded to Lighthouse Software thru decades of enterprise business software development.

Created and supported by Lighthouse Software @ https://LighthouseSoftware.com

Topics

5 Minute Test

Run the Voyage API and execute a JSON API request within 5 minutes

  1. Prerequisites
  2. Open Visual Studio with administrator privileges.
    • Right-click on the Visual Studio icon and select "Run as administrator".
  3. Download source via Visual Studio GitHub extension
    • Open Visual Studio's "Team Explorer" tab and click the "Manage Connections" button.
    • Under the GitHub section, click "Clone" and enter your GitHub credentials.
    • Choose "voyage-dotnet-api" from the list of repositories.
    • Click "Clone". When done cloning, open the "Voyage.API" solution.
  4. Create the database
    • Double-click the localhost.publish.xml file.
    • Once the dialog appears, click the Publish button.
  5. Run the applications
    • In Visual Studio, with the Voyage.Web project selected, press Ctrl + F5 to launch the Authentication website with IIS Express.
    • Now, with the Voyage.Api selected, press Ctrl + F5 to launch the Web API website with IIS Express.
  6. Get an access token
    • Using Postman, create a new "POST" request.
    • Set the url to http://localhost:52431/oauth/token
    • In the "Body", use x-www-form-urlencoded and fill in the following key/value pairs:
      • "grant_type" : "Client Credentials"
      • "username" : "admin@admin.com"
      • "password" : "Hello123!"
      • "client_id" : "123456"
      • "client_secret"" : "abcdef"
    • Click "Send". You should receive an access token back.
  7. Test the API
    • Using Postman, create a new "GET" request.
    • Set the url to http://localhost:55850/api/v1/users
    • Add a header where the key is "Authorization" and the value is "Bearer <token>". Replace <token> with the full token string from the previous request.
    • Click "Send".

Features

Web Services

Security

Tech Stack

Developers

System Administrators