Skip to content

Commit

Permalink
Create api-postman.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SySafarila committed Dec 16, 2023
1 parent 0d29baa commit da17669
Showing 1 changed file with 136 additions and 0 deletions.
136 changes: 136 additions & 0 deletions api-postman.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"info": {
"_postman_id": "a34bb7db-8043-4379-9467-a5a60cfdfaf8",
"name": "whatsapp-gateway",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "10726227"
},
"item": [
{
"name": "Root Index",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000"
}
},
"response": []
},
{
"name": "Logout",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/logout",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"logout"
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"login"
]
}
},
"response": []
},
{
"name": "Send Message",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"phone_number\": \"6282117xxxxxx\",\r\n \"message\": \"Hello world!\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/send-message",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"send-message"
]
}
},
"response": []
}
]
}

0 comments on commit da17669

Please sign in to comment.