Linear Allocator service written in ASP.NET Core Web API
- Create the target database
- Update the connection string in
appsettings.Development.json
- Use the following
dotnet ef
commands to create the tablecd Allocator.WebApi dotnet ef --project ../Allocator.DAL --startup-project . migrations add InitCreate --context AllocatorDbContext dotnet ef --project ../Allocator.DAL --startup-project . database update
- dotnet run
- Http Method: POST
- Defaul URL: http://localhost:5123/api/Allocator/Create
- Http Body: (JSON sample)
{ "Key":"TMS", "NextHi":1, "MaxValue":10 }
- Http Method: POST
- Defaul URL: http://localhost:5123/api/Allocator/GetNext/{key}