Next generation platform for building and using REST APIs.
Questions tagged [apiary]
136 questions
0
votes
1 answer
apiary commend line tools responds with 503
I am using command line apiary tool (offline), to generate the documentation in HTML format. Occasionally I have seen this error "Apiary service responded with an error: 503 Service Unavailable". My question are
what does this error mean.
Does this…
user4735786
- 1
- 2
0
votes
1 answer
How to response for wrong passed parameter in Apiary?
I saw the following Action section inside of Apiary blueprint examples. I want to response with HTTP status 404 when the user passes a wrong parameter. for example when the user passes /questions/xyz instead of /questions/1.
As you can see we…
MJBZA
- 3,579
- 4
- 34
- 67
0
votes
1 answer
Apiary - email parameter in URI definition, stopped working recently
In the last month or so, our Apiary API has broken. This is a major concern for us as our build keeps failing.
It seems to be something to do with parameters in our URI definition, requiring URL encoding.
E.g. for:
GET…
khriskooper
- 737
- 7
- 18
0
votes
1 answer
Creating Multiple Transactions based on Request
I'm mocking out a soap webservice and I can only get the default first response to return regardless of the request body.
I'm basing my attempts off the docs Multiple Transaction Examples and I'm confused as to what I'm doing wrong.
As an…
user919388347489103
- 21
- 3
0
votes
1 answer
Apiary.io invalid JSON Body
Here is my invalid JSON Body Error on Apiary.io? What went wrong?
My Request is like that:
var body = {
//JSON stuff..
};
$.ajax({
url : 'URL',
type : 'POST',
data : body,
async: false,
dataType : 'json',
success : function (data) {
…
JohnWalker891212
- 5
- 3
0
votes
1 answer
Apiary Invalid Header
Im trying to send a request to the apiary API and the header is always invalid. The API expect charset as 'utf-8' which is correctly set in the code. At the inspector of the api website you can see that the request hast set charset as UTF-8... Why…
JohnWalker891212
- 5
- 3
0
votes
1 answer
How can I get multiple %-encoded parameters into an apiary URI template?
The ApiaryIO spec—actually the RFC to which it points—indicates that you cannot use "." in a parameter name, you need to encode it to "%2E". That's fine, but there seems to be a bug where Apiary can only handle one such encoding. For example, the…
Jason Vertrees
- 1
- 1
0
votes
1 answer
Can Apiary disallow or reroute POSTs so data isn't created on production?
I am adding some POST and PUT routes in my docs on Apiary. If the reader tries testing these routes in the example portion of Apiary.io site they may end up creating bad data on our production server since the URI points right to it.
Aside from…
Jason Vertrees
- 1
- 1
0
votes
1 answer
How to write a random parameter of request url in Apiary
I have a request url with a parameter which is random in nature example : /abc/jhdidjkljd/123
the number keeps changing .
I am searching a way to write the parameter in such a way that i can mock the target .
madhurika
- 191
- 1
- 8
0
votes
1 answer
Apiary io mixing up json from iOS
I am trying to send a simple json object from iOS to apiary server. I printout my json object after creating it and everything looks good. But apiary is showing everything mixed up. If I have only one item, then it looks fine.
Here I create the…
billy
- 157
- 1
- 12
0
votes
1 answer
How to add value description with API Blueprint?
Is there any way to add a description to possible values of URI parameter?
## Search Items [/items{?s}]
### Get items [GET]
+ Parameters
+ s (optional, values) ... Sort results by
+ Values
+ `1 - price`
+ `4 -…
LA_
- 18,018
- 53
- 160
- 288
0
votes
1 answer
Can sole resources be added to the table of contents?
This
FORMAT: 1A
HOST: something.com
# Something API
# Group Something
Foobar description
## Some Route [/routeroute]
Foobar description
### Some HTML Action [GET]
+ Response 200 (text/plain)
# Group Something 2
Foobar description…
Meredith
- 2,617
- 3
- 26
- 55
0
votes
1 answer
Return an image from an Apiary call
How do I return an image from an apiary call?
## first image [/image/369]
### Complete [GET]
+ Response 200 (image/png)
xxxxxxxx
Greg Pagendam-Turner
- 1,826
- 3
- 24
- 43
0
votes
1 answer
Why does Apiary.io call take so long under Chrome
I've got a jsfiddle: http://jsfiddle.net/netroworx/3ea5a/
Html is:
Javascript is:
function AjaxCtrl($scope, $http) {
$scope.result = "ABC";
$scope.data = { "title":…
{{result}}
Greg Pagendam-Turner
- 1,826
- 3
- 24
- 43
-1
votes
1 answer
Dredd (gavel) : Begin a Json Schema with an array (bug ?)
I am using Markdown for Generate documentation (aglio), generate mocks (api-mock) and check the integrity constraints (dredd).
With Dredd, no problem for check an object, no problem for PUT or POST, but I have a problem with lists.
My lists are…
Stéphane Pessin
- 79
- 3