use of io.gravitee.rest.api.model.api.header.NewApiHeaderEntity in project gravitee-management-rest-api by gravitee-io.
the class ApiHeaderServiceImpl method initialize.
@Override
public void initialize(String environmentId) {
NewApiHeaderEntity h = new NewApiHeaderEntity();
h.setName("api.version");
h.setValue("${api.version}");
this.create(h, environmentId);
h.setName("api.owner");
h.setValue("${api.primaryOwner.displayName}");
this.create(h, environmentId);
h.setName("api.publishedAt");
h.setValue("${(api.deployedAt?date)!}");
this.create(h, environmentId);
}
Aggregations