Commitments API for the Digital Apprenticeship Service
For Commitments V2, see: https://github.com/SkillsFundingAgency/das-commitments/tree/master/src/CommitmentsV2
- Clone das-commitments repo
- Open das-commitments solution - build fails. This is due to a Slow Cheetah issue. To workaround, change build configuration to Release and build, then back to Debug and build. Solution will then build ok.
- Run the SFA.DAS.CommitmentsV2.Api project.
- Publish the database project to local db server (use default db name "SFA.DAS.Commitments.Database")
- Execute sql to seed data - see https://github.com/SkillsFundingAgency/das-commitments/tree/master/src/CommitmentsV2
- Obtain cloud config - See below
- Run Storage Emulator (for v2)
- Start
Build status
api/provider/
GET {providerId}/commitments
GET {providerId}/commitments/{commitmentId}
GET {providerId}/apprenticeships
GET {providerId}/apprenticeships/{apprenticeshipId}
PATCH {providerId}/commitments/{commitmentId}
DELETE {providerId}/commitments/{commitmentId}
POST {providerId}/commitments/{commitmentId}/apprenticeships
PUT {providerId}/commitments/{commitmentId}/apprenticeships/{apprenticeshipId}
POST {providerId}/commitments/{commitmentId}/apprenticeships/bulk
DELETE {providerId}/apprenticeships/{apprenticeshipId}
GET {providerId}/relationships/{employerAccountId}/{legalEntityId}
GET {providerId}/relationships/{commitmentId}
PATCH {providerId}/relationships/{employerAccountId}/{legalEntityId}
api/employer/
GET {accountId}/commitments
GET {accountId}/commitments/{commitmentId}
GET {accountId}/apprenticeships
GET {accountId}/apprenticeships/{apprenticeshipId}
POST {accountId}/commitments/
PATCH {accountId}/commitments/{commitmentId}
DELETE {accountId}/commitments/{commitmentId}
POST {accountId}/commitments/{commitmentId}/apprenticeships
PUT {accountId}/commitments/{commitmentId}/apprenticeships/{apprenticeshipId}
PATCH {accountId}/commitments/{commitmentId}/apprenticeships/{apprenticeshipId}
DELETE {accountId}/apprenticeships/{apprenticeshipId}
A .Net client for the Api can be found on NuGet.
Get configuration from das-employer-config repo das-commitments/SFA.DAS.CommitmentsV2.json
change following values
DatabaseConnectionString: <Your Database>
ReadOnlyDatabaseConnectionString: <Your Database>
NServiceBusConfiguration.LearningTransportFolderPath: <Set this to the path you want events to publish to locally or leave blank to publish in solution folder>
ReservationsClientApi.UseStub: <true>
RedisConnectionString: <localhost>
AccountApi.ApiBaseUrl: <If running stubs project use -> http://localhost:3999/accounts-api/>
LevyTransferMatchingInnerApiConfiguration.BaseUrl: <If running stubs project use -> http://localhost:3999/levy-transfer-matching-api/>