Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Using swagger to generate json/YAML file during aem project build

Avatar

Level 2

Hi All,

I am new to AEM development so I don't have much idea on AEM.

I am doing a POC to check whether can we generate JSON file using swagger during maven build or any alternative.

We have a rest API service provided by my client to perform crud operations so we plan to do POC whether we can use swagger to generate JSON/YAML automatically during AEM project build or any alternative to it. (using swagger).

I have checked various sources in the internet but i came to a dead end all the time so if you could can you please guide me on this.

a use case or a URL where I can see the basics of it would be a great help

this is for AEM forms

regards,

Bhavya

1 Accepted Solution

Avatar

Correct answer by
Level 9

If you have the REST api you. An define the api using the swagger editor that  can be found online

AEM forms supports swagger 2.0

 

View solution in original post

5 Replies

Avatar

Correct answer by
Level 9

If you have the REST api you. An define the api using the swagger editor that  can be found online

AEM forms supports swagger 2.0

 

Avatar

Level 2
hi Girish thank you for your reply you mean i create a open API spec then convert to json or yaml and use this in form data model?

Avatar

Level 2
i will try see the example based on your response