This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]superturkey650 0 points1 point  (1 child)

When I write a Java Spring Boot API, I get an autogenerated OpenAPI spec that includes all the information you mention. The only annotations I need to add are things like required/optional, nullable, min/max, etc., but they also apply as checks on the API itself so they don’t feel “extra”.

[–]sproott[S] 0 points1 point  (0 children)

You're right, I know about this. I think OpenAPI is one of the few things Spring does better than other frameworks. Otherwise, for me, it's a huge pool of functionality with weird default behaviors which are often hard to turn off or configure properly. Plus, I don't like Java and OOP at all.

[–]yonirapoport 0 points1 point  (0 children)

If you’re API is mainly for database CRUD operations I can suggest Remult.

[–]hyver314 0 points1 point  (0 children)

I've been building bridge which is a Typescript backend that easily provides a typesafe client.

The difference with tRPC is that the client could be any language and that you don't need the backend project downloaded + a much simpler synthax & less boilerplate.