|
|
|
|
@@ -10,35 +10,35 @@ namespace Core.Blueprint.Service.External.Clients
|
|
|
|
|
{
|
|
|
|
|
public interface IBlueprintServiceClient
|
|
|
|
|
{
|
|
|
|
|
[Post("/v1/MongoBlueprint/Create")]
|
|
|
|
|
Task<BlueprintAdapter> CreateBlueprintAsync([FromBody] BlueprintRequest newBlueprint, CancellationToken cancellationToken = default);
|
|
|
|
|
[Post("/v1/MongoSample/Create")]
|
|
|
|
|
Task<MongoSampleAdapter> CreateMongoSampleAsync([FromBody] MongoSampleRequest newSample, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Get("/v1/MongoBlueprint/GetAll")]
|
|
|
|
|
Task<IEnumerable<BlueprintAdapter>> GetAllBlueprintsAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
[Get("/v1/MongoSample/GetAll")]
|
|
|
|
|
Task<IEnumerable<MongoSampleAdapter>> GetAllMongoSamplesAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Get("/v1/MongoBlueprint/{_id}/GetBy_Id")]
|
|
|
|
|
Task<BlueprintAdapter> GetBlueprintByIdAsync([FromRoute] string _id, CancellationToken cancellationToken = default);
|
|
|
|
|
[Get("/v1/MongoSample/{_id}/GetBy_Id")]
|
|
|
|
|
Task<MongoSampleAdapter> GetMongoSampleByIdAsync([FromRoute] string _id, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Put("/v1/MongoBlueprint/{_id}/Update")]
|
|
|
|
|
Task<BlueprintAdapter> UpdateBlueprintAsync([FromRoute] string _id, [FromBody] BlueprintAdapter entity, CancellationToken cancellationToken = default);
|
|
|
|
|
[Put("/v1/MongoSample/{_id}/Update")]
|
|
|
|
|
Task<MongoSampleAdapter> UpdateMongoSampleAsync([FromRoute] string _id, [FromBody] MongoSampleAdapter entity, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Delete("/v1/MongoBlueprint/{_id}/Delete")]
|
|
|
|
|
Task<BlueprintAdapter> DeleteBlueprintAsync([FromRoute] string _id, CancellationToken cancellationToken = default);
|
|
|
|
|
[Delete("/v1/MongoSample/{_id}/Delete")]
|
|
|
|
|
Task<MongoSampleAdapter> DeleteMongoSampleAsync([FromRoute] string _id, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Post("/v1/UserProject/Create")]
|
|
|
|
|
Task<UserProjectAdapter> CreateUserProjectAsync([FromBody] UserProjectRequest newUserProject, CancellationToken cancellationToken = default);
|
|
|
|
|
[Post("/v1/SqlSample/Create")]
|
|
|
|
|
Task<SqlSampleAdapter> CreateSqlSampleAsync([FromBody] SqlSampleRequest newSqlSample, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Get("/v1/UserProject/GetAll")]
|
|
|
|
|
Task<IEnumerable<UserProjectAdapter>> GetAllUserProjectsAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
[Get("/v1/SqlSample/GetAll")]
|
|
|
|
|
Task<IEnumerable<SqlSampleAdapter>> GetAllSqlSamplesAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Get("/v1/UserProject/{id}/GetById")]
|
|
|
|
|
Task<UserProjectAdapter> GetUserProjectByIdAsync([FromRoute] int id, CancellationToken cancellationToken = default);
|
|
|
|
|
[Get("/v1/SqlSample/{id}/GetById")]
|
|
|
|
|
Task<SqlSampleAdapter> GetSqlSampleByIdAsync([FromRoute] int id, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Put("/v1/UserProject/{id}/Update")]
|
|
|
|
|
Task<UserProjectAdapter> UpdateUserProjectAsync([FromRoute] int id, [FromBody] UserProjectAdapter entity, CancellationToken cancellationToken = default);
|
|
|
|
|
[Put("/v1/SqlSample/{id}/Update")]
|
|
|
|
|
Task<SqlSampleAdapter> UpdateSqlSampleAsync([FromRoute] int id, [FromBody] SqlSampleAdapter entity, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Delete("/v1/UserProject/{id}/Delete")]
|
|
|
|
|
Task<UserProjectAdapter> DeleteUserProjectAsync([FromRoute] int id, CancellationToken cancellationToken = default);
|
|
|
|
|
[Delete("/v1/SqlSample/{id}/Delete")]
|
|
|
|
|
Task<SqlSampleAdapter> DeleteSqlSampleAsync([FromRoute] int id, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
|
|
[Post("/v1/KeyVault/CreateSecret")]
|
|
|
|
|
Task<KeyVaultResponse> CreateSecretAsync([FromBody] KeyVaultRequest newKeyVault, CancellationToken cancellationToken = default);
|
|
|
|
|
|