PostWebApi is a .NET 9 Web API used to manage post related data in PostOShare. It depends on .NET 9 and communicates with a MongoDB database.
The following need to be available to ensure that the API and the Mongo DB database can be setup:
Additionally, it requires that IdentityWebApi is running. This requires that the following is available:
Steps that can be used to setup the API are
git clone https://github.com/PostOShare/PostWebApi.git
cd PostWebApi\PostWebApi
dotnet restoreBefore starting the API install the IdentityWebApi and execute this API. Then execute the PostWebApi.
- Microsoft.AspNetCore.Authorization
- Microsoft.AspNetCore.Authentication.JwtBearer
- Serilog.AspNetCore
- Serilog.Sinks.File
- Microsoft.Extensions.Http
- MongoDB.Bson
- Microsoft.AspNetCore.Http
- Microsoft.Extensions.Configuration.Abstractions
- MongoDB.Driver
These dependencies are used only in development:
- Swashbuckle.AspNetCore
- Swashbuckle.AspNetCore.Annotations
- Microsoft.AspNetCore.OpenApi
