rest_api
command (shown in Step 4 below) to build the software dependencies—all of the libraries required for it to run—and encapsulate them so they are completely self-contained.8086
within your deployment, to make it available as a secure REST API endpoint in Anaconda Enterprise.
Follow this process to wrap your code with an API:
publish
function.
anaconda-project.yml
file:
anaconda-enterprise
channel is listed under channels:
and the anaconda-enterprise-web-publisher
package is listed under packages:
. For example:
http://localhost:8888/{function}
from within a notebook session you will see the results of your function.
From within a notebook session, execute the following command:
curl
:
-L
option tells curl to follow redirects. The -H
adds a header.
In this case -H
adds the token required to authorize the client to visit
that URL.
If you deploy the project as described above you can add the -X POST
option
to curl
to access that function.