Closed geocom closed 5 years ago
are you appending .json to the end of the url? e.g. https://api.myfastway.co.nz/api/contacts.json should be https://api.myfastway.co.nz/api/contacts
Thanks could have sworn I was getting 404 with just contacts and contacts.json but now it is working correctly with https://api.myfastway.co.nz/api/contacts
I'm having issues with adding a contact no matter what I send I get a 404
Below is the curl command I sent
curl -d "{\"displayName\": \"Geoff Evans\",\"contactName\": \"Geoff Evans\",\"phoneNumber\": \"aphonenumber\",\"email\": \"aemailaddress\",\"address\": {\"streetAddress\": \"astreetnumberandaddress\",\"additionalDetails\": \"\",\"locality\": \"Auckland\",\"stateOrProvince\": \"Avondale\",\"postalCode\": \"1026\",\"country\": \"New Zealand\" }}" https://api.myfastway.co.nz/api/contacts.json --verbose -H "Authorization: Bearer ...."
Gives the response
Am I missing something or is the routing broken server side?