Click here to Skip to main content
15,890,527 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
PIEBALDconsult19-Dec-19 15:59
mvePIEBALDconsult19-Dec-19 15:59 
JokeRe: RESTful API Designing guidelines — The best practices Pin
NeverJustHere19-Dec-19 18:28
NeverJustHere19-Dec-19 18:28 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
Mark_Wallace19-Dec-19 20:02
Mark_Wallace19-Dec-19 20:02 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
Nand3219-Dec-19 20:52
Nand3219-Dec-19 20:52 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
Jörgen Andersson19-Dec-19 21:41
professionalJörgen Andersson19-Dec-19 21:41 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
agolddog23-Dec-19 3:09
agolddog23-Dec-19 3:09 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
Andrew Rissing23-Dec-19 6:10
Andrew Rissing23-Dec-19 6:10 
GeneralRe: RESTful API Designing guidelines — The best practices Pin
tjwise24-Dec-19 6:19
tjwise24-Dec-19 6:19 
Singular vs Plural is todays Tabs vs Spaces war. Both are correct for different reasons. I (we) tend to stay with singular unless there is a compelling reason to go plural. Primarily due to how some words pluralize (Person vs People).

This was an extremely lightweight article. The problem set is broader. Like, you have /populace endpoint. Do you return 300 million results or paginate the results? You need to incorporate security aspects. Do you have access to ALL the /populace (as a federal agency), or only some (as a state/province agency)? Even then, do you have access to all the data within a populace resource or only a limited set?

The problem I often see is thinking of the REST API like a programming API. It is not. If you go that way, you are building a RPC, and will have scaling issues at some point. You have to step back and really think resource. getServiceFee is communicative, but so is GET /serviceFee. But /serviceFee is not a "resource". It is part of a larger resource. Depending on access rights, it might be one of only a few elements available in the returned resource.

A better, simplified article is https://dzone.com/articles/5-basic-rest-api-design-guidelines[^]. It covers some of these points. A better collection of articles is https://dzone.com/articles/rest-api-best-practices-with-design-examples-from[^]. Sticking to these best practices helps open up some other frameworks to assist in building and documenting your API.

Bottom line, good REST is not simple or easy. It takes a lot of up front effort and then discipline to implement well. Even with that said, I (we) still got it wrong multiple times. Just less disasterously. Smile | :)
The cure to boredom is curiosity. There is no cure for curiosity. -- Dorothy Parker


modified 24-Dec-19 13:05pm.

GeneralWoohoo! Pin
honey the codewitch19-Dec-19 10:13
mvahoney the codewitch19-Dec-19 10:13 
GeneralRe: Woohoo! Pin
  Forogar  19-Dec-19 10:18
professional  Forogar  19-Dec-19 10:18 
GeneralOnce Again I'm Forced To Report Pin
W Balboos, GHB19-Dec-19 5:43
W Balboos, GHB19-Dec-19 5:43 
GeneralRe: Once Again I'm Forced To Report Pin
MarkTJohnson19-Dec-19 7:23
professionalMarkTJohnson19-Dec-19 7:23 
RantVB.NET is hateful Pin
honey the codewitch19-Dec-19 5:11
mvahoney the codewitch19-Dec-19 5:11 
GeneralRe: VB.NET is hateful Pin
Richard Deeming19-Dec-19 5:26
mveRichard Deeming19-Dec-19 5:26 
GeneralRe: VB.NET is hateful Pin
honey the codewitch19-Dec-19 5:28
mvahoney the codewitch19-Dec-19 5:28 
GeneralRe: VB.NET is hateful Pin
Richard Deeming19-Dec-19 5:35
mveRichard Deeming19-Dec-19 5:35 
GeneralRe: VB.NET is hateful Pin
honey the codewitch19-Dec-19 5:46
mvahoney the codewitch19-Dec-19 5:46 
GeneralRe: VB.NET is hateful Pin
Richard Deeming19-Dec-19 5:54
mveRichard Deeming19-Dec-19 5:54 
GeneralRe: VB.NET is hateful Pin
honey the codewitch19-Dec-19 5:55
mvahoney the codewitch19-Dec-19 5:55 
GeneralRe: VB.NET is hateful Pin
User 1106097919-Dec-19 6:00
User 1106097919-Dec-19 6:00 
GeneralRe: VB.NET is hateful Pin
honey the codewitch19-Dec-19 6:03
mvahoney the codewitch19-Dec-19 6:03 
GeneralRe: VB.NET is hateful Pin
obermd26-Dec-19 9:51
obermd26-Dec-19 9:51 
GeneralRe: VB.NET is hateful Pin
Rick York19-Dec-19 7:26
mveRick York19-Dec-19 7:26 
GeneralRe: VB.NET is hateful Pin
honey the codewitch19-Dec-19 7:30
mvahoney the codewitch19-Dec-19 7:30 
GeneralRe: VB.NET is hateful Pin
Rick York19-Dec-19 8:37
mveRick York19-Dec-19 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.