r/SpringBoot • • Aug 29 '24

REST API best practices?

I want to write better api's. So could you guys help me with some of the practices you have followed over the years.

24 Upvotes

6 comments sorted by

7

u/JustHereForTheCh1cks Aug 29 '24

Have a look at the Richardson Rest Maturity model. https://www.martinfowler.com/articles/richardsonMaturityModel.html?ref=philsturgeon.com

Should give a feeling of were you are standing with your own design

2

u/[deleted] Aug 29 '24

Is that still what is considered good or has it aged already?

Asking because it was way more talked about in the past. It hasn’t been mentioned in any of my projects in the past few years…

5

u/chehsunliu Aug 29 '24 edited Aug 29 '24

I read this https://cloud.google.com/apis/design, especially the section for custom methods, which resolved my doubts about some corner cases.

2

u/[deleted] Aug 30 '24