Tag: jsonschema
-
Build a state machine API with JSON Schema
A finite state machine is a good way to model the lifecycle of a resource and good thing for any API developer to have in the tool belt. I got inspired by this article from Red Hat and I will use the same example to build a working API with CRUD Builder using JSON Schema.…
-
Good validation error messages makes API consumers happy
Good validation error messages make API consumers happy All input to an API must be validated to avoid unintended or disallowed use. Invalid input should return a status code in the 4XX range (e.g 400, 403 or 409). But this is not enough. When I as an API consumer receive 400 (Bad request) I am…
