News for hackers. Stuff that matters.
Re:Best practices for REST API design (2020) by dec0dedab0de on Monday February 22, 2021 @12:38PM (#26227438)
Django REST Framework has this built in, and is very easy to turn on. I always turn it on even though my users almost exclusively use json. I had one user use xml once, because they didnt know how to use json in whatever it was they were using. Noone has ever used yaml, but i leave it there just in case.

if you do it right, using the standard html content type returns a human browseable representation of your api with forms for posts and whatnot.

Re:Best practices for REST API design (2020) by NanoWar on Monday February 22, 2021 @04:02PM (#26230577)
Omg I love the browsable api of Django. I am searching for something similar for .NET - any pointers anyone?
Re:Best practices for REST API design (2020) by slimbods on Tuesday February 23, 2021 @02:23PM (#26241624)
Re:Best practices for REST API design (2020) by NanoWar on Sunday February 28, 2021 @02:39PM (#26296343)
That's not browsable. Swagger is just a prefilled Postman. I mean some UI where I can navigate and discover the resources directly.