API call

API call refers to the process of requesting a specific action from the Cocktail server.

API call

Set the Authorization header with the previously issued token

## CURL Command Sample
curl -X POST http://${API-GATEWAY}/api/pl/list/service/2 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [token]
  1. curl -X POST http://${API-GATEWAY}/api/pl/list/service/2 \
    • ${API-GATEWAY} : Enter the domain or IP:port information to access the API gateway.

  2. -H 'Content-Type: application/json' \
  3. -H 'Authorization: Bearer [token]
    • [token] : Enter "Bearer" followed by a space, then paste the issued token.

Last updated