POST http://localhost:3000/create
{
"name": "Felipe",
"email": "felipe@email.com",
"password": "12345678"
}
POST http://localhost:3000/login
{
"email": "felipe@email.com",
"password": "12345678"
}
POST http://localhost:3000/create/institution
{
"name": "ETEC",
"email": "etec@etec.com",
"password": "12345678",
"cnpj": "28301041000137"
}
POST http://localhost:3000/login/institution
{
"email": "etec@etec.com",
"password": "12345678"
}
POST http://localhost:3000/project
Authorization: Bearer TOKEN
{
"title": "Adamas",
"description": "uma rede social para projetos",
"content": "###hello world!"
}
PUT http://localhost:3000/project/{project_id}
Authorization: Bearer TOKEN
{
"title": "Adamas-Projects",
"description": "uma rede social para a divulgação de projetos e eventos",
"content": "###hello world 2"
}
DELETE http://localhost:3000/project/{project_id}
Authorization: Bearer TOKEN
{
"email": "felipe@email.com",
"password": "12345678"
}
POST http://localhost:3000/project/{project_id}/category
Authorization: Bearer TOKEN
{
"category_name": "ti"
}
POST http://localhost:3000/project/{project_id}/comment
Authorization: Bearer TOKEN
{
"comment": "muito brabo"
}
DELETE http://localhost:3000/project/{project_id}/comment
Authorization: Bearer TOKEN
{
"comment_id": 1
}
PUT http://localhost:3000/project/{project_id}/comment
Authorization: Bearer TOKEN
{
"comment_id": 1,
"comment": "muito brabo, eu sei"
}
POST http://localhost:3000/event
Authorization: Bearer TOKEN
{
"name": "Amostra de TCC",
"address": "ETEC ANTONIO DEVISATE, avenida castro alves",
"date": "2020-12-02",
"description": "Uma amostra de tcc uai"
}
POST http://localhost:3000/project/{project_id}/add-user
Authorization: Bearer TOKEN
{
"user_id": 2
}
PUT http://localhost:3000/event/{event_id}
Authorization: Bearer TOKEN
{
"name": "Amostra de TCC 001",
"description": "Uma amostra de tcc, com projetos dos alunos da ETEC"
}
POST http://localhost:3000/event/{event_id}/room
Authorization: Bearer TOKEN
{
"name": "Sala 5",
"quantity_projects": 10
}
POST http://localhost:3000/event/{event_id}/subscribe
Authorization: Bearer TOKEN
GET http://localhost:3000/event/{event_id}/subscribers
Authorization: Bearer TOKEN
POST http://localhost:3000/event/{event_id}/participation
Authorization: Bearer TOKEN
{
"project_id": 1
}
POST http://localhost:3000/event/{event_id}/approve-participation
Authorization: Bearer TOKEN
{
"project_id": 1,
"room_id": 1
}
GET http://localhost:3000/project/search
GET http://localhost:3000/project/search/{project_title}
GET http://localhost:3000/project/user/{user_id}
GET http://localhost:3000/event/search/{event_title}