Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"swaggerVersion": "1.2",
"apis": [
{
"operations": [
{
"parameters": [
{
"paramType": "path",
"required": true,
"type": "string",
"name": "pk"
},
{
"enum": [
"Male",
"Female"
],
"name": "sex",
"paramType": "form",
"required": true,
"type": "string",
"description": ""
}
],
"nickname": "Subject_partial_update",
"notes": "",
"summary": "",
"type": "SubjectSerializer",
"method": "PATCH"
}
],
"path": "/api/subjects/{pk}/",
"description": ""
}
],
"models": {
"FullNameSerializer": {
"required": [],
"id": "FullNameSerializer",
"properties": {
"name_first": {
"description": null,
"required": false,
"readOnly": false,
"type": "string"
}
}
},
"SubjectSerializer": {
"required": [
"full_name"
],
"id": "SubjectSerializer",
"properties": {
"full_name": {
"description": null,
"required": true,
"readOnly": false,
"$ref": "FullNameSerializer"
}
}
}
},
"basePath": "http://127.0.0.1:8000",
"resourcePath": "/api",
"apiVersion": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.