Add Organization to API

This commit is contained in:
Alberto Miedes Garcés
2017-01-26 10:57:02 +01:00
parent 69fc161b83
commit e8fc387574
3 changed files with 14 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
User:
fields:
id: integer
username: string
debates: [Debate]
proposals: [Proposal]
comments: [Comment]
id: integer
username: string
debates: [Debate]
proposals: [Proposal]
comments: [Comment]
organization: Organization
Debate:
fields:
id: integer
@@ -82,3 +83,8 @@ Vote:
votable_id: integer
votable_type: string
public_timestamp: string
Organization:
fields:
id: integer
user_id: integer
name: string