Skip to content

amin-basiri/apisix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Separated APIs

Call Add

curl -i -X POST "http://127.0.0.1:9080/add_number" -H "Host: example.com" -d '{"number": "9911339329"}' -H 'Content-Type: application/json'

Call Add Batch

curl -i -X POST "http://127.0.0.1:9080/add_number_batch" -H "Host: example.com" -d '09011337323,09011337324,09011337325' -H 'Content-Type: application/json'

Call Add File

curl -i -X POST "http://127.0.0.1:9080/add_number_file" -H "Host: example.com" -F [email protected] 

Call Del

curl -i -X POST "http://127.0.0.1:9080/del_number" -H "Host: example.com" -d '{"number": "9911339329"}' -H 'Content-Type: application/json'

Call Del Batch

curl -i -X POST "http://127.0.0.1:9080/del_number_batch" -H "Host: example.com" -d '09011337323,09011337324,09011337325' -H 'Content-Type: application/json'

Call Del File

curl -i -X POST "http://127.0.0.1:9080/del_number_file" -H "Host: example.com" -F [email protected] 

Manage Redis MSISDNs

Add One MSISDN

curl -i -X POST "http://127.0.0.1:9080/manage_redis_numbers?type=normal" -H "Host: example.com" -H 'Content-Type: application/json' -d '{"msisdn": "9011337323"}'

Get One MSISDN

curl -i -X GET "http://127.0.0.1:9080/manage_redis_numbers?type=normal&msisdn=9011337323" -H "Host: example.com"

Delete One MSISDN

curl -i -X DELETE "http://127.0.0.1:9080/manage_redis_numbers?type=normal&msisdn=9011337323" -H "Host: example.com"

Edit One MSISDN

curl -i -X PUT "http://127.0.0.1:9080/manage_redis_numbers?type=normal" -H "Host: example.com" -H 'Content-Type: application/json' -d '{"msisdn": "9011337323", "to": "E"}'

Set (add, edit) MSISDN File

curl -i -X POST "http://127.0.0.1:9080/manage_redis_numbers?type=file" -H "Host: example.com" -F [email protected] 

Get MSISDN File

curl -i -X GET "http://127.0.0.1:9080/manage_redis_numbers?type=file" -H "Host: example.com" -F [email protected] 

Delete MSISDN File

curl -i -X DELETE "http://127.0.0.1:9080/manage_redis_numbers?type=file" -H "Host: example.com" -F [email protected] 

Set (add, edit) MSISDN Batch

curl -i -X POST "http://127.0.0.1:9080/manage_redis_numbers?type=batch" -H "Host: example.com" -H 'Content-Type: application/json' -d '{"9011337323": "H", "9011337324": "E", "9011337325": "H"}'

Get MSISDN Batch

curl -i -X GET "http://127.0.0.1:9080/manage_redis_numbers?type=batch&msisdns=9011337323,9011337324,9011337325" -H "Host: example.com"

Delete MSISDN Batch

curl -i -X DELETE "http://127.0.0.1:9080/manage_redis_numbers?type=batch&msisdns=9011337323,9011337324,9011337325" -H "Host: example.com"

About

Apache APISIX Deploy And Custom Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages