{"id":20940425,"url":"https://github.com/santiagoagustinplaza/dotnet-web-api","last_synced_at":"2025-07-26T16:42:18.956Z","repository":{"id":197139464,"uuid":"599308414","full_name":"santiagoagustinplaza/dotnet-web-api","owner":"santiagoagustinplaza","description":"In this tutorial, we will learn the basics of building an API using the WEB API template with .NET and Entity Framework.","archived":false,"fork":false,"pushed_at":"2023-02-20T02:12:10.000Z","size":3547,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T20:56:13.286Z","etag":null,"topics":["csharp","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santiagoagustinplaza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-08T21:47:52.000Z","updated_at":"2023-02-20T02:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"dccae867-c970-4bf4-8e5b-bb1d5a29744b","html_url":"https://github.com/santiagoagustinplaza/dotnet-web-api","commit_stats":null,"previous_names":["santiagoagustinplaza/dotnet-web-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagoagustinplaza%2Fdotnet-web-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagoagustinplaza%2Fdotnet-web-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagoagustinplaza%2Fdotnet-web-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagoagustinplaza%2Fdotnet-web-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santiagoagustinplaza","download_url":"https://codeload.github.com/santiagoagustinplaza/dotnet-web-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243332316,"owners_count":20274454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","webapi"],"created_at":"2024-11-18T23:10:20.291Z","updated_at":"2025-03-13T03:26:28.447Z","avatar_url":"https://github.com/santiagoagustinplaza.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APIs Introduction with .NET and Entity Framework\nIn this tutorial, we will learn the basics of building an API using the WEB API template in .NET and Entity Framework. We will cover the following topics:\n\n- What is an API?\n- WEB API template\n- HTTP verbs\n- Route attribute\n- Middleware concept\n- Dependencies Injection\n- Logging\n- Swagger\n- Connecting with PostgreSQL\n- Testing with Postman\n\n## What is an API?\nAPI stands for Application Programming Interface. It is a set of rules and protocols that enables different software applications to communicate with each other. APIs are used to create an interface for a web application or a web service that can be used by other applications.\n## WEB API template\nThe WEB API template in .NET is used to build RESTful APIs. REST stands for Representational State Transfer, which is a style of architecture for building web services. With the WEB API template, we can quickly create an API that can accept HTTP requests and respond with JSON data.\n\n## HTTP verbs\nHTTP verbs are used to define the type of operation that is being performed on a resource. The most common HTTP verbs are:\n\n- GET: Used to retrieve data from the server.\n- POST: Used to submit data to the server.\n- PUT: Used to update data on the server.\n- DELETE: Used to delete data from the server.\n\n## Route attribute\nThe Route attribute is used to define the URL pattern for a specific action in the API controller. It is used to map the HTTP requests to the correct action in the controller.\n\n## Middleware concept\nMiddleware is a software layer that sits between the client and the server. It is used to handle different types of requests and responses. Middleware can be used to add security, logging, and other features to an API.\n\n## Dependencies Injection\nDependency Injection is a design pattern that is used to inject dependencies into an object. It is used to make the code more testable and easier to maintain.\n\n## LoggingLogging\nLogging is the process of recording events that occur in an application. It is used to track errors, monitor performance, and provide feedback to the users.\n\n## SwaggerSwagger\nSwagger is an open-source tool that is used to create API documentation. It is used to describe the API endpoints, the HTTP methods, and the response types.\n\n## Connecting with PostgreSQL\nPostgreSQL is an open-source relational database management system. It is used to store data for web applications. In this tutorial, we will learn how to connect our API with a PostgreSQL database.\n\n## Testing with Postman\nPostman is a popular tool that is used to test APIs. It is used to send HTTP requests and receive responses from an API. We will use Postman to test our API and ensure that it is working correctly.\n\n## Conclusion\nIn this tutorial, we have learned the basics of building an API using the WEB API template in .NET and Entity Framework. We covered the HTTP verbs, the Route attribute, middleware concept, dependencies injection, logging, Swagger, connecting with PostgreSQL, and testing with Postman. We hope that this tutorial has been helpful in understanding the fundamentals of building an API.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantiagoagustinplaza%2Fdotnet-web-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantiagoagustinplaza%2Fdotnet-web-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantiagoagustinplaza%2Fdotnet-web-api/lists"}