/api

api for no bleep

Primary LanguagePython

#nobleep api

endpoints

GET /job/read

Gets all of the jobs

returns

{

  "jobs": [

    {

      "acknowledged": null,

      "bed": "bed",

      "created_at": "Sat, 14 May 2016 17:56:06 GMT",

      "creator_comment": "creator_comment",

      "creator_id": null,

      "creator_name": "creator_name",

      "doctor_comment": "doctor_comment",

      "done": null,

      "id": 1,

      "location": "location",

      "patient_id": "patient_id",

      "team_id": 1,

      "urgency": 1,

      "ward": "ward"

    }
  ]
}

GET /job/read/<team_id>

Gets all the jobs for a team_id

returns same as above

POST /job/create

Creates a job

team_id

patient_id

urgency

creator_comment

doctor_comment

bed

ward

location

creator_name

POST /job/update/<id>

Updates the job with id

team_id optional

patient_id optional

urgency optional

creator_comment optional

doctor_comment optional

bed optional

ward optional

location optional

creator_name optional

acknowledged optional

done optional