Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make catch all endpoints for those ending with a path #17468

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ByPathPartialViewController(
_mapper = mapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PartialViewResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public DeletePartialViewController(
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
}

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ByPathPartialViewFolderController(IPartialViewFolderService partialViewFo
_mapper = mapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PartialViewFolderResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DeletePartialViewFolderController : PartialViewFolderControllerBase
public DeletePartialViewFolderController(IPartialViewFolderService partialViewFolderService)
=> _partialViewFolderService = partialViewFolderService;

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public UpdatePartialViewController(
_mapper = mapper;
}

[HttpPut("{path}")]
[HttpPut("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ByPathScriptController(
_mapper = mapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(ScriptResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public DeleteScriptController(
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
}

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ByPathScriptFolderController(IScriptFolderService scriptFolderService, IU
_mapper = mapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(ScriptFolderResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DeleteScriptFolderController : ScriptFolderControllerBase
public DeleteScriptFolderController(IScriptFolderService scriptFolderService)
=> _scriptFolderService = scriptFolderService;

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public UpdateScriptController(
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
}

[HttpPut("{path}")]
[HttpPut("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ByPathStylesheetController(
_umbracoMapper = umbracoMapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(StylesheetResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public DeleteStylesheetController(
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
}

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ByPathStylesheetFolderController(IStylesheetFolderService stylesheetFolde
_mapper = mapper;
}

[HttpGet("{path}")]
[HttpGet("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(StylesheetFolderResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DeleteStylesheetFolderController : StylesheetFolderControllerBase
public DeleteStylesheetFolderController(IStylesheetFolderService stylesheetFolderService)
=> _stylesheetFolderService = stylesheetFolderService;

[HttpDelete("{path}")]
[HttpDelete("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public UpdateStylesheetController(
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
}

[HttpPut("{path}")]
[HttpPut("{*path}")]
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down
Loading