ElixirTeSS / TeSS

Training e-Support Service using Ruby on Rails.
Other
12 stars 12 forks source link

Strip `.json` extension from URLs returned from API endpoints #998

Closed fbacall closed 2 months ago

fbacall commented 2 months ago

Summary of changes

Motivation and context

Because these are used in various autocompleters (e.g. when adding a material to a collection), and can end up taking a web user to a JSON page.

API clients can get JSON using the Accept header.

Checklist