
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@angular-architects/ngrx-hateoas
Advanced tools
A library to bring hypermedia json into the ngrx signal store following the HATEOAS approach to make it easily useable within Angular.
A library to bring hypermedia json into the ngrx signal store following the HATEOAS approach to make it easily useable within Angular.
If you provide resources from your web api with hypermedia containing links to related resources as well as information about possible actions on your resource, then this library makes interacting with your web api as simple as possible.
A possible hypermedia json could look like the following example:
{
"_links": {
"self": { "href": "http://myapp.dom.tld/resource" },
"linkedResource": { "href": "http://myapp.dom.tld/linked-resource" }
},
"_actions": {
"delete": { "method": "DELETE", "href": "http://myapp.dom.tld/resource"}
},
"stringProp": "foo",
"subObj": {
"numProp": 5,
"_links": {
"subObjLinkedResource": { "href": "http://myapp.dom.tld/sub-obj-linked-resource" }
},
"_actions": {
"create": { "href": "http://myapp.dom.tld/resource/sub-obj", "method": "POST"}
}
}
}
The library helps you to use the metadata within the json structure. To create such hypermedia json you can use various libraries. For .NET we recommend to use the Fancy.ResourceLinker.Hateoas NuGet package. For Java we recommend the Spring.HATEOAS library.
There is a sample application Fancy.ResourceLinker.Sample which demonstrates end to end real world usage of hypermedia in Angular and also some other aspects of a real wold system.
Detailed documentatin is planned with the first production ready release. Until then have a look at the playground app within this repository that demonstrates the usage of the library.
FAQs
A library to bring hypermedia json into the ngrx signal store following the HATEOAS approach to make it easily useable within Angular.
We found that @angular-architects/ngrx-hateoas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.