All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.codecentric.hikaku.SupportedFeatures.kt Maven / Gradle / Ivy

Go to download

A library that tests if the implementation of a REST-API meets its specification. This module contains the core elements which can be used to create additional converters and reporters.

There is a newer version: 3.3.0
Show newest version
package de.codecentric.hikaku

import de.codecentric.hikaku.converters.EndpointConverter

/**
 * A list of features supported by an [EndpointConverter].
 */
class SupportedFeatures(
    private val supportedFeatures: Set = emptySet()
) : Set by supportedFeatures {

    constructor(vararg feature: Feature): this(feature.toSet())

    enum class Feature {
        /** Checks the equality of query parameters. */
        QueryParameter,
        /** Checks the equality of path parameters. */
        PathParameter,
        /** Checks the equality of header parameters. */
        HeaderParameter,
        /** Checks supported media type of responses. */
        Produces,
        /** Checks supported media type of requests. */
        Consumes
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy