public void customise(OpenAPI openAPI, ResourceMappings mappings, PersistentEntities persistentEntities) {

		for (PersistentEntity<?, ? extends PersistentProperty<?>> persistentEntity : persistentEntities) {
			TypeInformation<?> typeInformation = persistentEntity.getTypeInformation();
			Class domainType = typeInformation.getType();
			ResourceMetadata resourceMetadata = mappings.getMetadataFor(domainType);
			final PersistentEntity<?, ?> entity = persistentEntities.getRequiredPersistentEntity(domainType);
			EntityInfo entityInfo = new EntityInfo();
			entityInfo.setDomainType(domainType);
			List<String> ignoredFields = getIgnoredFields(resourceMetadata, entity);
			if (!repositoryRestConfiguration.isIdExposedFor(entity.getType()))
				entityInfo.setIgnoredFields(ignoredFields);
			List<String> associationsFields = getAssociationsFields(resourceMetadata, entity);
			entityInfo.setAssociationsFields(associationsFields);
			entityInoMap.put(domainType.getSimpleName(), entityInfo);
		}

		openAPI.getPaths().entrySet().stream()
				.forEach(stringPathItemEntry -> {
					PathItem pathItem = stringPathItemEntry.getValue();
					pathItem.readOperations().forEach(operation -> {
						boolean openapi31 = SpecVersion.V31 == openAPI.getSpecVersion();
						RequestBody requestBody = operation.getRequestBody();
						updateRequestBody(openAPI, requestBody, openapi31);
						ApiResponses apiResponses = operation.getResponses();
						apiResponses.forEach((code, apiResponse) -> updateApiResponse(openAPI, openAPI.getComponents(), apiResponse, openapi31));

					});
				});
	}
Customise.

@param openAPI            the open api
@param mappings           the mappings
@param persistentEntities the persistent entities
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocDataRestUtils.java