{"id":21326318,"url":"https://github.com/programando-ideas/webapi_validaciones_parametros","last_synced_at":"2025-06-14T18:40:07.011Z","repository":{"id":121412176,"uuid":"294178442","full_name":"programando-ideas/webapi_validaciones_parametros","owner":"programando-ideas","description":"Ejemplo para reforzar la seguridad y definir un modelo robusto de validación de los datos que reciben nuestras APIs.","archived":false,"fork":false,"pushed_at":"2020-09-09T21:48:25.000Z","size":239,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T12:32:46.782Z","etag":null,"topics":["aspnetcore","lambda-expressions","tuple-types","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/programando-ideas.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-09T17:10:35.000Z","updated_at":"2020-09-16T20:59:20.000Z","dependencies_parsed_at":"2023-07-12T17:01:05.572Z","dependency_job_id":null,"html_url":"https://github.com/programando-ideas/webapi_validaciones_parametros","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programando-ideas%2Fwebapi_validaciones_parametros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programando-ideas%2Fwebapi_validaciones_parametros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programando-ideas%2Fwebapi_validaciones_parametros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programando-ideas%2Fwebapi_validaciones_parametros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programando-ideas","download_url":"https://codeload.github.com/programando-ideas/webapi_validaciones_parametros/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806041,"owners_count":20350775,"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":["aspnetcore","lambda-expressions","tuple-types","webapi"],"created_at":"2024-11-21T21:09:13.328Z","updated_at":"2025-03-15T23:44:44.846Z","avatar_url":"https://github.com/programando-ideas.png","language":"C#","readme":"# 🚧 Validación de Parámetros de entrada 🚧 - Asp.Net Core WebApi\n\nEn este [video](https://youtu.be/CELr1qGkkUI) veremos como reforzar las validaciones de los parámetros de entrada de nuestras APIs.\nPara ello utilizaremos dos elementos que nos brinda el Framework .Net Core:\n\n  - ```IValidatableObject```: Para validaciones a nivel de objeto.\n  - ```ValidationAttribute```: Para validaciones a nivel de atributo.\n\n## Otros temas relacionado con C# que se ven en este video\n  - Switch Expression\n  - Lambda Expressions\n  - =\u003e operator\n  - Tuple Types\n  - Pattern Matching.\n\n## Flujo de validación\n\n![](https://github.com/programando-ideas/webapi_validaciones_parametros/blob/master/images/flujo.png)\n\n## Referencias\n1. switch expression: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/switch-expression\n2. Lambda expressions: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions\n3. =\u003e operator: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-operator\n4. Tuple types: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/value-tuples\n5. Pattern Matching: https://docs.microsoft.com/en-us/dotnet/csharp/pattern-matching\n   \n\n##\n**Programando Ideas 2020** - Asp.Net Core WebApi\n##\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramando-ideas%2Fwebapi_validaciones_parametros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramando-ideas%2Fwebapi_validaciones_parametros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramando-ideas%2Fwebapi_validaciones_parametros/lists"}