1. ccaih
  2. Untitled project
  3. ccav
  4. Issues
Issue #29 resolved

Add application/json for the raw / testapi

James Mills
created an issue

Basic logic:

  • If Request header contains Accept: application/json then output JSON.
  • Else If Request header contains Accept: */* output HTML.
  • Else If Request header contains `Accept: text/html output HTML.
  • Else Respond with 406 Not Acceptable

Comments (3)

  1. Log in to comment