Annotation Interface Http.Consumes
- Enclosing class:
Http
What media type(s) an endpoint or method can consume.
When declared on an endpoint type, the media types are used as defaults for endpoint methods that accept a request entity. An annotation declared on a method replaces the endpoint type defaults for that method; an empty method annotation clears them.
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] valueMedia types acceptable by this endpoint or method.- Returns:
- consumed media types, such as
application/json
-