π€ Cheat Sheet for REST API Design
#info #restApi #guide
β Article link
#info #restApi #guide
REST Principles
Resource-based: REST APIs are designed around resources, which are identified by unique URIs (Uniform Resource Identifiers).
Stateless: Each request from the client to the server must contain all the necessary information for the server to understand and process the request. The server should not rely on storing any client context between requests.
Cacheable: Responses from the server should be labeled as cacheable or non-cacheable, allowing clients to cache responses and improve performance.
Uniform Interface: REST APIs should follow a consistent interface, using standard HTTP methods (GET, POST, PUT, DELETE) to perform operations on resources.
Layered System: REST APIs can be composed of multiple layers, allowing for load balancing, caching, and proxy servers.
β Article link
π3
π Internet connection monitoring in Angular
#angular #rxjs
β οΈ The example is for presentation purposes only and can be refactored.
β Article link
#angular #rxjs
β οΈ The example is for presentation purposes only and can be refactored.
β Article link
π1
π₯1
πAngular: Creating custom structural directives accepting multiple parameters
#angular #directive
β Article link
#angular #directive
As applications grow in size and as the conditions become more complex, instead of stuffing multiple conditions inside a *ngIf or *ngSwitch, we can opt for creating a more cleaner custom structural directive.
β Article link
π1π₯1
π2
π Angular Design Patterns: Factory Pattern
#angular #patterns #guide
β οΈ The example is for presentation purposes only and can be refactored.
β Article link
#angular #patterns #guide
β οΈ The example is for presentation purposes only and can be refactored.
β Article link
π2
π3