https://github.com/itsthatguy/pleeb
https://github.com/itsthatguy/pleeb
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsthatguy/pleeb
- Owner: itsthatguy
- License: mit
- Created: 2017-03-28T18:26:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T18:45:57.000Z (about 9 years ago)
- Last Synced: 2025-10-12T23:35:22.221Z (8 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pleeb
### Sample mock files
```js
export default [
// simple request
{
route: '/default',
method: 'GET',
code: 200,
timeout: 1000,
response: () => {
return {
"data": {
"title": "My Awesome Test Mock, Dude!"
}
}
}
},
// request with dynamic response
{
route: '/default/{username}',
method: 'GET',
code: 200,
timeout: 1000,
response: (request) => {
return {
"data": {
"title": `My Awesome Test Mock, ${request.params.username}!`
}
}
}
}
];
```