[I Made This] api.pi4j.com

Another small public Vaadin website: https://api.pi4j.com/

It “exposes/visualizes” the data known in the Pi4J library about the different Raspberry Pi Boards.

Vaadin project: GitHub - Pi4J/pi4j-board-info-service: API service providing Raspberry Pi info
Pi4J data: pi4j-v2/pi4j-core/src/main/java/com/pi4j/boardinfo/definition/BoardModel.java at develop · Pi4J/pi4j-v2 · GitHub

6 Likes

Wow, very nice project. You are on fire :) (drums media and now this).

I like the use case and the site as well.

The only thing I spotted here is there are two broken links for these pages:

  • Open API,
  • Swagger UI-API
    Maybe just now or not long ago, but would be nice to make them work again if you could.

Keep up the good work and projects! :tada:

1 Like

Strange thing with the broken links: if you do refresh they work… I guess it’s a routing problem from Vaadin menu? I have an open github ticket to be able to have a menu link to open in _blank but not available yet I think. And I hope it will solve this problem.

1 Like

Indeed, confirming it works if you reload the page, but still kinda feels weird, that you need to reload.

Let’s hope your open ticket solve the issue!

1 Like

It’s a missing feature / bug - to be fixed in 24.4 see SideNav doesn't work with HTTP links to pages in the same application. · Issue #5189 · vaadin/flow-components · GitHub

1 Like

I think the default of the router to catch all links by default is the bug :japanese_goblin: I’m facing a similar issues with pretty much every larger Vaadin projects (or small that are some kind of mashups) and they are always hard/nasty to override. Instead of having that “router-ignore” we should have “routerlink” that various navigation components could apply automatically.

1 Like

Correct @knoobie, I couldn’t find back that link. Thanks for digging it up :-)

I need a better way to define the link in these SideNavItems:

1 Like

Yeah using full links is a workaround (those are already excluded by the router) but it comes with the downside to remember it once you have multiple staging areas with different base URLs (I know, won’t effect your Hobby Project as much) :smiley:

1 Like

Seems I could fix the link problem with another implementation with an Anchor:

1 Like

Nice job! I’ve tested and in my opinion your website works better with this fix :)!

1 Like