Skip to content

Commit

Permalink
Add endpoints to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro committed Aug 4, 2023
1 parent 2970a57 commit 107ba27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import io.iohk.atala.connect.controller.ConnectionControllerImpl
import io.iohk.atala.connect.core.service.{ConnectionServiceImpl, ConnectionServiceNotifier}
import io.iohk.atala.connect.sql.repository.{JdbcConnectionRepository, Migrations as ConnectMigrations}
import io.iohk.atala.event.notification.EventNotificationServiceImpl
import io.iohk.atala.anoncred.controller.AnoncredControllerImpl
import io.iohk.atala.issue.controller.IssueControllerImpl
import io.iohk.atala.mercury.*
import io.iohk.atala.pollux.core.service.*
Expand Down Expand Up @@ -114,6 +115,7 @@ object MainApp extends ZIOAppDefault {
CredentialSchemaControllerImpl.layer,
DIDControllerImpl.layer,
DIDRegistrarControllerImpl.layer,
AnoncredControllerImpl.layer,
IssueControllerImpl.layer,
PresentProofControllerImpl.layer,
VerificationPolicyControllerImpl.layer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import io.iohk.atala.castor.controller.{DIDRegistrarServerEndpoints, DIDServerEn
import io.iohk.atala.castor.core.service.DIDService
import io.iohk.atala.connect.controller.ConnectionServerEndpoints
import io.iohk.atala.connect.core.service.ConnectionService
import io.iohk.atala.anoncred.controller.AnoncredServerEndpoints
import io.iohk.atala.issue.controller.IssueServerEndpoints
import io.iohk.atala.mercury.DidOps
import io.iohk.atala.mercury.HttpClient
Expand Down Expand Up @@ -84,6 +85,7 @@ object AgentHttpServer {
allVerificationPolicyEndpoints <- VerificationPolicyServerEndpoints.all
allConnectionEndpoints <- ConnectionServerEndpoints.all
allIssueEndpoints <- IssueServerEndpoints.all
allAnoncredEndpoints <- AnoncredServerEndpoints.all
allDIDEndpoints <- DIDServerEndpoints.all
allDIDRegistrarEndpoints <- DIDRegistrarServerEndpoints.all
allPresentProofEndpoints <- PresentProofServerEndpoints.all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import io.iohk.atala.castor.controller.{
DIDServerEndpoints
}
import io.iohk.atala.connect.controller.{ConnectionController, ConnectionServerEndpoints}
import io.iohk.atala.anoncred.controller.AnoncredController
import io.iohk.atala.anoncred.controller.AnoncredServerEndpoints
import io.iohk.atala.issue.controller.{IssueController, IssueServerEndpoints}
import io.iohk.atala.pollux.credentialschema.controller.{CredentialSchemaController, VerificationPolicyController}
import io.iohk.atala.pollux.credentialschema.{SchemaRegistryServerEndpoints, VerificationPolicyServerEndpoints}
Expand All @@ -29,6 +31,7 @@ object Tapir2StaticOAS extends ZIOAppDefault {
allVerificationPolicyEndpoints <- VerificationPolicyServerEndpoints.all
allConnectionEndpoints <- ConnectionServerEndpoints.all
allIssueEndpoints <- IssueServerEndpoints.all
allIssueEndpoints <- AnoncredServerEndpoints.all
allDIDEndpoints <- DIDServerEndpoints.all
allDIDRegistrarEndpoints <- DIDRegistrarServerEndpoints.all
allPresentProofEndpoints <- PresentProofServerEndpoints.all
Expand All @@ -53,6 +56,7 @@ object Tapir2StaticOAS extends ZIOAppDefault {
ZLayer.succeed(mock[VerificationPolicyController]) ++
ZLayer.succeed(mock[DIDRegistrarController]) ++
ZLayer.succeed(mock[PresentProofController]) ++
ZLayer.succeed(mock[AnoncredController]) ++
ZLayer.succeed(mock[IssueController]) ++
ZLayer.succeed(mock[DIDController]) ++
ZLayer.succeed(mock[SystemController])
Expand Down

0 comments on commit 107ba27

Please sign in to comment.