mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-22 20:13:44 +08:00
Harmonize metadata term
This commit is contained in:
@@ -27,7 +27,7 @@ import io.spring.initializr.metadata.DependencyMetadata
|
||||
interface DependencyMetadataJsonMapper {
|
||||
|
||||
/**
|
||||
* Write a json representation of the specified meta-data.
|
||||
* Write a json representation of the specified metadata.
|
||||
*/
|
||||
String write(DependencyMetadata metadata);
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import io.spring.initializr.metadata.DependencyMetadata
|
||||
import io.spring.initializr.metadata.Repository
|
||||
|
||||
/**
|
||||
* A {@link DependencyMetadataJsonMapper} handling the meta-data format for v2.1.
|
||||
* A {@link DependencyMetadataJsonMapper} handling the metadata format for v2.1.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 1.0
|
||||
|
@@ -27,7 +27,7 @@ import io.spring.initializr.metadata.InitializrMetadata
|
||||
interface InitializrMetadataJsonMapper {
|
||||
|
||||
/**
|
||||
* Write a json representation of the specified meta-data.
|
||||
* Write a json representation of the specified metadata.
|
||||
*/
|
||||
String write(InitializrMetadata metadata, String appUrl);
|
||||
|
||||
|
@@ -21,7 +21,7 @@ import org.springframework.hateoas.TemplateVariables
|
||||
import org.springframework.hateoas.UriTemplate
|
||||
|
||||
/**
|
||||
* A {@link InitializrMetadataJsonMapper} handling the meta-data format for v2.1
|
||||
* A {@link InitializrMetadataJsonMapper} handling the metadata format for v2.1
|
||||
* <p>
|
||||
* Version 2.1 brings the 'versionRange' attribute for a dependency to restrict
|
||||
* the Spring Boot versions that can be used against it. That version also adds
|
||||
|
@@ -25,7 +25,7 @@ import org.springframework.hateoas.TemplateVariables
|
||||
import org.springframework.hateoas.UriTemplate
|
||||
|
||||
/**
|
||||
* A {@link InitializrMetadataJsonMapper} handling the meta-data format for v2.
|
||||
* A {@link InitializrMetadataJsonMapper} handling the metadata format for v2.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 1.0
|
||||
|
@@ -19,7 +19,7 @@ package io.spring.initializr.web.mapper
|
||||
import org.springframework.http.MediaType
|
||||
|
||||
/**
|
||||
* Define the supported meta-data version.
|
||||
* Define the supported metadata version.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 1.0
|
||||
@@ -34,7 +34,7 @@ enum InitializrMetadataVersion {
|
||||
/**
|
||||
* Add 'versionRange' attribute to any dependency to specify which
|
||||
* Spring Boot versions are compatible with it. Also provide a
|
||||
* separate 'dependencies' endpoint to query dependencies meta-data.
|
||||
* separate 'dependencies' endpoint to query dependencies metadata.
|
||||
*/
|
||||
V2_1('application/vnd.initializr.v2.1+json')
|
||||
|
||||
|
Reference in New Issue
Block a user