Programming Tips πŸ’‘
51.6K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
GraphQL πŸ”₯

A query language for your API πŸ’Ž

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.

GraphQL provides a complete and understandable description of the data in your API,
gives clients the power to ask for exactly what they need and nothing more,
makes it easier to evolve APIs over time,
and enables powerful developer tools.

http://graphql.org/
https://scaphold.io/
γ€°γ€°γ€°γ€°γ€°γ€°
#GraphQL #API
@ProgrammingTip
JSON Server πŸ”₯

Get a full fake REST API with zero coding in less than 30 seconds (seriously) πŸ™‹πŸ»β€β™‚οΈ

Created with β™₯️ for front-end developers who need a quick back-end for prototyping and mocking. πŸ› 

https://github.com/typicode/json-server

Fake Online REST API for Testing and Prototyping :
http://jsonplaceholder.typicode.com/

#API #JSON #Mocking
@ProgrammingTip
Master Your API Workflow with Postman πŸ”Έ

They’re doing a great job by providing an integrated environment for different components of an API, like authorization, testing, documentation, versioning. πŸ’Ž

https://www.sitepoint.com/master-api-workflow-postman/

#API #Postman
@ProgrammingTip
API Feature Folders ⚑️

In ASP.NET Core (and unlike ASP.NET 5 / Web API 2), Web API controllers are just controllers. πŸ—‚

You don’t need to inherit from a different base type or anything like that. ❌

What’s more, your API controllers should be returning DTOs that are separate from your underlying domain or data model. ↔️

What I’ve found to be a better organization is to do away with the Controllers folder (or keep it around if you’re using view-based controllers) and instead use feature folders for your APIs. πŸ’Ž

I’m partial to having a root level API folder but if you’d prefer to put your features in the root of the project that would work, too. πŸ‘πŸ»

Within each feature folder, you include the controller along with any model types it needs to work with, like this πŸ‘Ύ :

https://t.me/pgimg/124

Obviously one benefit of this approach is that it’s more cohesive. βœ…

Things that change together are located physically next to one another, and the friction involved in moving between different folders with too many files in them is greatly reduced. βœ‚οΈ

Another nice thing about this approach is that it just works. Unlike view-based controllers, you don’t need to change anything about how ASP.NET Core is configured to have this organization structure work for you. ✨


[ Article ] : bit.do/apif

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #Core #API
@ProgrammingTip
Auto Rest ✨

OpenAPI
(f.k.a Swagger) Specification code generator. πŸ’Ž

Supports C#, Go, Java, Node.js, TypeScript, Python, Ruby and PHP. πŸ”₯

The AutoRest tool generates client libraries for accessing RESTful web services. ⚑️

Input to AutoRest is a spec that describes the REST API using the OpenAPI Specification format. βœ…


https://t.me/pgimg/187

[ Introduction ] : kutt.it/ares
[ Github ] : github.com/Azure/autorest

〰️〰️〰️〰️〰️〰️
#Rest #API #OpenAPI #Swagger
@ProgrammingTip
Newsletter πŸ—ž

In this newsletter, we will talk about the following:

β€’ Retry patterns ♻️

β€’ Evolution of the Netflix
API architecture πŸ”

β€’ How does stop loss work❓

β€’ Chaos Engineering 🀯



[ Article ] : https://kutt.it/newsletter1

〰️〰️〰️〰️〰️〰️
#Newsletter #Retry #Chaos_Engineering #API_Gateway
@ProgrammingTip