I've now discovered that either verbose_name or label automatic flow
through to the label, when looking at the Metadata using the SimpleMetadata:
"actions": {
"POST": {
"user": {
"label": "User",
"type": "field",
"read_only": false,
"required": true
},
"vendor": {
"max_length": 100,
"required": true,
"label": "Vendor",
"type": "string",
"help_text": "Vendor of NGS adapter kit",
"read_only": false
},
"version": {
"label": "Version",
"type": "string",
"read_only": false,
"max_length": 100,
"required": true
},
"kit": {
"label": "Adapter Kit",
"type": "string",
"read_only": false,
"max_length": 100,
"required": true
},
"subkit": {
"label": "Adapter Subkit",
"type": "string",
"read_only": false,
"required": true
},
"id": {
"label": "ID",
"type": "integer",
"read_only": true,
"required": false
}
}
Perhaps this turns this into an exercise for me to write my own metadata
class to return JSON schema, and maybe that already exists elsewhere and I
will find it.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.