I'm currently trying to run a test using the Apiary API like so:
$scope.createAsset = function () {
$http({
method: 'POST',
url: 'http://polls.apiblueprint.org/createStory',
headers: {'Access-Control-Allow-Origin': '*'}
});
}
Here's the information from Apiary:
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# TestAPI
TestAPI is designed for simple testing purposes.
## Create story [/createStory]
### Create story [POST]
+ Response 200 (application/json)
{
"Status": "Story created successfully",
"published_at": "2015-08-05T08:40:51.620Z",
"publisher": "John Smith"
}
Despite setting the allow-origin
, I'm still encountering an error.