Skip to content

Applications

Pablo Ángel Trinidad edited this page Sep 13, 2016 · 17 revisions

Submit application

User will submit a new application by entering it's email.

Resource: /applications/

Method: POST

Arguments:

  • email (validated)

Sample response:

{
  "status": "ok",
  "message": "New application in progress.",
  "hacker": HackerObject.
}

Add personal info

Resource: /applications/:email/personal/

Method: PUT

Arguments:

  • first_name
  • last_name
  • age 80 > age > 11
  • male bool
  • female bool
  • phone_number
  • email validated
  • country
  • state

Sample response:

{
  "status": "ok",
  "message": "Personal info updated",
  "hacker": HackerObject
}

Add education info

Resource: /applications/:email/education/

Method: PUT

Arguments:

  • school
  • campus
  • school_join_year
  • school_identification
  • school_graduation_year
  • education_level
  • major

Sample response:

{
  "status": "ok",
  "message": "Education info updated.",
  "hacker": HackerObject
}

Add goodies information

Resource: /applications/:email/goodies/

Method: PUT

Arguments:

  • tshirt_size
  • dietary_restrictions optional

Sample response:

{
  "status": "ok",
  "message": "Goodies info updated.",
  "hacker": HackerObject
}

First time hacker

Resource: /applications/:email/experience/

Method: PUT

Arguments:

  • first_time_hacker boolean
  • currently_working boolean

Sample response:

{
  "status": "ok",
  "message": "Experience info updated.",
  "hacker": HackerObject
}

Past hackathons

Resource: /applications/:email/hackathons/

Method: PUT

Arguments:

  • hackathons: a list of hackathons ids

Sample request:

{
    "hackathons": "3,4,5"
}

Sample response:

{
  "status": "ok",
  "message": "Hackathons added to hacker experience.",
  "hacker": HackerObject
}

Past events (past versions of the current hack)

Resource: /applications/:email/events/

Method: POST

Arguments:

  • events: a list of events ids

Sample request:

{
    "events": "1,2,3"
}

Sample response:

{
  "status": "ok",
  "message": "Events added to hacker experience.",
  "hacker": HackerObject
}

Finish application

This action is irreversible (via the API) and will block all application endpoints to prevent changes

Resource: /applications/:email/finish/

Method: PUT

Sample response:

{
  "status": "ok",
  "message": "Application finished successfully!.",
  "hacker": HackerObject
}

Add promo code

Resource: /applications/:email/promo_code/

Method: PUT

Arguments:

  • promo_code: string

Sample response:

{
  "status": "ok",
  "message": "Promo code added to application.",
  "hacker": HackerObject
}

# Experience


**Resource:** `/applications/:email/experience/`

**Method:** `PUT`

**Arguments:**
* first_time_hacker: boolean
* currently_working: boolean


**Sample response:**

{ "status": "ok", "message": "Promo code added to application.", "hacker": HackerObject }

Clone this wiki locally