Skip to content

Instantly share code, notes, and snippets.

@cancan101
Created May 12, 2015 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cancan101/e5e60a1fefd70d276102 to your computer and use it in GitHub Desktop.
Save cancan101/e5e60a1fefd70d276102 to your computer and use it in GitHub Desktop.
{
"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