Get Job Basket
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
Getting a job basket
Request with tokens
Instead of a specific job id, one can also append the /basket endpoint to /jobs. Via such a GET–/jobs/basket-request, one can access the current job basket:
1 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/jobs/basket?channel={channel}&cookie={cookie}" |
with TOKEN being either a client access token or a user access token. {channel} corresponds to the desired channel of the jobboard. {cookie} must be set to the client’s cookie ID as one would expect, since information about the basket must be extracted from somewhere.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 |
curl -i -u "{clientId}:"-H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/jobs/basket?channel={channel}&cookie={cookie}"" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
– none –
Query parameters
Name | Description | Data Type |
---|---|---|
channel | The ID of the desired channel. Can be obtained via /jobboards. | String |
cookie | The client’s cookie ID. See also this page. | String |
Response values
Upon | Returned value | Description |
---|---|---|
success | JSON-encoded JobSearchResult-object | The desired job basket. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |
Example return value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
{ "itemsPerPage": 2147483647, "numPages": 1, "offset": 0, "actualPage": 1, "firstPostingOnPage": 1, "lastPostingOnPage": 2, "totalNumberOfJobs": 2, "results": [ { "jobPostingId": 3135, "postingVersionId": 14710, "title": "Restaurantleiter", "applyOnlineLink": "https://jobdb-tc.softgarden.de/jobdb/public/jobposting/applyonline/click?jp=3135&ADP", "config": { "ProjectNumber": ["514"], "audience": ["00005"], "location": ["a9349afdc0a8011901dfba64a7280766"], "softgardenvisibility": ["visible"], "listingStartDate": ["1358809200000"], "internalPostingName": ["Restaurantleiter"], "jobcategory": ["d4d2f9707f0000022fc38d23ef0f1138"], "ProjectCompanyNameGerman": [""] }, "jobStartDate": 1373027040420, "postingVersionStartDate": 1358809200000, "postingVersionEndDate": 0 }, { "jobPostingId": 3222, "postingVersionId": 14722, "title": "Koch", "applyOnlineLink": "https://jobdb-tc.softgarden.de/jobdb/public/jobposting/applyonline/click?jp=3222&ADP", "config": { "ProjectLocation": ["4800067"], "ProjectNumber": ["662"], "audience": ["00006"], "ProjectLocationGerman": ["Saarbrücken"], "location": ["4800067"], "softgardenvisibility": ["visible"], "listingStartDate": ["1365372000000"], "internalPostingName": ["Koch"], "jobcategory": ["d4d2f9707f0000022fc38d23ef0f1138"], "ProjectCompanyNameGerman": ["softgarden GmbH"] }, "jobStartDate": 1373025872606, "postingVersionStartDate": 1365372000000, "postingVersionEndDate": 0 } ] } |