model

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package model defines the structures that represent the metadata returned by the Spring Initializr API. This metadata includes information about available Spring Boot versions, build tools, packaging options, programming languages, Java versions, and dependencies that can be used to configure a new Spring project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Type   string            `json:"type"`
	Values []DependencyGroup `json:"values"`
}

type DependencyGroup

type DependencyGroup struct {
	Name   string   `json:"name"`
	Values []Option `json:"values"`
}

type InitializrMetadata

type InitializrMetadata struct {
	Dependencies Dependencies    `json:"dependencies"`
	Type         SelectableValue `json:"type"`
	Packaging    SelectableValue `json:"packaging"`
	JavaVersion  SelectableValue `json:"javaVersion"`
	Language     SelectableValue `json:"language"`
	BootVersion  SelectableValue `json:"bootVersion"`
	GroupID      TextValue       `json:"groupId"`
	ArtifactID   TextValue       `json:"artifactId"`
	Version      TextValue       `json:"version"`
	Name         TextValue       `json:"name"`
	Description  TextValue       `json:"description"`
	PackageName  TextValue       `json:"packageName"`
}

type Option

type Option struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type SelectableValue

type SelectableValue struct {
	Default string   `json:"default"`
	Values  []Option `json:"values"`
}

type TextValue

type TextValue struct {
	Type    string `json:"type"`
	Default string `json:"default"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL