https://github.com/fflch/alertas
https://github.com/fflch/alertas
hacktoberfest
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fflch/alertas
- Owner: fflch
- Created: 2021-06-20T19:06:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T13:09:06.000Z (over 1 year ago)
- Last Synced: 2024-11-15T13:10:42.377Z (over 1 year ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 193 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sistema de Alertas
Exemplo de request para mudar status do ping:
curl --include --header "Authorization: 123" \
-X POST -H "Content-Type: application/json" --data \
'{"ping_status": "Up","ip": "8.8.1.1","ping_date": "2021-06-20"}' \
http://127.0.0.1:8000/api/ping/
curl --include --header "Authorization: 123" \
-s -d "ping_status=Up&ip=8.8.1.1&ping_date=2021-06-20" \
-X POST http://127.0.0.1:8000/api/ping/