Trails-Through-Shadows / TTS-API

A communication interface between database and applications, including validation and game logic.
https://api.tts-game.fun/swagger-ui/index.html
0 stars 0 forks source link

[NOTE] STANDARDS!! #17

Open Firestone82 opened 10 months ago

Firestone82 commented 10 months ago

Use REST API standards

-> no /api .. you are already requestion an API url so there is no point to another /api/ in path -> url formating .. everything is in plural, even if you get specific id

https://www.freecodecamp.org/news/rest-api-best-practices-rest-endpoint-design-examples https://blog.stoplight.io/rest-api-standards-do-they-even-exist

rcMarty commented 10 months ago

I guess it's done. Any other recommendations or problems with endpoints? @Firestone82

Firestone82 commented 10 months ago

Try to look on better way to configs: https://www.baeldung.com/spring-properties-file-outside-jar

Im not sure of your current configuration way. Application properties should be allways fully editable. So by mooving it away, and leaving default in resources is best way.

Firestone82 commented 10 months ago

image 😅

Firestone82 commented 9 months ago

https://www.geeksforgeeks.org/what-is-the-difference-between-put-post-and-patch-in-restful-api/ image