LearnQA API

Это тестовое API для наших курсов и вебинаров:

Узнать больше о курсах LearnQA

Open simple methods
Open user API

API-методы из этой вкладки не зависят от типа HTTP-запроса

GET This API call says hello by name you specify

Params:
@ name : string - Default "someone"

https://playground.learnqa.ru/api/hello
ANY This API call says what type of request it is

https://playground.learnqa.ru/api/check_type
GET This API call response with 500 code

https://playground.learnqa.ru/api/get_500
GET This API call response with 301 code and redirects to another page

https://playground.learnqa.ru/api/get_301
GET This API call response with 303 code and redirects to another page

https://playground.learnqa.ru/api/get_303
GET This API call redirects us multiple times

https://playground.learnqa.ru/api/long_redirect
GET Compare actual query type with the type from the parameter "method"

Params:
@ method : string - Specifies method

https://playground.learnqa.ru/api/compare_query_type
GET This API call returns some info in JSON format

https://playground.learnqa.ru/api/get_json
GET This API call returns some text in a plaint format

https://playground.learnqa.ru/api/get_text
GET This API call returns a cookie with the name "cookie"

https://playground.learnqa.ru/api/get_cookie
GET This API call returns a map of the API

Params:
@ type : string - "JSON | HTML". Default "HTML"

https://playground.learnqa.ru/api/map
GET This API call responds with 200 for GET and 404 for other methods

https://playground.learnqa.ru/api/method_get_only
POST This API call responds with 200 for POST and 404 for other methods

https://playground.learnqa.ru/api/method_post_only
POST This API call set auth cookie by login=secret_login and password=secret_pass

Params:
@ login : string
@ password : string

https://playground.learnqa.ru/api/get_auth_cookie
POST This API call returns text depends on has you auth cookie or not

https://playground.learnqa.ru/api/check_auth_cookie
GET Show all headers from the requests

https://playground.learnqa.ru/api/show_all_headers
GET This API call is only available for dev mode

https://playground.learnqa.ru/api/dev_method