Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Nächste Überarbeitung Beide Seiten der Revision | ||
dapnetapisendrubricl [2022/01/30 13:19] dj7lc |
dapnetapisendrubricl [2022/01/30 13:20] dj7lc [Example for curl from linux console] |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
<code> | <code> | ||
- | curl -H "Content-Type: application/json" -X POST -u yourcallsign:yourpassword -d '{ "text": "this is the message", "callSignNames": ["destinationcallsign"], "transmitterGroupNames": ["txgroup"], "emergency": false }' http://dapnet.db0sda.ampr.org:8080/calls | + | curl -H "Content-Type: application/json" -X POST -u yourcallsign:yourpassword -d '{ "rubricName": "rubric", "text": "this is the message" }' http://dapnet.db0sda.ampr.org:8080/news |
</code> | </code> | ||