From 45fe495f9a26fbd5777b33ad0394715822d18ff1 Mon Sep 17 00:00:00 2001
From: Bruno Nocera Zanette <brunonzanette@gmail.com>
Date: Tue, 10 Sep 2013 16:44:44 -0300
Subject: [PATCH] Add JSON's basic structure's descriptor files

At these files are described the basic JSON's structure of each section.

Signed-off-by: Bruno Nocera Zanette <brunonzanette@gmail.com>
---
 doc/group_section_json_structure.json | 164 ++++++++++++++++++++++++++
 doc/user_section_json_structure.json  | 156 ++++++++++++++++++++++++
 2 files changed, 320 insertions(+)
 create mode 100644 doc/group_section_json_structure.json
 create mode 100644 doc/user_section_json_structure.json

diff --git a/doc/group_section_json_structure.json b/doc/group_section_json_structure.json
new file mode 100644
index 0000000..3f0fb58
--- /dev/null
+++ b/doc/group_section_json_structure.json
@@ -0,0 +1,164 @@
+{"comunidades": [
+	{
+		"cid": "xyz",
+		"proprietario": {
+			"uid": "xyz",
+			"nome": "xyz"
+		},
+		"titulo": "xyz",
+		"data": "xyz",
+		"breve_descricao": "xyz",
+		"descricao": "xyz",
+
+		"quantidade_membros": "xyz",
+		"membros": [
+			{
+				"uid": "xyz",
+				"nome": "xyz"
+			}
+		],
+
+		"arquivos_habilitado": "xyz",
+		"arquivos": [
+			{
+				"pid": "xyz",
+				"autor": {
+					"uid": "xyz",
+					"nome": "xyz"
+				},
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"debates_habilitado": "xyz",
+		"debates": [
+			{
+				"pid": "xyz",
+				"autor": {
+					"uid": "xyz",
+					"nome": "xyz"
+				},
+				"titulo": "xyz",
+				"data": "xyz",
+				"texto": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"favoritos_habilitado": "xyz",
+		"favoritos": [
+			{
+				"pid": "xyz",
+				"autor": {
+					"uid": "xyz",
+					"nome": "xyz"
+				},
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"paginas_habilitado": "xyz",
+		"paginas": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"permissao_escrita": "xyz",
+				"texto": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"videos_habilitado": "xyz",
+		"videos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"eventos_habilitado": "xyz",
+		"eventos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"organizador": "xyz",
+				"contato": "xyz",
+				"endereco": "xyz",
+				"data_inicio": "xyz",
+				"data_fim": "xyz",
+				"taxa_de_participacao": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		]
+
+	}
+]}
diff --git a/doc/user_section_json_structure.json b/doc/user_section_json_structure.json
new file mode 100644
index 0000000..6a5c0af
--- /dev/null
+++ b/doc/user_section_json_structure.json
@@ -0,0 +1,156 @@
+{"usuarios": [
+	{
+		"uid": "xyz",
+		
+		"nome": "xyz",
+
+		"quantidade_amigos": "xyz",
+		"amigos": [
+			{
+				"uid": "xyz",
+				"nome": "xyz"
+			}
+		],
+
+		"comunidades": {
+			"dono": [
+				{
+					"cid": "xyz",
+					"nome": "xyz"
+				}
+			],
+			"membro": [
+				{
+					"cid": "xyz",
+					"nome": "xyz"
+				}
+			]
+		},
+
+		"arquivos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"blogs": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"resumo": "xyz",
+				"texto": "xyz",
+				"permissao_comentarios": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+		
+		"favoritos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"paginas": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"permissao_escrita": "xyz",
+				"texto": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"videos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"link": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		],
+
+		"eventos": [
+			{
+				"pid": "xyz",
+				"titulo": "xyz",
+				"data": "xyz",
+				"organizador": "xyz",
+				"contato": "xyz",
+				"endereco": "xyz",
+				"data_inicio": "xyz",
+				"data_fim": "xyz",
+				"taxa_de_participacao": "xyz",
+				"descricao": "xyz",
+				"comentarios": [
+					{
+						"usuario": {
+							"uid": "xyz",
+							"nome": "xyz"
+						},
+						"data": "xyz",
+						"mensagem": "xyz"
+					}
+				]
+			}
+		]
+	}
+]}
-- 
GitLab