A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23
stars
7
forks
source link
defaults shouldn't be added to PUT and PATCH endpoints #75
With the new default option in reslang, the default is specified in both POST and PUT / PATCH. I could see the default being providing in a PUT but I think PATCH endpoints should not specify defaults. It's too easy to inadvertently override the current value when defaults are provided in a PATCH.
With the new default option in reslang, the default is specified in both POST and PUT / PATCH. I could see the default being providing in a PUT but I think PATCH endpoints should not specify defaults. It's too easy to inadvertently override the current value when defaults are provided in a PATCH.