@Override
    public List<MediaType> getContentTypes() {
        return List.of(MediaType.valueOf("application/yaml"), MediaType.valueOf("application/yml"));
    }
This is {@link RegisteredServiceYamlSerializer}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServiceYamlSerializer.java