Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

...

For more details about creating and publishing an API, see Create and Publish an API.

Info

Do If you are using WSO2 ESB, do the following to avoid backend endpoint suspension per API.

  1. Go to <APIM_HOME>/repository/deployment/server/synapse-configs/default/api
  2. Open the configuration file of the API, that has to be prevented from being suspended. (e.g. admin--testApi_v1.0.0.xml)
  3. Add the following configurations

    Code Block
     <endpoint name="admin--testApi_APIproductionEndpoint_0">
     	<address uri="http://localhost:9000/services/SimpleStockQuoteService">
    		<timeout>
    			<duration>30000</duration>
    			<responseAction>fault</responseAction>
    		</timeout>
    		<suspendOnFailure>
    			<errorCodes>-1</errorCodes>
    			<initialDuration>0</initialDuration>
    			<progressionFactor>1.0</progressionFactor>
    			<maximumDuration>0</maximumDuration>
    		</suspendOnFailure>
    		<markForSuspension>
    			<errorCodes>-1</errorCodes>
    		</markForSuspension>
    	</address>
     </endpoint>