alexandrialibrary / alexandria-frontend

This is a test repo that may potentially be the frontend of Alexandria
MIT License
2 stars 0 forks source link

Generate mock Alexandria API for front-end dev from Swagger #7

Open hawkw opened 9 years ago

hawkw commented 9 years ago

I believe apistudio.io can generate a mock server for a REST API when given that API's Swagger spec (thanks to @dibyom for telling me about this).

If we can get that working, it would be much less work than manually setting up a mock API on Firebase, as @redbassett has currently been doing. I would like to use the swagger.json generated by the server rather than the spec Swagger, because that way, we'll know the mock routes are accurate to what the server actually provides.

hawkw commented 9 years ago

Okay, mocks of all our API routes now exist on http://playground.apistudio.io/try/0777f0be-3679-4a80-a445-52c7ce34f0c5/

hawkw commented 9 years ago

This should be closeable; we might want to leave it open until we're actually using the mock API.