class Api::V1::AffiliatesController

Public Instance Methods

Staging URL

https://staging.elitmus.com

jobs() click to toggle source

Returns a list of available jobs

GET /api/v1/jobs

Example Response:

[
    {
        "id": 32158,                                # Unique ID of job
        "title": "Full stack developer (17)",       # Job Title
        "eventDetails": {                           # Event Details
            "dateTime": "2018-03-24T12:00:00+0530",
            "locations": [
                "Bangalore",
                "Delhi"
            ]
        },
        "salaryDetails": {                          # Details of salary begin offered
            "range": [
                482000.0,
                482000.0
            ],
            "currency": "INR"
        },
        "experienceDetails": {                     # Details of experience level required
            "range": [
                0,
                0
            ],
            "unit": "Months"
        },
        "hiringCompany": {                         # Details of the company hiring
            "name": "eLitmus Evaluation Pvt Ltd"
        },
        "applyUrl": "http://localhost:3001/jobs/32158-elitmus-evaluation-full-stack-developer-17-bangalore" # URL to apply
    } 
]
# File affiliates_controller.rb, line 71
def jobs
  @jobs = Job.api_public_jobs
  render 
end
ph_tests() click to toggle source

Returns a list of pH Tests

GET /api/v1/tests/ph_tests

Example Response:

[
    {
        "id": 4454,                                                # ID of the resource
        "location": {                                              # Location where the test will be conducted
            "city": "Bangalore",
            "state": "Karnataka"
        },
        "eventDateTime": "2017-10-09T10:00:00+0530",               # Date/time when the test will be conducted
        "lastDateTimeOfApplication": "2017-10-16T10:14:52+0530",   # Last date/time until which the system will accept applications
        "lastDateTimeOfPayment": "2017-10-16T10:14:52+0530",       # Last date/time until when payments for the test will be accepted
        "PriceDetails": {                                          # Price details of the test inclusive of taxes
            "price": 1003.0,
            "currency": "INR"
        },
        "applyUrl": "http://localhost:3001/tests_users/apply/4454" # URL for applying to the test
    }  
]
# File affiliates_controller.rb, line 27
def ph_tests
  @litmustests = Litmustest.api_public_tests
                    render
end