Files
api-approagency/Auth/Login.yml
T
2026-06-06 21:21:52 +03:30

42 lines
779 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: "969699"
- 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