Skip to content

Hackers

Pablo Ángel Trinidad edited this page Aug 25, 2016 · 16 revisions

Hacker Object

{
  "id": 5,
  "first_name": "Pablo",
  "last_name": "Trinidad",
  "email": "pablo@inventivehack.com",
  "age": 19,
  "male": true,
  "female": false,
  "phone_number": "+5215555555555",
  "school": {
    "id": 2,
    "name": "UNAM - Universidad Nacional Autónoma de México"
  },
  "campus": {
    "id": 3,
    "school": {
      "id": 2,
      "name": "UNAM - Universidad Nacional Autónoma de México"
    },
    "name": "Facultad de Química.."
  },
  "school_identification": "2013090446",
  "education_level": "Preparatoria",
  "major": "Programación",
  "school_join_year": 2012,
  "school_graduation_year": 2015,
  "tshirt_size": "Mediana - Hombre",
  "dietary_restrictions": "No puedo comer comida",
  "first_time_hacker": false,
  "hackathons": [
    "ATT Hack 2",
    "Hackathon Centro Fox",
    "Hackathon Campus Party 2016"
  ],
  "event_participations": [
    "MX Hacks 1",
    "MX Hacks 2",
    "MX Hacks 3"
  ]
  "first_time_event": true,
  "created": "2016-08-24T16:28:44.527273",
  "modified": "2016-08-25T18:53:14.842744"
}

Schools List

Return a list of participating schools (new ones can be added using another endpoint).

Resource: /hackers/schools/

Method: GET

Search: It's posible filter schools by name using the search parameter.

Sample response:

[
  {
    "id": 3,
    "name": "IPN"
  },
  {
    "id": 1,
    "name": "Tecnológico de Monterrey"
  },
  {
    "id": 2,
    "name": "UNAM"
  }
]

Add school

Resource: /hackers/schools/

Method: POST

Arguments:

  • name

Sample response:

{
  "id": 10,
  "name": "Instiruto Tecnológico de Monterrey"
}

List school campus

Resource: /hackers/schools/:id/campus/

Method: GET

Search: It's posible filter school campus by name using the search parameter.

Sample response:

[
  {
    "id": 1,
    "name": "Campus Santa Fe",
    "school": 1
  },
  {
    "id": 5,
    "name": "Campus Estado de México",
    "school": 1
  }
]

Add school campus

Resource: /hackers/schools/:id/campus/

Method: POST

Arguments:

  • name

Sample response:

{
  "id": 6,
  "name": "Campus Monterrey",
  "school": 1
}

Education levels

Resource: /hackers/levels/

Method: GET

Sample response:

[
  "Secundaria",
  "Preparatoria",
  "Bachillerato",
  "Maestría",
  "Doctorado"
]

T-Shirt sizes

Resource: /hackers/goodies/

Method: GET

Sample response:

[
  "Chica - Mujer",
  "Mediana - Mujer",
  "Grande - Mujer",
  "Extra Grande - Mujer",
  "Chica - Hombre",
  "Mediana - Hombre",
  "Grande - Hombre",
  "Extra Grande - Hombre"
]

Events list

Resource: /hackers/events/

Method: GET

Sample response:

[
  {
    "id": 1,
    "name": "MX Hacks",
    "edition": 1
  },
  {
    "id": 2,
    "name": "MX Hacks",
    "edition": 2
  },
  {
    "id": 3,
    "name": "MX Hacks",
    "edition": 3
  }
]

Add hackathon

Resource: /hackers/hackathons/

Method: POST

Arguments:

  • name

Sample response:

{
  "id": 1,
  "name": "Hack MTY"
}

Hackathons List

Resource: /hackers/hackathons/

Method: GET

Search: It's posible filter hackathons by name using the search parameter.

Sample response:

[
  {
    "id": 2,
    "name": "ATT Hack"
  },
  {
    "id": 3,
    "name": "ATT Hack 2"
  },
  {
    "id": 1,
    "name": "Hack MTY"
  },
  {
    "id": 5,
    "name": "Hackathon Campus Party 2016"
  },
  {
    "id": 4,
    "name": "Hackathon Centro Fox"
  }
]

Clone this wiki locally