You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: Docs/articles/APIGateway.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,19 +37,22 @@ MyResponse GetItems(
37
37
) { ... }
38
38
```
39
39
40
-
Common query string parameters can be captured as a class and easily reused across methods. For example, the following class defines the same query string parameters as in the previous example. The determination if a parameter is required is slightly different, because the LambdaSharp CLI cannot determine if a property/field initializer is specified. Therefore, it is necessary to use the `JsonProperty` attribute with the `Required` property to specify if a query parameter is required or not.
40
+
Common query string parameters can be captured as a class and easily reused across methods. For example, the following class defines the same query string parameters as in the previous example. The determination if a parameter is required is slightly different, because the LambdaSharp CLI cannot determine if a property/field initializer is specified. Therefore, it is necessary to use the `JsonPropertyName` attribute with the `Required` property to specify if a query parameter is required or not.
The validation of the request body is controlled by the definition of the `AddAlbumRequest` type. The following type definition makes the `Title` property mandatory while keeping `YearPublished` optional. The constraints of the type fields and properties are controlled using the [JsonProperty](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_JsonPropertyAttribute.htm) and [JsonRequired](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_JsonRequiredAttribute.htm) attributes.
89
+
The validation of the request body is controlled by the definition of the `AddAlbumRequest` type. The following type definition makes the `Title` property mandatory while keeping `YearPublished` optional. The constraints of the type fields and properties are controlled using the [JsonPropertyName](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonpropertynameattribute) attribute from _System.Text.Json_ namespace, as well as the [Required](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.requiredattribute) and [Range](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.rangeattribute) attributes from the _System.ComponentModel.DataAnnotations_ namespace.
> Hicetas was a Greek philosopher of the Pythagorean School. He was born in Syracuse. Like his fellow Pythagorean Ecphantus and the Academic Heraclides Ponticus, he believed that the daily movement of permanent stars was caused by the rotation of the Earth around its axis. When Copernicus referred to Nicetus Syracusanus (Nicetus of Syracuse) in _De revolutionibus orbium coelestium_ as having been cited by Cicero as an ancient who also argued that the Earth moved, it is believed that he was actually referring to Hicetas. [(Wikipedia)](https://en.wikipedia.org/wiki/Hicetas)
10
10
@@ -141,6 +141,21 @@ Part of this release, _LambdaSharp.Core_ functions were ported to .NET Core 3.1
141
141
142
142
## Releases
143
143
144
+
### (v0.8.2.2) - 2021-03-17
145
+
146
+
#### BREAKING CHANGES
147
+
148
+
* SDK
149
+
* Renamed _LambdaSharp.CloudWatch_ assembly to _LambdaSharp.EventBridge_ to align with new AWS branding for CloudWatch Events.
150
+
151
+
#### Features
152
+
153
+
* CLI
154
+
* Added automatic, daily refresh of CloudFormation specification to surface latest capabilities. Use `--force-refresh` option to check for new CloudFormation specification more frequently.
155
+
* Added caching of AWS profile information used for building, publishing, and deploying modules. Use `--force-refresh` option to bypass cache.
156
+
* Removed `util download-cloudformation-spec` command since it is no longer needed to CloudFormation specification.
157
+
* Changed behavior for `deploy` to allow importing dependencies when no build policy is provided.
158
+
144
159
### (v0.8.2.1) - 2021-02-17
145
160
146
161
#### Fixes
@@ -192,7 +207,7 @@ Part of this release, _LambdaSharp.Core_ functions were ported to .NET Core 3.1
192
207
193
208
* CLI
194
209
* Added support for self-contained .NET 5 Lambda functions.
195
-
* Update Blazor WebAssembly app template to target .NET 5.
210
+
* Updated Blazor WebAssembly app template to target .NET 5.
196
211
* Removed dependency on _Amazon.Lambda.Tools_. _Amazon.Lambda.Tools_ is no longer requires to build, publish, or deploy LambdaSharp modules.
197
212
* Updated CloudFormation to v22.0.0.
198
213
* Allowed resource types to have an empty or omitted `Attributes` section.
Subscribe to the [LambdaSharp YouTube channel](https://www.youtube.com/channel/UC9zH5HkC6dHvuFJR6_XZzFg) to stay up-to-date on the latest videos.
10
+
9
11
## Getting Started
10
12
11
13
It's easy to get started building Serverless .NET application on AWS with LambdaSharp. In in this 10 minute tutorial, we will install the LambdaSharp CLI, create a configuration for it, and a deployment tier for your LambdaSharp modules. Along the way, I will explain what resources are part of the configuration and deployment tier and what purpose they play.
@@ -22,4 +24,10 @@ In this video, I'm going through the steps for creating your first Serverless .N
22
24
23
25
Learn how you can build and deploy your serverless solution in minutes using LambdaSharp, an open-source CLI and framework for serverless .NET Core application development on AWS. The solution shares the same C# code for the backend and front end leveraging AWS Lambda functions and the Blazor WebAssembly framework. Finally, see a demonstration of how easy it is to integrate with Amazon CloudWatch Logs, metrics, and Amazon EventBridge.
This presentation covers some of the serverless design patterns, such as CQRS (Command and Query Responsibility Separation), CloudFormation stacks, sharing of resources, nested vs. side-by-side composition, and then put it all together with some code samples found at: https://github.com/LambdaSharp/ServerlessPatterns-ServiceComposition
0 commit comments