ujh/fountainpencompanion

Move JSON API endpoints

ujh opened this issue · 1 comments

ujh commented

To make them easier to find, let's move all JSON API endpoints from wherever they to /api/v1.

Benefits:

  • Using rails routes it will be easy to see what's there
  • Clean up of specialized endpoints (e.g. /accounts.json comes to mind)
ujh commented

/api/v1/inks, /api/v1/lines, and /api/v1/brands` probably don't make sense as separate endpoints. All their requirements could be merged into one general ink search endpoint.