5 Replies Latest reply on Feb 26, 2020 8:39 PM by thatJeffSmith-Oracle

    Disable hyperlink generation in AutoREST feature

    Leandroide

      Hi guys, we were wondering if there is some workaround to disable hyperlinks generation in AutoRest Enabled objects?

       

      Maybe you are wondering WHY, just because we are consuming ORDS endpoints through Java applications, so we cannot map the response to our DAO, DTOs, etc, considering that responses come like this:

       

      {

           "items" : [

                     { "my_db_field" : "MyDB Value" },

                     { "my_db_field" : "MyDB Value" },

                     { "my_db_field" : "MyDB Value" },

                     ...

           ],

           "links" : [

                     {

                          "rel" : "self",

                          "href" : "URL"

                     },

                     {

                          "rel" : "edit",

                          "href" : "URL"

                     },

                         ...

           ]

       

      The bold part of the JSON response is what does not belong to our data model, causing most Java frameworks to fail mapping resources.

       

      Thanks in advance, and have a nice day!