This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [MCIL-29] postman get terminal list (#29)
- Loading branch information
1 parent
3689f14
commit edc7535
Showing
11 changed files
with
136 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Pull request review | ||
name: Postman Test | ||
|
||
on: | ||
pull_request: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package it.pagopa.swclient.mil.dao; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public record PageMetadata(int size, long totalElements, int totalPages) { | ||
} |
17 changes: 8 additions & 9 deletions
17
src/main/java/it/pagopa/swclient/mil/dao/TerminalEntity.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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package it.pagopa.swclient.mil.dao; | ||
|
||
import io.quarkus.mongodb.panache.common.MongoEntity; | ||
import lombok.*; | ||
import org.bson.codecs.pojo.annotations.BsonProperty; | ||
|
||
@ToString | ||
@Data | ||
@Builder | ||
@Getter | ||
@MongoEntity(database = "mil", collection = "terminalRegistry") | ||
public class TerminalEntity { | ||
|
||
private String terminalUuid; | ||
@BsonProperty("terminalUuid") | ||
public String terminalUuid; | ||
|
||
private String terminalHandler; | ||
@BsonProperty("terminalHandler") | ||
public String terminalHandler; | ||
|
||
private String serviceProviderId; | ||
@BsonProperty("serviceProviderId") | ||
public String serviceProviderId; | ||
|
||
private Terminal terminal; | ||
public Terminal terminal; | ||
} |
2 changes: 2 additions & 0 deletions
2
src/main/java/it/pagopa/swclient/mil/dao/TerminalPageResponse.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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
package it.pagopa.swclient.mil.dao; | ||
|
||
import java.util.List; | ||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public record TerminalPageResponse(List<TerminalEntity> terminals, PageMetadata page) { | ||
} |
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
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