Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
How to generate form and crud using Spring and React

I want to dynamically generate crud form based on my API.

I am using spring, spring-data-rest and spring-hateoas.

I don't wan't to render react from java.

I was thinking of tweaking /profile and add some meta informations for rendering my form.

Does anyone has an implementation recommandations for me ?

I have seens that some react projects that is similar with what I require client side, but it is not adapted for spring:

https://github.com/mozilla-services/react-jsonschema-form

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Spring Data Rest can return ALPS or JSON Schema, just change the Accept header:

Accept: application/schema+json
GET http://example.com/profile/foos

So, if you have an entity like:

@Entity
@AllArgsConstructor
@NoArgsConstructor
@Getter
public class Foo {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String owner;

    private String name;
}

You will get a response like:

{
  "title": "Foo",
  "properties": {
    "owner": {
      "title": "Owner",
      "readOnly": false,
      "type": "string"
    },
    "name": {
      "title": "Name",
      "readOnly": false,
      "type": "string"
    }
  },
  "definitions": {},
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema#"
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda