All Questions
5 questions
1
vote
5
answers
932
views
DTO vs POJO (Entity) on POST request
If I have for example a User POJO like the following
@AllArgsConstructor
public class User {
@Id
private final String id;
private String username;
private String password;
private Date createdDate;...
3
votes
2
answers
207
views
Checking the user in almost all use cases
I have a web application that has Users that belong to Companies. A User can only belong to 1 Company at a time and they can manage their own company information. I'm using java spring and I'm ...
1
vote
1
answer
6k
views
Design Pattern for accessing data over RestAPI calls
I am looking out for a general design strategy or pattern designing various components in my client application. Here are high level details:
The data is accessed my making a RestAPI call. The data ...
8
votes
1
answer
7k
views
Implementing a REST API in a Clean Architecture
I have been implementing a proof of concept application using Uncle Bob's Clean Architecture and I have run into a bit of a problem.
Uncle Bob's architecture calls for the explicit separation of ...
0
votes
2
answers
2k
views
DTO - service layer - statelessness best practices interfering with each other
I am designing a REST API coupled with a service layer that takes DTOs as input and produces them as output. This works fine for most service calls where the DTO is used to access an underlying ...