Write / Read String Value
Write String Key
POST http://lyour_local_ip:49761/sharedpreference/write/string/
Save a new string value. The following parameters must be in the same JSON in the body.
With which key you want to save your string value
The string value you want to save
Read String Key
GET http://lyour_local_ip:49761/sharedpreference/read/string/
Read the string value you saved before.
Query Parameters
If key is null return default value
Please send all parameters. key -> Your data key. --- defaultValue -> If data is null return default value.
Write / Read Integer Value
Write Integer Key
POST http://lyour_local_ip:49761/sharedpreference/write/int/
Save a new integer value. The following parameters must be in the same JSON in the body.
With which key you want to save your integer value
The integer value you want to save
Read Integer Key
GET http://lyour_local_ip:49761/sharedpreference/read/int/
Read the integer value you saved before.
Query Parameters
If key is null return default value
Please send all parameters. key -> Your data key. --- defaultValue -> If data is null return default value.
Write / Read Boolean Value
Write Boolean Key
POST http://lyour_local_ip:49761/sharedpreference/write/boolean/
Save a new boolean value. The following parameters must be in the same JSON in the body.
With which key you want to save your boolean value
The boolean value you want to save
Read Boolean Key
GET http://lyour_local_ip:49761/sharedpreference/read/boolean/
Read the boolean value you saved before.
Query Parameters
If key is null return default value
Please send all parameters. key -> Your data key. --- defaultValue -> If data is null return default value.
Remove Key / Remove All Key
DELETE http://lyour_local_ip:49761/sharedpreference/remove
Delete specific key
Query Parameters
The key you want to delete
Please send all parameters. key -> Your data key
Delete All Keys
DELETE http://lyour_local_ip:49761/sharedpreference/remove/all
Delete all keys in preference file