Skip to content

Instantly share code, notes, and snippets.

@parimal2017
Created August 30, 2018 10:14
Show Gist options
  • Save parimal2017/f85be231fab90965d9adc4405d1b0a79 to your computer and use it in GitHub Desktop.
Save parimal2017/f85be231fab90965d9adc4405d1b0a79 to your computer and use it in GitHub Desktop.

Revisions

  1. parimal2017 created this gist Aug 30, 2018.
    45 changes: 45 additions & 0 deletions Lambda Contract
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    1. https://frontend.task-manager-ewr.com/delay/getrecord/2
    GET
    Response:
    [
    {
    "deliver_after": "1235549874",
    "id": "3",
    "payload": "{}",
    "request_code": "SEND_MAIL",
    "task_id": "None"
    },
    {
    "deliver_after": "1135549874",
    "id": "4",
    "payload": "{u'1': 1}",
    "request_code": "SEND_MAIL",
    "task_id": "None"
    }
    ]

    2. https://frontend.task-manager-ewr.com/init
    POST
    Request:
    { "request_code": "JOB_ALERT",
    "payload":
    {
    "job_preference": {"@type":"d","department":["IT"],"region":["East Midlands","London","East of England","North East","North West","South East","South West","West Midlands","Yorkshire and the Humber","Scotland","Wales","Ireland"],"salary_range":["<15k Basic","£15 - £20k Basic","£20 - £25k Basic","£25 - £30k Basic","£30 - £40k Basic","£40 - £50k Basic","More than £50k"]},
    "job_id": "eb139e91-3936-4d19-be97-d67476e4a156",
    "company_id": "4498f12c-f51f-4f09-8fea-62c141eb54b3"
    } }

    Response:
    {
    "task_id": "769"
    }

    3. https://frontend.task-manager-ewr.com/delay/updaterecord
    POST
    Request:
    [{"id":1,"task_id":14},{"id":2,"task_id":15}]

    Response:
    {
    "status": "success"
    }