3 ms·
maybe b/c it's for XML and not JSON, which most REST apis use.
by sheeshkebab 10y ago
maybe b/c it's for XML and not JSON, which most REST apis use.
- tootie 10y agoIf you don't use namespaces, you can validate JSON against an XSD. When I'm doing a REST API in Spring, I'll use and XSD and XJC (XSD Java Compiler) to generate model classes. The API endpoints are able to process those models as XML or JSON with 1 line of config.