Skip to content

Commit

Permalink
Discovery: implement server API (#2659)
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul authored Dec 15, 2023
1 parent 3aeef70 commit 27f2bb6
Show file tree
Hide file tree
Showing 12 changed files with 1,090 additions and 95 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
didmanAPI "github.com/nuts-foundation/nuts-node/didman/api/v1"
didmanCmd "github.com/nuts-foundation/nuts-node/didman/cmd"
"github.com/nuts-foundation/nuts-node/discovery"
discoveryAPI "github.com/nuts-foundation/nuts-node/discovery/api/v1"
discoveryCmd "github.com/nuts-foundation/nuts-node/discovery/cmd"
"github.com/nuts-foundation/nuts-node/events"
eventsCmd "github.com/nuts-foundation/nuts-node/events/cmd"
Expand Down Expand Up @@ -221,6 +222,7 @@ func CreateSystem(shutdownCallback context.CancelFunc) *core.System {
system.RegisterRoutes(authIAMAPI.New(authInstance, credentialInstance, vdrInstance, storageInstance))
system.RegisterRoutes(&authMeansAPI.Wrapper{Auth: authInstance})
system.RegisterRoutes(&didmanAPI.Wrapper{Didman: didmanInstance})
system.RegisterRoutes(&discoveryAPI.Wrapper{Server: discoveryInstance})

// Register engines
// without dependencies
Expand Down
10 changes: 10 additions & 0 deletions codegen/configs/discovery_v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package: v1
generate:
echo-server: true
client: true
models: true
strict-server: true
output-options:
skip-prune: true
exclude-schemas:
- VerifiablePresentation
Loading

0 comments on commit 27f2bb6

Please sign in to comment.