-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
Pablo Martínez Figueroa edited this page Mar 26, 2019
·
29 revisions
What you send:
{
"username": "sample",
"password": "sample-password"
}
What you'll receive:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
Headers:
{
"Authentication": "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
What you'll receive:
{
"saludo": "Hola, <<Username>>"
}
{
"title": TEXT("test title"),
"description": TEXT("test description"),
"price_offered": FLOAT(1500.99),
"currency": CHOICE('0'->EUROS, '1'->DOLLARS, '2'->POUNDS),
"limit_time": DATETIME(7 attributes are being sent, https://docs.python.org/3/library/datetime.html, Attributes: year, month, day, hour, minute, second, microsecond), (2019,10,30,10,40,0,0)
}
Siendo dataScientist y offer las IDs
{
limit_date:2018,12,03,23,02,02,12
accepted_ds:True
accepted_company:True
expiration:30
dataScientist:1
offer:1
}
What you'll receive:
{"message": "Successfully created new contract"}
Para los filtros PE, AC,RE
{
userId:2
filtro:PE
}
What you'll receive:
[
{
"id": 1,
"title": "apply1",
"description": "wdwd",
"date": "2019-03-24T23:21:14Z",
"status": "PE",
"dataScientist_id": 1,
"offer_id": 1
}
]
No necesita parámetros, tan solo petición GET a la url
What you'll receive:
[
{
"id": 1,
"title": "offer1",
"description": "offer1",
"price_offered": 300,
"currency": "0",
"creation_date": "2019-03-24T17:42:05.983Z",
"limit_time": "2019-03-27T17:42:02Z"
}
]
{
"title": TEXT("test title"),
"description": TEXT("test description"),
"price_offered": FLOAT(1500.99),
"currency": CHOICE('0'->EUROS, '1'->DOLLARS, '2'->POUNDS),
"limit_time": DATETIME(7 attributes are being sent, https://docs.python.org/3/library/datetime.html, Attributes: year, month, day, hour, minute, second, microsecond), (2019,10,30,10,40,0,0)
}
Lo que devuelve es la lista de items completa del CV
{
userId:2
}
What you'll receive:
[
"[{\"model\": \"datame.item\", \"pk\": 2, \"fields\": {\"name\": \"item 2\", \"section\": 1, \"description\": \"item 2 description\", \"entity\": \"entity test\", \"date_start\": \"2018-03-25T11:15:17Z\", \"date_finish\": null}}, {\"model\": \"datame.item\", \"pk\": 1, \"fields\": {\"name\": \"item 1\", \"section\": 1, \"description\": \"item 1 description\", \"entity\": \"entity test\", \"date_start\": \"2018-03-05T23:00:41Z\", \"date_finish\": null}}]"
]
{
"quantity": FLOAT(1500.99),
"tax": FLOAT(200.99),
"total": FLOAT(1500.99),
"status": CHOICE('PE'->PENDING, 'AC'->ACCEPTED, 'RE'->REJECTED),
"contract": 1
}
What you'll receive:
{
"message": "Successfully created new bill"
}
There is no need to pass data, this petition will create a CV for the user that is logged at the moment the request is sent.
What you will recieve:
{
"message": "Successfully created new curriculum"
}
You will need to pass a field as shown below. The petition will create a section on the curriculum of the user that it is currently logged in, if it has one.
{
"name": TEXT("Sample")
}
What you will recieve:
{
"message": "Successfully created new section"
}