Public
Documentation Settings

TestMe TCM

API for performance testing and API testing

GETGet Token

http://127.0.0.1:8000/api/auth/token
Example Request
curl
curl --location 'http://127.0.0.1:8000/api/auth/token' \
--data ''
200 OK
Example Response
html
yom58EnblcnPK6GXrIwJ2pCP4XdLEb7lrhgvrxEzQerHME9gF9SUIZeQIgXYw2td
Date

Mon, 11 Oct 2021 18:06:16 GMT

Server

WSGIServer/0.2 CPython/3.10.0

Content-Type

text/html; charset=utf-8

X-Frame-Options

DENY

Vary

Cookie

Content-Length

64

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Set-Cookie

csrftoken=SCcNq0X3g02b7h50HETj2RccPpFETLRqLv6dJTerL2639PyjV5fuIrOdtIpRLCdi; expires=Mon, 10 Oct 2022 18:06:16 GMT; Max-Age=31449600; Path=/; SameSite=Lax

POSTLogin

http://127.0.0.1:8000/api/auth/login

After login csrf token must be copied from cookies and added as X-CSRFToken header to all further requests

Bodyraw (json)
json
{
    "username": "alice",
    "password": "Qamania123"
}
Example Request
curl
curl --location 'http://127.0.0.1:8000/api/auth/login' \
--data '{
    "username": "alice",
    "password": "Qamania123"
}'
200 OK
Example Response
No response body
This request doesn't return any response body
Date

Mon, 11 Oct 2021 18:08:05 GMT

Server

WSGIServer/0.2 CPython/3.10.0

Content-Type

text/html; charset=utf-8

X-Frame-Options

DENY

Vary

Cookie

Content-Length

0

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Set-Cookie

csrftoken=ImipuwJECiLYBORggyjdIW4R51PsCdgqhPGfs82KFtc3QGrgTugSrEJz4QHbjYJV; expires=Mon, 10 Oct 2022 18:08:05 GMT; Max-Age=31449600; Path=/; SameSite=Lax

Set-Cookie

sessionid=o7xrt7ihdpm21yvzvu1b8khn41guclxu; expires=Mon, 25 Oct 2021 18:08:05 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax

GETLogout

http://127.0.0.1:8000/api/auth/logout
Example Request
curl
curl --location 'http://127.0.0.1:8000/api/auth/logout'
200 OK
Example Response
No response body
This request doesn't return any response body
Date

Mon, 11 Oct 2021 18:12:51 GMT

Server

WSGIServer/0.2 CPython/3.10.0

Content-Type

text/html; charset=utf-8

X-Frame-Options

DENY

Content-Length

0

Vary

Cookie

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

Set-Cookie

sessionid=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; SameSite=Lax

GETList Test Cases

http://127.0.0.1:8000/api/tests
HEADERS
X-CSRFToken

zGS0DMVkyWQXcijPdAALP9ngBX16RbgMQCyEsogfgZms5Zd4vEqvFjtFfiVhW8oC

Example Request
curl
curl --location 'http://127.0.0.1:8000/api/tests' \
--header 'X-CSRFToken: zGS0DMVkyWQXcijPdAALP9ngBX16RbgMQCyEsogfgZms5Zd4vEqvFjtFfiVhW8oC' \
--data ''
200 OK
Example Response
json
{
  "page": 0,
  "size": 20,
  "total": 12,
  "tests": [
    {
      "id": 1,
      "name": "Successfull registration check",
      "description": "set \r\nuser like alice,\r\nemail like aaa@bbb.com,\r\npassword like Qamania123",
      "author": "alice",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 2,
      "name": "fail password registration check",
      "description": "set password qwerty",
      "author": "alice",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 3,
      "name": "fail empty form registration check",
      "description": "leave form empty",
      "author": "alice",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 4,
      "name": "successfull login check",
      "description": "test registered user can login",
      "author": "alice",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 5,
      "name": "Check Test Cases list",
      "description": "",
      "author": "bob",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 6,
      "name": "Check new test",
      "description": "",
      "author": "bob",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 7,
      "name": "Check update test",
      "description": "",
      "author": "bob",
      "status": "FAIL",
      "executor": "charlie"
    },
    {
      "id": 8,
      "name": "Check pass test",
      "description": "",
      "author": "bob",
      "status": "FAIL",
      "executor": "charlie"
    },
    {
      "id": 9,
      "name": "Check fail test",
      "description": "",
      "author": "bob",
      "status": "Norun",
      "executor": null
    },
    {
      "id": 10,
      "name": "Check delete test",
      "description": "",
      "author": "bob",
      "status": "Norun",
      "executor": null
    },
    {
      "id": 11,
      "name": "Check Desktop layout",
      "description": "1920:1080",
      "author": "charlie",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 12,
      "name": "Check iPhone viewport",
      "description": "390 x 844",
      "author": "charlie",
      "status": "Norun",
      "executor": null
    }
  ]
}
Date

Tue, 12 Oct 2021 08:26:57 GMT

Server

WSGIServer/0.2 CPython/3.10.0

Content-Type

application/json

X-Frame-Options

DENY

Content-Length

1675

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin

GETList Test Cases with params

http://127.0.0.1:8000/api/tests?page=1&size=5
HEADERS
X-CSRFToken

zGS0DMVkyWQXcijPdAALP9ngBX16RbgMQCyEsogfgZms5Zd4vEqvFjtFfiVhW8oC

PARAMS
page

1

size

5

Example Request
curl
curl --location 'http://127.0.0.1:8000/api/tests?page=1&size=5' \
--header 'X-CSRFToken: zGS0DMVkyWQXcijPdAALP9ngBX16RbgMQCyEsogfgZms5Zd4vEqvFjtFfiVhW8oC' \
--data ''
200 OK
Example Response
json
{
  "page": 1,
  "size": 5,
  "total": 12,
  "tests": [
    {
      "id": 6,
      "name": "Check new test",
      "description": "",
      "author": "bob",
      "status": "PASS",
      "executor": "charlie"
    },
    {
      "id": 7,
      "name": "Check update test",
      "description": "",
      "author": "bob",
      "status": "FAIL",
      "executor": "charlie"
    },
    {
      "id": 8,
      "name": "Check pass test",
      "description": "",
      "author": "bob",
      "status": "FAIL",
      "executor": "charlie"
    },
    {
      "id": 9,
      "name": "Check fail test",
      "description": "",
      "author": "bob",
      "status": "Norun",
      "executor": null
    },
    {
      "id": 10,
      "name": "Check delete test",
      "description": "",
      "author": "bob",
      "status": "Norun",
      "executor": null
    }
  ]
}
Date

Tue, 12 Oct 2021 08:31:02 GMT

Server

WSGIServer/0.2 CPython/3.10.0

Content-Type

application/json

X-Frame-Options

DENY

Content-Length

617

X-Content-Type-Options

nosniff

Referrer-Policy

same-origin