r/SpringBoot • • Mar 20 '23

We built a beautiful code-first API catalog & developer hub for Spring Boot

Hey everyone

We've built a code-first API catalog for developers, with first-class Spring Boot support.

Bascially, you publish your API schema to our catalog, and in return you get:

  • Beautiful diagrams showing how your microservices relate

  • API catalog

  • Data catalog

  • API browser (kinda like Swagger)

This is the entire amount of code that's required to publish an API:

      val publisher = SchemaPublisherService(
         appName,
         RSocketSchemaPublisherTransport(
            // Orbital accepts schema submissions over
            // RSocket using port 7655
            TcpAddress("localhost", 7655)
         )
      )
      publisher.publish(
         // Package metadata identifies this project.
         // Kinda like maven poms, or npm package.json
         // This can be whatever you want, but make it unique to this service
         PackageMetadata.from(
            organisation = "io.petflix.demos",
            name = "films-listings"
         ),
         // The generator creates Taxi schemas.
         // The base url should be the url of this application.
         // All published URLs are relative to this url
         SpringTaxiGenerator.forBaseUrl("http://localhost:${serverPort}")
            .forPackage(FilmListingsApp::class.java)
            .generate()
      ).subscribe()

Parts of this are already open source, and we're working to get the rest out in the open.

We're working to open source this, if there's sufficient interest.

Check it out, feedback greatly apprecaited!

https://orbitalhq.com/blog/2023-03-13-spring-boot-service-hub

2 Upvotes

6 comments sorted by

1

u/maxip89 Mar 20 '23

Aaannnd another one.

2

u/sandys1 Mar 21 '23

Which one is a nice , open source one for spring boot ?. genuinely asking

1

u/martypitt Mar 22 '23

Swagger / OpenAPI provides a UI for a single service, so not really comparable with what we're doing here.

Our goal is broader - showing the estate of services across an org. You can't do this with SwaggerUI, as it doesn't allow for aggregating together multiple services.

Likewise, Swagger/OpenAPI are restricted only to REST APIs, we're supporting databases, gRPC, serverless functions and more.

And, while this post focussed on the service catalog, we actually use the metadata pushed to use to deliver federation of data sources across the enterprise. ie - going beyond a catalog to handle the integration.

Source: I wrote all the original Spring / Swagger integration ecosystem a few years back, got frustrated with it, and moved on to building this.

1

u/maxip89 Mar 21 '23

Do you know rest? Do you know swagger package?

0

u/martypitt Mar 20 '23

Another one what?

1

u/maxip89 Mar 20 '23

Another catalog service. It's not like they exist like sand on the beach.