Mayank Janiblog.mayankjani.com·Sep 13, 2024Data Transfer Objects (DTOs) in PHPLets say, we have a news website and we want to display news which are nearby to the user. First we need to get the user’s location via an API and then pass it to the database query. We can use the API from https://ip-api.com class IpApi{ public ...35 readsPHP
Gilles TOURREAUgilles.tourreau.fr·Aug 20, 2024Simplifying Data Conversion: A Testable Approach for Entity Models and DTOsIn many applications, converting data from one format to another is a common task. For instance, you might need to convert a business entity object into JSON or vice versa. Many developers use extension methods like ToJson() or ToModel() for this con...77 readsdto
ByteScrum TechnologiesforByteScrum Technologiesblog.bytescrum.com·Jul 31, 2024Understanding Data Transfer Objects (DTOs) in NestJS: A Comprehensive GuideIn the ever-evolving world of web development, efficiency and clarity are paramount. As developers, we strive to build applications that are not only functional but also maintainable and scalable. One of the key practices that help achieve these goal...30 likes·585 readsnestjs
ByteScrum TechnologiesforByteScrum Technologiesblog.bytescrum.com·Jul 18, 2024Building Powerful APIs with NestJS ControllersNestJS is a progressive Node.js framework that allows you to build efficient, reliable, and scalable server-side applications. One of the key components of a NestJS application is the controller, which is responsible for handling incoming requests, p...60 likes·72 readsnest controller
Merge Simpsonblog.letsdev.me·Jul 12, 2024차근차근 Modern Spring Boot 3 기초 (7) DTO와 API페이지 요청과 AJAX 요청 우리는 두 요청 중 페이지 요청은 다루지 않습니다. 페이지 요청은 말 그대로 웹 페이지에 대한 요청이고, AJAX 요청은 쉽게 말하자면 이미 페이지를 받아서 띄운 상태에서, 추가적으로 데이터나 명령에 대하여 서버에 요청하는 것입니다. 페이지 요청을 다루지 않는 이유는, 최근 프론트엔드와 백엔드의 작업 영역, 배포하는 서버 등이 예전에 비해 뚜렷하게 구분되고 있기 때문입니다. 페이지 요청을 프론트엔드 쪽으로 하고, 데...99 reads차근차근 Modern Spring Boot 3 - 기초RestController
Kaique Garciafor<codeAspiras/>blog.codeaspiras.dev·Feb 7, 2024Recapitulação: Data-Transfer ObjectOlá, leitores do CodeAspiras! Estava aqui revisando os vídeos do nosso canal no YouTube e me deparei com o refinamento onde falamos sobre DTOs, estrutura que mencionei em um artigo de Golang anteriormente nesse blog. Esse vídeo traz outros exemplos s...data-transfer object
Kaique Garciafor<codeAspiras/>blog.codeaspiras.dev·Jan 30, 2024GO: O que raios é "config pattern"?Olá, leitores do CodeAspiras! Estou aqui novamente com mais um artigo de Golang para disseminar conhecimentos relevantes para a área. Dessa vez, venho com mais um conceito de desenvolvimento que é bom conhecer mas que não deve ser tão utilizado assim...35 readsconfig pattern
Yaroslav Prozorovbyka.hashnode.dev·Sep 29, 2023JPA Authentication Using DTO with Spring SecurityDTO (Data Transfer Object): Create a DTO (e.g., UserRegistrationDto) to transfer user registration data to your controller. Here's an example: @Data @AllArgsConstructor @NoArgsConstructor @Builder public class CreateUserRequest { private String ...88 readsSpring Data Jpa
Francesc Travesablog.cesc.cool·Sep 23, 2022DTOs, plants and being wrong with style.When I wrote my slogan, I just meant to be funny, but it turns out, it's also kind of true. Here's the slogan I put for Hashnode: "I hate to be wrong, so I read all the books. I still manage to be wrong. But with style". And this is a short post abou...71 readsDDD