News for hackers. Stuff that matters.
Re:How to (and how not to) design REST APIs by marcellus23 on Wednesday November 01, 2023 @04:43PM (#38104884)
> for a CRUD interface you may need the singular form anyway (POST api/student/create)

Why? What's wrong with api/students/create?

> Avoid plural nouns in English API endpoints because English is full of irregular plurals.

I don't buy this. I mean, yes, it's true, but how often do people really need to write these endpoints after initially writing the client code?

Re:How to (and how not to) design REST APIs by rswail on Thursday November 02, 2023 @01:59AM (#38109502)
Verbs in a URL are an API "smell" for me.

URLs refer to a resource that you can manipulate. What resource is /students/create referring to?