All Questions
14 questions
2
votes
3
answers
922
views
How can I avoid duplicate annotations when validating both Entity and DTOs?
I am using the Spring Boot framework to create a RESTFUL API and I need a way to avoid the duplication of validation rules when using multiple DTOs as request/response objects for my endpoints.
Using ...
0
votes
0
answers
75
views
How can I design a secure content verification web application?
In my country, there is a high number of fraudulent doctor's sick letter as they are manually written on paper. I'm designing a web application to combat this issue and have the whole process ...
2
votes
1
answer
163
views
Handling OAuth 2.0 access token
I am creating a rest template to consume REST API secured by OAuth 2.0.
The provider has implemented an expiry for the access token for 5 mins. So Using the rest template, I will be calling the ...
4
votes
1
answer
806
views
Is this a good design for wrapping asynchronous API calls into a RESTful interface?
I'm working with an API that has many asynchronous calls and handlers. I'd like to extend these with a RESTful interface and endpoints in spring. I'm imagining the usual Controller and Service layers, ...
-1
votes
1
answer
177
views
What is the best practice to insert two similar records in sql server db table which will be sent to two different destinations?
I am working on parsing a file and inserting records into SQL Server DB.The database table structure will be something like this:
A Users table which contains (id, name, address, destinationName,...
1
vote
0
answers
2k
views
dealing with too many DTO / Java
We are building an pseudo-rest API (because no body cares/funds for a full blown rest API for internal use - which is OK).
So we have elements of Rest API (links for resources, API naming conventions ...
1
vote
0
answers
834
views
How to make rest api end points in swagger UI pre authenticated in Spring BOOT [closed]
I have written a spring boot rest API application with OAuth.I have integrated swagger UI for API documentation. I want the API endpoints on swagger UI to be accessible without an access token.
This ...
2
votes
2
answers
2k
views
Returning JPA Entities in Rest Api's?
Recently Ive seen so many devs working with the stack Spring/JPA and returning all these JPA entities on their rest controllers.
In my opinion it's a BAD PRACTICE for several reason such: ...
2
votes
2
answers
6k
views
Maintaining stateful information in REST API
I am developing a REST API which accepts JSON using Spring Boot. I use Spring Security for authentication. I have a use case where I have two services, one to test connection to a 3rd party system and ...
0
votes
1
answer
368
views
Moving to a Micro-services style architecture
Use-case:
As part of an Airline Application I am building - I am developing a set of (RESTful) API's each for Flights, Lounges, Loyalty etc. There are some common methods which should be accessible ...
11
votes
1
answer
433
views
REST service as an application server for 2000+ client machines. Is it a good idea?
We will be building a system with the UI in javaFx that will be deployed to 2000+ machines (minimum is 2000, but it will be more - can reach 5000 machines).
For other reasons/limitations it must be ...
13
votes
2
answers
21k
views
Structure of RESTful Service with Java Spring for Beginner
I am relatively new in terms of Java web development skills. I have a project that I think would make a good candidate for a RESTful service from what little I understand about APIs. I'm trying to get ...
0
votes
1
answer
6k
views
Spring Consuming Internal REST WS for MVC
Sorry in advance if this is a little confusing, it's difficult how to phrase this.
I am currently using Spring MVC with some RESTful services mixed in for some AJAX client side logic. I am looking ...
3
votes
2
answers
2k
views
Which is simpler for REST client call to return JSON - JQuery/JavaScript or Spring RestTemplate? [closed]
I've been trying to hack up an annotated Spring MVC web app but it's proving pretty hard to call a URL of my web app which fires a request to a remote API (UK Police data) and recieves a reply which I ...