Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 764 Bytes

04-test-cap-endpoint.md

File metadata and controls

26 lines (20 loc) · 764 Bytes

Deploy CAP API

To test the action on the deployed CAP API endpoint you can e.g. use the API Platform Postman.

  1. Create new POST request
  2. Enter the request URL <BASEURL>/ai/aiProxy
  3. Add the authorization details of your UAA instance for the type OAuth 2.0
  4. Specify a prompt as JSON payload in the Body, e.g.:
{
    "prompt": "Please tell me a joke about SAP technology!"
}
  1. Send the request and inspect the response with the generated text:

What did the SAP consultant say when asked to solve a problem? Answer: "Let me just SAP it up!"

{
    "@odata.context": "$metadata#AIService.GPTTextResponse",
    "text": "\n\nQ: What did the SAP consultant say when asked to solve a problem?\nA: \"Let me just SAP it up!\""
}