Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericmeyer/mockslamapi
https://github.com/ericmeyer/mockslamapi
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericmeyer/mockslamapi
- Owner: ericmeyer
- Created: 2015-03-12T01:31:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-28T21:19:17.000Z (about 9 years ago)
- Last Synced: 2024-10-04T22:21:21.772Z (about 1 month ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mock Slam API
This is a mock version of [SlamAPI](https://github.com/ericmeyer/SlamAPI) implemented in Sinatra.
## Purpose
Fast development!
More specifically, it is useful for:
* Mocking out an endpoint before it exists.
* Quickly changing an endpoint's response while your are actively developing a new feature against the endpoint.
* Eventually, high level testing that makes real HTTP requests, albeit against a mock server.## Setup/Use
1. `bundle install`
2. `ruby server.rb`
3. `open http://localhost:4567/current_queue`## Endpoints
HTTP Method | Endpoint | Description
----------- | -------- | -----------
GET | /current_queue | Fetch the list of matches in the queue