2022-07-22 11:32:46 +00:00
|
|
|
id: api-codestats
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: CodeStats API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Automatic time tracking for programmers
|
2022-07-22 11:32:46 +00:00
|
|
|
reference:
|
|
|
|
- https://codestats.net/api-docs
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/codestats
|
2022-07-22 11:32:46 +00:00
|
|
|
tags: token-spray,codestats
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2022-07-22 11:32:46 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-07-22 11:32:46 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST https://codestats.net/api/my/pulses HTTP/1.1
|
|
|
|
Host: codestats.net
|
|
|
|
X-API-Token: {{token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"coded_at": "2016-04-24T01:43:56+12:00",
|
|
|
|
"xps": [
|
|
|
|
{"language": "C++", "xp": 15},
|
|
|
|
{"language": "Elixir", "xp": 30},
|
|
|
|
{"language": "EEx", "xp": 3}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"Great success!"'
|