Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
software.amazon.smithy:smithy-aws-apigateway-traits
Advanced tools
This module provides Smithy traits and validators for API Gateway.
Smithy defines and generates clients, services, and documentation for any protocol.
Smithy models define a service as a collection of resources, operations, and shapes.
$version: "2"
namespace example.weather
service Weather {
version: "2006-03-01"
resources: [City]
operations: [GetCurrentTime]
}
resource City {
identifiers: { cityId: CityId }
read: GetCity
list: ListCities
resources: [Forecast]
}
// See the full example at https://smithy.io/2.0/quickstart.html#complete-example
Find out more about modeling a service with Smithy in the Quick Start guide.
[!IMPORTANT]
Before you proceed, make sure you have the Smithy CLI installed.
The Smithy CLI is the easiest way to get started with building Smithy models. First, create a smithy-build.json
file:
{
"version": "1.0",
"sources": ["model"]
}
Next, create your first model model/main.smithy
:
$version: "2"
namespace com.example
service ExampleService {
version: "2020-05-27"
}
Finally, run smithy build
to build the model with the Smithy CLI.
Find out more about building artifacts of your Smithy model in the Building Smithy Models guide. For more examples, see the examples repository
This library is licensed under the Apache 2.0 License.
FAQs
This module provides Smithy traits and validators for API Gateway.
We found that software.amazon.smithy:smithy-aws-apigateway-traits demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.