Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericmeyer/mockslamapi


https://github.com/ericmeyer/mockslamapi

Last synced: 23 days ago
JSON representation

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