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

samplest.hello.primitive.PrimitiveResource.kt Maven / Gradle / Ivy

There is a newer version: 1.2.0-rc2
Show newest version
package samplest.hello.primitive

import restx.annotations.GET
import restx.annotations.RestxResource
import restx.factory.Component
import javax.inject.Named

@Component
@RestxResource
class PrimitiveResource(
    @Named("int") private val anInt: Int,
    @Named("intWhen") private val anIntWhen: Int,
    @Named("intAlternativeWhen") private val anIntAlternativeWhen: Int,
) {
    @GET("/primitive")
    fun primitive(): Int = anInt + anIntWhen + anIntAlternativeWhen
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy