-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into renovate/fluentvalidation
- Loading branch information
Showing
256 changed files
with
1,507 additions
and
1,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
sample/Sample.Classic.Restful/Controllers/LaunchRecordController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.AspNetCore.Mvc.ModelBinding; | ||
using Rocket.Surgery.LaunchPad.AspNetCore; | ||
using Sample.Core.Models; | ||
using Sample.Core.Operations.LaunchRecords; | ||
|
||
namespace Sample.Classic.Restful.Controllers; | ||
|
||
[Route("[controller]")] | ||
public partial class LaunchRecordController : RestfulApiController | ||
{ | ||
/// <summary> | ||
/// Search for launch records | ||
/// </summary> | ||
/// <param name="request">The search context</param> | ||
/// <returns></returns> | ||
[HttpGet] | ||
public partial IAsyncEnumerable<LaunchRecordModel> ListLaunchRecords(ListLaunchRecords.Request request); | ||
|
||
/// <summary> | ||
/// Load details of a specific launch record | ||
/// </summary> | ||
/// <param name="request">The request context</param> | ||
/// <returns></returns> | ||
[HttpGet("{id:guid}")] | ||
public partial Task<ActionResult<LaunchRecordModel>> GetLaunchRecord(GetLaunchRecord.Request request); | ||
|
||
/// <summary> | ||
/// Create a new launch record | ||
/// </summary> | ||
/// <param name="request">The launch record details</param> | ||
/// <returns></returns> | ||
[HttpPost] | ||
[Created(nameof(GetLaunchRecord))] | ||
public partial Task<ActionResult<CreateLaunchRecord.Response>> CreateLaunchRecord(CreateLaunchRecord.Request request); | ||
|
||
/// <summary> | ||
/// Update a given launch record | ||
/// </summary> | ||
/// <param name="id">The id of the launch record</param> | ||
/// <param name="model">The request details</param> | ||
/// <returns></returns> | ||
[HttpPut("{id:guid}")] | ||
// ReSharper disable once RouteTemplates.ParameterTypeAndConstraintsMismatch | ||
public partial Task<ActionResult> EditLaunchRecord([BindRequired] [FromRoute] LaunchRecordId id, EditLaunchRecord.Request model); | ||
|
||
/// <summary> | ||
/// Update a given launch record | ||
/// </summary> | ||
/// <param name="id">The id of the launch record</param> | ||
/// <param name="model">The request details</param> | ||
/// <returns></returns> | ||
[HttpPatch("{id:guid}")] | ||
// ReSharper disable once RouteTemplates.ParameterTypeAndConstraintsMismatch | ||
public partial Task<ActionResult> PatchLaunchRecord([BindRequired] [FromRoute] LaunchRecordId id, EditLaunchRecord.PatchRequest model); | ||
|
||
/// <summary> | ||
/// Remove a launch record | ||
/// </summary> | ||
/// <param name="request"></param> | ||
/// <returns></returns> | ||
[HttpDelete("{id:guid}")] | ||
public partial Task<ActionResult> DeleteLaunchRecord(DeleteLaunchRecord.Request request); | ||
} |
Oops, something went wrong.