Wiki

Clone wiki

ma3route-api-documentation / Registration

Home

#!https
POST /users

To register send a POST request to https://www.ma3route.com/findit-api/v2/json/users

The request body should be a json object with it's fields as in:

#!json
{
    "firstname":"?", 
    "middlename":"?",     
    "lastname":"?",
    "email":"?",
    "country":"?", 
    "alias":"?",     
}
* firstname a string value. Mandatory. * middlename a string value. Optional. * lastname a string value. Mandatory. * gender a string value. Optional. * email a string value. A valid email address for the user registering. e.g info@ma3route.com. Mandatory. * country a string value. A valid country. GET supported countries from https://www.ma3route.com/findit-api/v2/json/countries. Mandatory. * alias a string value. Optional.

Once you post, you will receive a response from the server, which is a JSON object that will indicate if you successfully posted the ad or if an error occurred. For now, we are not pointing to the exact cause of the error, this will be done in future enhancements.

Server response

#!json
{
   "meta":{      
   },
   "data":{
      "success":true,
      "message":"You successfully posted an update"
   }
}
OR

#!json
{
   "meta":{      
   },
   "data":{
      "success":false,
      "message":"Error! Check that you have all mandatory properties in the object. Avoid empty strings!"
   }
}

Updated