-
Notifications
You must be signed in to change notification settings - Fork 135
External Rest
Keith Sterling edited this page Sep 9, 2019
·
2 revisions
This is the most generic of external services but allows you to call any REST service that exposes a GET or POST compliatn RESTful service.
In terms of configuration, class name does not need to be changed. The user just needs to specify the method type GET or POST, the host and port the endpoint is exposed on and the details of the endpoint url. The GenericRESTService takes care of the rest. Taking the string of words contained as children of the node and returning the result of the call to the service as a string of words.
services:
myservice:
classname: programy.services.rest.GenericRESTService
method: GET
host: 0.0.0.0
port:8080
url:/api/rest/v1.0/ask
<category>
<pattern>ASKOTHERSERVICE *</pattern>
<template>
<sraix service="myservice"><star /></sraix>
</template>
</category>
Email: [email protected] | Twitter: @keiffster | Facebook: keith.sterling | LinkedIn: keithsterling | My Blog
- Home
- Background
- Guiding Principles
- Reporting an Issue
- Installation
- You And Your Bot
- Bots
- Clients
- Configuration
- AIML
- Sentence Splitting
- Natural Langauge Processing
- Normalization
- Spelling
- Sentiment Analysis
- Translation
- Security
- Hot Reload
- Logging
- Out of Band
- Multi Language
- RDF Support
- Rich Media
- Asynchronous Events
- Triggers
- External Services
- Dynamic Sets, Maps & Vars
- Extensions
- Pre & Post Processors
- Custom Nodes
- The Brain Tree
- Utilities
- Building It Yourself
- Creating Your Own Bot
- Contributing
- Performance Testing
- FAQ
- History
- Website