42 lines
778 B
YAML
42 lines
778 B
YAML
info:
|
|
name: Login
|
|
type: http
|
|
seq: 5
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{baseUrl}}/auth/login"
|
|
body:
|
|
type: multipart-form
|
|
data:
|
|
- name: auth
|
|
type: text
|
|
value: admin@gmail.com
|
|
- name: password
|
|
type: text
|
|
value: "96969"
|
|
- name: package_name
|
|
type: text
|
|
value: com.approagency.meditation
|
|
- name: mobile
|
|
type: text
|
|
value: "09001234567"
|
|
disabled: true
|
|
- name: otp
|
|
type: text
|
|
value: "96969"
|
|
disabled: true
|
|
|
|
runtime:
|
|
scripts:
|
|
- type: after-response
|
|
code: "var jsonData = res.getBody();\r
|
|
|
|
pm.collectionVariables.set(\"token\", jsonData.token);"
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|