scinote-web/spec/support/api/schemas/teams.json

22 lines
563 B
JSON
Raw Normal View History

2017-10-27 15:35:39 +08:00
{
"type": "object",
"required": ["teams"],
"properties": {
"teams": {
"type": "array",
"items":{
2017-11-03 17:11:23 +08:00
"required": ["id", "name", "members", "role", "can_be_left", "user_team_id"],
2017-10-27 15:35:39 +08:00
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"members": { "type": "integer" },
"role": { "type": "integer" },
2017-11-03 17:11:23 +08:00
"can_be_left": { "type": "boolean" },
2017-10-27 15:35:39 +08:00
"user_team_id": { "type": "integer" },
"user_id": { "type": "integer" }
}
}
}
}
}