REST API - ALPS User Interface (Swagger Interface)

I am evaluating Spring Data REST at the moment and I really like it.

What I am missing is beautifully presented, interactive documentation, similar to the Swagger UI .

I know that Spring Data REST is not a static API and that there is a HAL Browser , but unfortunately the HAL browser does not show any document metadata about the corresponding URLs / GET / POST, etc.

Spring Data REST produces ALPS metadata (see here ).


Why is this necessary?
Well, that would be very useful for frontend developers and improve performance from my point of view. In addition, each type of automatic generated documentation saves a lot of time.


Shortly speaking:
Is there something like " Swagger Interface for ALPS / Hypermedia REST APIs "


Additional Information:
I already found a similar question that describes the problem, but I was not sure that it could be re-reared, so I created a new one. Maybe, meanwhile, there are possible solutions.

+5
source share
1 answer

Put this one in your addictions and smoke it:

<dependencies> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-rest-hal-browser</artifactId> </dependency> </dependencies> 

referenced by: / api / browser

I was just looking for the same thing today. ALPS is metadata, but SRD creates hal - all you need is something to navigate through the HAL data, and you're done.

+2
source

Source: https://habr.com/ru/post/1238499/


All Articles