Thanks for the update Kang. I think you are facing CORS error, because you might have not setup CORS decorator before each and every entity ie Java Bean.
Maybe this could help. (To be added before each entity bean defined in the models folder) @CrossOrigin(origins = "*", allowedHeaders = "*") Ref : https://howtodoinjava.com/spring5/webmvc/spring-mvc-cors-configuration/ Thanks and Regards, *Cajetan Christopher Rodrigues* *B.E Computer Engineering* *[email protected] <[email protected]>* *Google Summer of code 2019* On Sat, Aug 3, 2019 at 8:47 PM Kang Breder <[email protected]> wrote: > > Hi Cajatan, > > Swagger has been integrated for the self service API. We are currently > using swagger-core and swagger-core annotations to generate the swagger > docs. > > The swagger UI has not yet been hosted on Tomcat. I am using python > SimpleHTTPServer for hosting. See the link below > http://localhost:8000/ > But right now calls can not yet be made from swagger UI itself. That is > one of issues i talked about during the meeting today. It may be CORS > problem or the UI will have to be hosted on Tomcat. I was wondering whether > CORS has been enabled on server side. May be you try testing too. > > > On Sat, Aug 3, 2019 at 3:49 PM Cajetan Rodrigues <[email protected]> > wrote: > >> Hi Kang, >> >> As you said in today's check-in, the self-service APIs have been >> integrated with swagger. >> >> It would be helpful if can provide the link for the same. Since there are >> ton of apis present on the fineract api doc which is documented as a static >> page. So it's not practical to copy-paste each and every request and check >> in postman. >> >> A faster way would be swagger where we can have hands-on the apis on the >> fly. >> >> I am not sure if Spring Boot or Spring MVC is being used at the moment. >> But if it's Spring Boot, the dependency does wonders. Just need to hook in >> the swagger config file, and it auto generates all the apis in the >> controllers created. >> It auto-scans it. >> >> Let me know what you think. :) >> >> Thanks and Regards, >> >> *Cajetan Christopher Rodrigues* >> *B.E Computer Engineering* >> *[email protected] <[email protected]>* >> *Google Summer of code 2019* >> Mifos-developer mailing list >> [email protected] >> Unsubscribe or change settings at: >> https://lists.sourceforge.net/lists/listinfo/mifos-developer > > Mifos-developer mailing list > [email protected] > Unsubscribe or change settings at: > https://lists.sourceforge.net/lists/listinfo/mifos-developer
