Skip to content

Instantly share code, notes, and snippets.

@aldantas
Created June 23, 2016 17:50
Show Gist options
  • Save aldantas/492b16a5fa0cf6ade12f30392ee88cef to your computer and use it in GitHub Desktop.
Save aldantas/492b16a5fa0cf6ade12f30392ee88cef to your computer and use it in GitHub Desktop.
#HTTP REQUEST
POST http://localhost:8080/fomento/api/researchgroup
Content-Type: application/json
{
"accountingSubmissionDate": 1465182000000,
"budget": {
"consumableMaterials": 0.0,
"displacements": 0.0,
"supportedValue": 1600.0
},
"endDate": 1496113200000,
"groupCoordinator": {
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
},
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "1234213213156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456213213465",
"emails": [
{
"email": "teste@email.com",
"id": 2
},
{
"email": "augusto@email.com",
"id": 1
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 7,
"idDocument": {
"documentNumber": "122132133456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"researchGroupsNames": []
},
"members": [
{
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
},
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "1234213213156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456213213465",
"emails": [
{
"email": "teste@email.com",
"id": 2
},
{
"email": "augusto@email.com",
"id": 1
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 7,
"idDocument": {
"documentNumber": "122132133456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"roles": [
{
"id": 1,
"role": "Bolsista"
}
],
"weeklyHours": 20
},
{
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 8,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "12909156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456412321365",
"emails": [
{
"email": "augustold42@gmail.com",
"id": 6
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 10,
"idDocument": {
"documentNumber": "121321321323456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"roles": [
{
"id": 2,
"role": "Pesquisador"
}
],
"weeklyHours": 20
}
],
"notes": "obs",
"receivementDate": 1420077600000,
"researchProject": {
"id": 1,
"proposalTheme": {
"id": 1,
"proposalTheme": "TI"
},
"researchModalityType": "SCIENTIFIC_RESEARCH",
"researchProject": "Fomento"
},
"responsibleEmployees": [
{
"person": {
"id": 9
}
}
],
"startDate": 1420077600000,
"subjectArea": null,
"termControl": {
"coordinatorSignReceive": 1420855200000,
"coordinatorSignSent": 1420423200000,
"directorOneSign": null,
"directorTwoSign": null,
"grantingDepartmentManagerSign": null,
"technicianSign": null,
"witnessOneSign": null,
"witnessTwoSign": null
}
}
#HTTP REQUEST
GET http://localhost:8080/fomento/api/researchgroup/15
Content-Type: application/json
{
"accountingSubmissionDate": 1465182000000,
"budget": {
"budgetStatus": "FULLY_APPROVED",
"consumableMaterials": 0.0,
"displacements": 0.0,
"grants": 0,
"supportedValue": 1600.0,
"totalRequested": 0.0
},
"endDate": 1496113200000,
"groupCoordinator": {
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
},
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "1234213213156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456213213465",
"emails": [
{
"email": "teste@email.com",
"id": 2
},
{
"email": "augusto@email.com",
"id": 1
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 7,
"idDocument": {
"documentNumber": "122132133456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"researchGroupsNames": []
},
"hasTechnicalReportPendency": true,
"hasTermPendency": true,
"id": 15,
"members": [
{
"id": 3,
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
},
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 5,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "1234213213156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456213213465",
"emails": [
{
"email": "teste@email.com",
"id": 2
},
{
"email": "augusto@email.com",
"id": 1
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 7,
"idDocument": {
"documentNumber": "122132133456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"roles": [
{
"id": 1,
"role": "Bolsista"
}
],
"weeklyHours": 20
},
{
"id": 4,
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2016,
"graduationDate": 1459393200000,
"id": 8,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "12909156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "A",
"cpf": "4123456412321365",
"emails": [
{
"email": "augustold42@gmail.com",
"id": 6
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 10,
"idDocument": {
"documentNumber": "121321321323456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
},
"roles": [
{
"id": 2,
"role": "Pesquisador"
}
],
"weeklyHours": 20
}
],
"notes": "obs",
"pendencies": [
{
"documentType": null,
"pendencyReasons": [
"REPORT_DELIVERY"
],
"pendentDocumentId": 43,
"pendentDocumentNumber": "1"
},
{
"documentType": null,
"pendencyReasons": [
"REPORT_DELIVERY"
],
"pendentDocumentId": 44,
"pendentDocumentNumber": "2"
},
{
"documentType": null,
"pendencyReasons": [
"REPORT_DELIVERY"
],
"pendentDocumentId": 45,
"pendentDocumentNumber": "3"
},
{
"documentType": "TERM",
"pendencyReasons": [
"TECHNICIAN_SIGNATURE",
"GRANTING_DEPARTMENT_MANAGER_SIGNATURE",
"WITNESS_SIGNATURE",
"WITNESS_SIGNATURE",
"DIRECTOR_SIGNATURE",
"DIRECTOR_SIGNATURE"
],
"pendentDocumentId": 15,
"pendentDocumentNumber": null
}
],
"receivementDate": 1420077600000,
"researchProject": {
"id": 1,
"proposalTheme": {
"id": 1,
"proposalTheme": "TI"
},
"researchModalityType": "SCIENTIFIC_RESEARCH",
"researchProject": "Fomento"
},
"responsibleEmployees": [
{
"departments": [],
"person": {
"academicBackground": [
{
"course": {
"courseName": "Ci\u00eancia da Computa\u00e7\u00e3o",
"id": 1
},
"degreeType": {
"degree": {
"degree": "Superior",
"id": 1
},
"degreeType": "Bacharelado",
"id": 1
},
"expectedGraduationYear": 2015,
"graduationDate": 1458356400000,
"id": 6,
"initialAge": 18,
"isOngoing": true,
"universityCampus": {
"campus": "FOZ",
"id": 1,
"specifcAddress": null,
"university": {
"cnpj": "21321321321",
"emails": [],
"fantasyName": "Unioeste",
"id": 2,
"legalName": "Unioeste",
"phones": [],
"specificAddress": null
}
}
}
],
"bankAccount": {
"account": "123421321232313156",
"agency": "12515",
"bank": null,
"operation": null
},
"birthDate": 760154400000,
"bloodType": "B",
"cpf": "412313213465",
"emails": [
{
"email": "augusto@email.com",
"id": 4
},
{
"email": "teste@email.com",
"id": 5
}
],
"familyName": "Dantas",
"fatherName": null,
"fullName": "Augusto Dantas",
"gender": {
"gender": "Masculino",
"id": 1
},
"givenName": "Augusto",
"id": 9,
"idDocument": {
"documentNumber": "12123492132133456789",
"expiringDate": null,
"isForeign": null,
"issuingInstitution": null,
"issuingState": null
},
"lattes": null,
"maritalStatus": "SINGLE",
"motherName": null,
"nationality": null,
"naturality": null,
"phones": [],
"rhFactor": "POSITIVE",
"specificAddress": null
}
}
],
"startDate": 1420077600000,
"subjectArea": null,
"technicalReports": [
{
"expectedIssueDate": 1433905200000,
"id": 43,
"isConformable": null,
"issueDate": null,
"monitoringReportType": "PERIODIC",
"reportNote": null,
"reportNumber": 1,
"technicianIssueDate": null
},
{
"expectedIssueDate": 1449712800000,
"id": 44,
"isConformable": null,
"issueDate": null,
"monitoringReportType": "PERIODIC",
"reportNote": null,
"reportNumber": 2,
"technicianIssueDate": null
},
{
"expectedIssueDate": 1465527600000,
"id": 45,
"isConformable": null,
"issueDate": null,
"monitoringReportType": "PERIODIC",
"reportNote": null,
"reportNumber": 3,
"technicianIssueDate": null
},
{
"expectedIssueDate": 1481335200000,
"id": 46,
"isConformable": null,
"issueDate": null,
"monitoringReportType": "PERIODIC",
"reportNote": null,
"reportNumber": 4,
"technicianIssueDate": null
},
{
"expectedIssueDate": 1498705200000,
"id": 47,
"isConformable": null,
"issueDate": null,
"monitoringReportType": "TERMINAL",
"reportNote": null,
"reportNumber": 5,
"technicianIssueDate": null
}
],
"termControl": {
"coordinatorSignReceive": 1420855200000,
"coordinatorSignSent": 1420423200000,
"directorOneSign": null,
"directorTwoSign": null,
"grantingDepartmentManagerSign": null,
"technicianSign": null,
"witnessOneSign": null,
"witnessTwoSign": null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment