Create

  • Path
/job/create
  • Type
POST

Schemas

Request

{
  "type": "object",
  "properties": {
    "job": {
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "distance": {
          "type": "number",
          "description": "The search radius in kilometers"
        },
        "price": {
          "type": "number"
        },
        "location": {
          "type": "object",
          "properties": {
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "accuracy": {
              "type": "number"
            }
          },
          "required": [
            "latitude",
            "longitude",
            "accuracy"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "title",
        "description",
        "distance",
        "price",
        "location"
      ],
      "additionalProperties": false
    },
    "token": {
      "type": "string",
      "description": "Nido's token"
    }
  },
  "required": [
    "job",
    "token"
  ],
  "additionalProperties": false
}

Response

{
  "type": "object",
  "properties": {
    "status": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "additionalProperties": false
    },
    "job_id": {
      "type": "number"
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}

Rules

  • This service will be called by the Nido, it will post a new job in the platform and the service should look for potential candidates for the job
  • The service will notfiy the client about the matches after 2 min since the job creation
  • The service will notify the client everytime a new dodo is found after notifying the initial list of candidates