Securizing API's unset fields
Hard coding link to root directory

Otherwise, created bugs while running getapi.php from another directory.