Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do this on a current project. Certain fields are rarely need and turned off by default, others are usually needed and turned on by default. It's not done via a special syntax though, just query parameters, so something like /person/123?bio=false&salary=true. A standard path syntax might be nice but for handcrafted APIs this works well.

The front-end models are reusable and don't really need to care so long as the properties they need are available.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: