You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

For this article, we will explain how to create an API capable of responding to HTTP requests. The coding within the API to prepare a valid response will be a topic for another another article (e.g., How do I create a resource?).

First, we need to run the HTTP Framework Setup form (e.g., EXEC NDW_HTTP_FRAMEWORK_SETUP from the System Monitor) and then click on the Resources menu to open the Resource Manager:

When creating an API you are either creating a new resource and defining one or more supported HTTP methods or you are adding new supported HTTP methods to an existing resource. We'll start by creating a new resource. For instance, let's plan on creating a customers resource with an endpoint of /api/customers. Since this resource is directly underneath our /api endpoint, we start by selecting the api resource item in the Resource Manager tree (which is already demonstrated in the above screenshot). We then click on the New Resource button and enter customers when prompted:

  • No labels