Skip to content

Commit

Permalink
Change naming of controller endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondyr committed Dec 12, 2024
1 parent 8be745c commit 7960923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/Designer/Controllers/DatamodelsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public async Task<IActionResult> UseXsdFromRepo(string org, string repository, s
/// </summary>
[HttpGet("datamodel/{modelName}/metadata")]
[UseSystemTextJson]
public async Task<IActionResult> GetDataTypeConfiguration(string org, string repository, string modelName)
public async Task<IActionResult> GetModelMetadata(string org, string repository, string modelName)
{
var dataTypeConfiguration = await _schemaModelService.GetModelMetadata(org, repository, modelName);
return Ok(dataTypeConfiguration);
Expand All @@ -265,7 +265,7 @@ public async Task<IActionResult> GetDataTypeConfiguration(string org, string rep
/// </summary>
[HttpPut("datamodel/{modelName}/metadata")]
[UseSystemTextJson]
public async Task PostDataTypeConfiguration(string org, string repository, string modelName, [FromBody] DataType dataType)
public async Task UpdateModelMetadata(string org, string repository, string modelName, [FromBody] DataType dataType)
{
await _schemaModelService.UpdateModelMetadata(org, repository, modelName, dataType);
}
Expand Down

0 comments on commit 7960923

Please sign in to comment.