-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bus: custom URL params (queries) was added
- Loading branch information
1 parent
1fd89f6
commit 4ca8ed0
Showing
4 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
({ | ||
url: 'https://fakerapi.it', | ||
limits: [ | ||
{ calls: 10, per: '1m' }, | ||
{ calls: 10000, per: '1d' }, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
({ | ||
method: { | ||
get: 'api/v1/books', | ||
}, | ||
|
||
query: { | ||
prefix: '_', | ||
params: { | ||
quantity: '?number', | ||
}, | ||
}, | ||
|
||
returns: { | ||
status: 'string', | ||
code: 'number', | ||
total: 'number', | ||
data: { | ||
type: 'array', | ||
value: { | ||
id: 'number', | ||
title: 'string', | ||
author: 'string', | ||
genre: 'string', | ||
description: 'string', | ||
isbn: 'string', | ||
image: 'string', | ||
published: 'string', | ||
publisher: 'string', | ||
}, | ||
}, | ||
}, | ||
}); |