SchemaContract.DefinitionStages.WithContentType Interface
public static interface SchemaContract.DefinitionStages.WithContentType
The stage of the SchemaContract definition allowing to specify contentType.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withContentType(String contentType)
Specifies the content |
Method Details
withContentType
public abstract SchemaContract.DefinitionStages.WithCreate withContentType(String contentType)
Specifies the contentType property: Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`..
Parameters:
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
</br> - WSDL
Schema use
application/vnd.ms-azure-apim.xsd+xml
</br> - OpenApi
Schema use
application/vnd.oai.openapi.components+json
</br> - WADL Schema
use
application/vnd.ms-azure-apim.wadl.grammars+xml
.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for