Require accept header
rhofvendahl opened this issue · comments
Do we want VC API implementations to require Accept
headers in "create credential" requests, returning 400
status if the header isn't present? If yes, we'll want to update the spec with normative language and approve #606, which would add negative testing for this.
Another alternative is to NOT require an Accept
header, and return application/vc+ld+json
by default.
It was decided on today's trace call that it does not make sense to return an error if a request Accept header is missing. An error should be returned if a media-type requested by the client is not available, but if the header is absent then the server should just return the default value.