Collection Builder
Collection resource builder
Samples
import com.yamilovs.insomnia.exporter.model.*
import com.yamilovs.insomnia.exporter.model.Collection
import com.yamilovs.insomnia.exporter.model.request.FollowRedirect
import com.yamilovs.insomnia.exporter.model.request.Method
import com.yamilovs.insomnia.exporter.model.request.authentication.EmptyAuthentication
import com.yamilovs.insomnia.exporter.model.request.body.EmptyBody
import com.yamilovs.insomnia.exporter.model.request.header.Header
import com.yamilovs.insomnia.exporter.model.request.parameter.Parameter
import java.net.URL
fun main() {
//sampleStart
Collection.build {
// define workspace resource
workspace {
// Workspace resource DSL is available here
}
// define apiSpec resource
apiSpec {
// ApiSpec resource DSL is available here
}
// define baseEnvironment resource
baseEnvironment {
// BaseEnvironment resource DSL is available here
}
// add request group resource
requestGroup {
// RequestGroup resource DSL is available here
}
// add request resource
request {
// Request resource DSL is available here
}
}
//sampleEnd
}
Constructors
Functions
Link copied to clipboard
fun apiSpec(configure: ApiSpecBuilder.() -> Unit = {}): CollectionBuilder
Content copied to clipboard
Link copied to clipboard
fun baseEnvironment(configure: BaseEnvironmentBuilder.() -> Unit = {}): CollectionBuilder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestGroup(configure: RequestGroupBuilder.() -> Unit): CollectionBuilder
Content copied to clipboard
Link copied to clipboard
fun workspace(configure: WorkspaceBuilder.() -> Unit = {}): CollectionBuilder
Content copied to clipboard