2021-11-02 11:12:45 +00:00
|
|
|
id: api-micro-user-service
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Micro User Service API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: User management and authentication
|
2021-11-02 11:12:45 +00:00
|
|
|
reference:
|
|
|
|
- https://m3o.com/user
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/micro-user-service
|
2021-11-02 11:12:45 +00:00
|
|
|
tags: token-spray,micro-user-service
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
2021-11-03 05:57:19 +00:00
|
|
|
POST https://api.m3o.com/v1/user/Read HTTP/1.1
|
2021-11-02 11:12:45 +00:00
|
|
|
Host: api.m3o.com
|
|
|
|
Content-Type: application/json
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
Content-Length: 21
|
|
|
|
|
|
|
|
{
|
|
|
|
"id": "usrid-1"
|
|
|
|
}
|
2021-11-03 05:57:19 +00:00
|
|
|
|
2021-11-02 11:12:45 +00:00
|
|
|
matchers:
|
2021-11-02 11:24:31 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"username":'
|
|
|
|
- '"email":'
|
|
|
|
- '"created":'
|
|
|
|
- '"updated":'
|
|
|
|
condition: and
|