-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #378 from michalvavrik/feature/make-app-more-real
Make 'app-full-microprofile' project closer to what customers do and address engineering team feedback
- Loading branch information
Showing
21 changed files
with
280 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 0 additions & 162 deletions
162
app-full-microprofile/src/main/java/com/example/quarkus/secure/MPJWTToken.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
app-full-microprofile/src/main/java/com/example/quarkus/secure/ProtectedController.java
This file was deleted.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
app-full-microprofile/src/main/java/com/example/quarkus/secure/TestSecureController.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
app-full-microprofile/src/main/java/com/example/quarkus/serialization/JsonResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.example.quarkus.serialization; | ||
|
||
import com.example.quarkus.serialization.dto.ComplexDto; | ||
import com.example.quarkus.serialization.dto.MyEnum; | ||
import com.example.quarkus.serialization.dto.NestedClass; | ||
import com.example.quarkus.serialization.dto.NestedInterface; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
import jakarta.ws.rs.Produces; | ||
import jakarta.ws.rs.core.MediaType; | ||
|
||
/** | ||
* Tests DTO serialization as this is most likely done by majority of apps these days. | ||
*/ | ||
@Produces(MediaType.APPLICATION_JSON) | ||
@Path("serialization/json") | ||
public class JsonResource { | ||
|
||
@GET | ||
@Path("complex-dto") | ||
public ComplexDto complexDto() { | ||
return new ComplexDto(MyEnum.ONE, new NestedClass(), NestedInterface.INSTANCE); | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
app-full-microprofile/src/main/java/com/example/quarkus/serialization/dto/ComplexDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.example.quarkus.serialization.dto; | ||
|
||
public record ComplexDto(MyEnum myEnum, NestedClass nestedClass, NestedInterface nestedInterface) { | ||
} |
Oops, something went wrong.