Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An API endpoint provides a way for a client to access your application, such as GET <SERVER_ADDRESS>/api/users/query and access the application's models and/or custom code blocks to return data back to the client application. To create API endpoints, see the Arrow.API API reference or follow the Generate endpoints instructions in this topic. For reference information on flow orchestration, refer to Flow Orchestration.

Import endpoints

Note

A Swagger API endpoint definition file (swagger.json) can only be imported once. If you attempt to import a Swagger file for the same API endpoint definition, you will receive a server error message.

...

  1. Select the API Doc & Test tab.
  2. Click the + API button on the right side. The Import API Definition page is displayed.
  3. Select a file from your local filesystem or enter a URL. A file can be selected by browsing or dragging and dropping it. The selected file must be a Swagger formatted JSON file. To export an API endpoint as a swagger.json file, refer to the Export endpoints section. Once a file is selected or a URL entered, the API summary review page is displayed.
  4. Click the Save button on the right to import and save the selected API endpoint. Click the Save and mock button to save and mock the selected API endpoint. You can mock imported APIs to get early feedback from your API consumers and reduce your overall time-to-market. Click the Cancel button to cancel the import of the selected API endpoint. When the Save button or the Save and mock button is clicked, the server will restart. Once the server restart is completed, the imported API endpoints will be displayed on the APIs List page. The imported API endpoints will be disabled and each will have a Create Flow and Delete icons. To create the API endpoint flows, refer to the Create flows instructions in Manage Flows.

...

  1. Select the Models tab.
  2. Click the Tool icon.
  3. Select Generate endpoints. The Endpoint generate caution window is displayed.
  4. Select Proceed to generate the model endpoint flows. Select Cancel endpoint generation to return to the Models tab.
  5. If Proceed is selected, the new endpoints will be generated and the server will be restarted. Once the endpoints are generated, the Endpoint generate success window is displayed
  6. To view and manage the Endpoints, select Go to API details. The method, path, nickname, description, and status (enabled, disabled, or error) of each generated endpoint is provided on the APIs List page. Additionally, Flow and Delete   icons are icons are provided for each Endpoint.

...