Skip to content

yuuhikaze/github-actions-workflow

Repository files navigation

Github Actions Workflow

Tests

Run tests with:

python -m pytest # assumes you have pytest available on your system

Usage

Production

Test addition:

curl -X POST https://sd-api.yhkze.net/add \
  -H "Content-Type: application/json" \
  -d '{"a": 5, "b": 3}'

Expected response: {"result":8,"operation":"add"}

Test subtraction:

curl -X POST https://sd-api.yhkze.net/subtract \
  -H "Content-Type: application/json" \
  -d '{"a": 10, "b": 4}'

Expected response: {"result":6,"operation":"subtract"}

Test

Test multiplication:

curl -X POST https://sd-api-test.yhkze.net/multiply \
  -H "Content-Type: application/json" \
  -d '{"a": 6, "b": 7}'

Expected response: {"result":42,"operation":"multiply"}

Open swagger docs: https://sd-api-test.yhkze.net/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors