# REST: generate REST API with multiple response

**URL:** <https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332>\
**Category:** How To\
**Created:** [September 16, 2020, 7:52am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332 "2020-09-16T07:52:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LibAdri](https://avatars.discourse-cdn.com/v2/letter/l/e19b73/32.png) [@LibAdri](https://forums.visual-paradigm.com/u/LibAdri)\
**Post date:** [September 16, 2020, 7:52am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/1 "2020-09-16T07:52:38Z")

</div>

Hi,  
the generated doc of a REST service with multiple response scenarios apparently processes only the first scenario and discards the others. In the example shown in the following images I do not find any reference of link to the 404 scenario.  
Am I missing or doing something wrong?

 ![Immagine2](https://forums.visual-paradigm.com/uploads/default/original/2X/0/025570cd31a4c744f66f9887e71bde5de14848ef.png)  
 ![Immagine](https://forums.visual-paradigm.com/uploads/default/original/2X/e/e57c761a981f349eba224d47d952e56b49489232.png)

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [September 16, 2020, 9:01am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/2 "2020-09-16T09:01:31Z")

</div>

Hi LibAdri,

Thank you for your post. I have forwarded your case to our engineers to study. When there is any news, I will let you know.

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![LibAdri](https://avatars.discourse-cdn.com/v2/letter/l/e19b73/32.png) [@LibAdri](https://forums.visual-paradigm.com/u/LibAdri)\
**Post date:** [September 17, 2020, 1:45pm UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/3 "2020-09-17T13:45:20Z")

</div>

Thank you Jick!

---

<div class="post-metadata">

**Author:** ![LibAdri](https://avatars.discourse-cdn.com/v2/letter/l/e19b73/32.png) [@LibAdri](https://forums.visual-paradigm.com/u/LibAdri)\
**Post date:** [September 25, 2020, 9:40am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/4 "2020-09-25T09:40:08Z")

</div>

Any news about this behaviour?  
Perhaps it is a bug? To be posted into the bugs section?

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [September 28, 2020, 1:05am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/5 "2020-09-28T01:05:41Z")

</div>

Hi LibAdri,

Your case is still on the queue. I will post here when there is any update. Sorry to keep you waiting.

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [October 16, 2020, 5:21am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/6 "2020-10-16T05:21:29Z")

</div>

Hi LibAdri,

The issue associated with REST API document generation has been fixed. You can update to the latest patch build to obtain the fix. For details, please read:

> **[Update Visual Paradigm to Latest Patch - Visual Paradigm Know-how](https://knowhow.visual-paradigm.com/technical-support/update-to-patch/)**
>
> Upon receiving a problem report or request of enhancement, we do our best to make the necessary changes. You will then be suggested to update your Visual Paradigm installation to the patch release, in which the fix or enhancement has been made. In...

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![LibAdri](https://avatars.discourse-cdn.com/v2/letter/l/e19b73/32.png) [@LibAdri](https://forums.visual-paradigm.com/u/LibAdri)\
**Post date:** [October 20, 2020, 2:20pm UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/7 "2020-10-20T14:20:56Z")

</div>

Hi Jick,

thank you to developers and you for the patch.  
I have installed it and tested.  
It has been improved as it generates documentation for all responses having a class result.  
Unfortunately, it does still discard all empty responses like NOT FOUND and NO CONTENT which are not linked to any class result: for these cases no documentation is generated.

Moreover, it would be nice to get the UML related to a REST Service class automatically included into the API documentation. 🙂

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [October 21, 2020, 1:10am UTC](https://forums.visual-paradigm.com/t/rest-generate-rest-api-with-multiple-response/16332/8 "2020-10-21T01:10:56Z")

</div>

hi LibAdri,

Thanks for trying that out. I have just forwarded your feedback to our engineers to study. When there is any update, I will let you know.

Best regards,  
Jick Yeung
