Can a API response be sent without a request

Velmurugan D

    Hi Team,

    Need few clarifications in regards to ORDS API services

     

    1. Can attachments be sent as a API response
    2. Can a API response be sent without a request.   As for few of the requests it is going to be subscription based .  So they will provide us with the onetime request and based on the which the response has to be triggered at certain frequency
    3. Header and Body to be encrypted (Https)

     

    Regards

    Ramesh

      • 1. Re: Can a API response be sent without a request
        EJ-Egyed

        Hi Ramesh,

         

        To answer your questions:

         

        1. BLOBs can be returned as the response to an API call.  If by attachments you mean images or binary files, then yes they can be returned.
        2. A response can not be sent without request. That violates basic REST principles. What you can do is once you receive the onetime request from them, create scheduled jobs that run at the desired frequency (or store that information in a table somewhere), then you would submit the request with whatever information you need to provide, and let the outside system respond with a 200 OK to let you know they received the information.
        3. Yes HTTPS can be configured, but that work is done on Tomcat or WebLogic, not within ORDS.  If you are running ORDS in standalone mode, then you will have to set that up using the Jetty configuration.
        • 2. Re: Can a API response be sent without a request
          Velmurugan D

          Thanks

           

          1. BLOBs can be returned as the response to an API call.  If by attachments you mean images or binary files, then yes they can be returned.

          Clarification:

          We need send multiple PDF attachments files in the API response as a return is this possible over ORDS api services

          • 3. Re: Can a API response be sent without a request
            EJ-Egyed

            Yes, multiple BLOBs can be returned in a response

            • 4. Re: Can a API response be sent without a request
              BabuRamesh

              Thanks for the response.

               

              Can the below solution can be implemented as ORDS API?  OR Any File to file transfer will work,Please advice

              ------------------------------------

              A response can not be sent without request. That violates basic REST principles. What you can do is once you receive the onetime request from them, create scheduled jobs that run at the desired frequency (or store that information in a table somewhere), then you would submit the request with whatever information you need to provide, and let the outside system respond with a 200 OK to let you know they received the information.

              ---------------------------------------

               

               

              • 5. Re: Can a API response be sent without a request
                BabuRamesh

                Hi

                 

                Please suggest why we need to use ORDS with APEX option.

                 

                It it mandatory?

                 

                If we can proceed with without APEX/With APEX what are the PRONS and CONS

                 

                Regards

                Ramesh