WomenInSoftwareEngineeringJP / speak-her-db

Database of women speakers in Japan.
https://speakher.jp
MIT License
25 stars 25 forks source link

(Sub-PR) Add endpoints to fetch resources (Topics, Languages and Locations) #222

Closed tuttiq closed 3 years ago

tuttiq commented 3 years ago

Issue: https://github.com/WWCodeTokyo/speak-her-db/issues/224 This is a sub-PR to merged to #210 Rails Backend.

This PR implements the following changes:

Current available endpoints:

GET / (root)          => redirects to production site or shows the API routes on the browser if in dev mode
GET /topics           => responds with a JSON with the list of all topics
GET /locations        => responds with a JSON with the list of all locations, in ascending order by code
GET /spoken_languages => responds with a JSON with the list of all languages
tuttiq commented 3 years ago

@ann-kilzer This is ready for review