Register: http://127.0.0.1:8000/api/register/
Request:POST
{
"email": "[email protected]",
"username": "exampleUsername",
"password": "example@Pass1"
}
Request:POST
{
"username": "exampleUsername",
"password": "example@Pass1"
}
OR
{
"username": "[email protected]",
"password": "example@Pass1"
}
Request:POST
fetch('/path/to/user_logout/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Token ${authToken}`
}
})
Request (Encode):POST
{
"string": "HELLO WORLD",
"type": "encode"
}
Request (Decode):POST
{
"string": ".... . .-.. .-.. --- .-- --- .-. .-.. -..",
"type": "decode"
}
Inverse: http://127.0.0.1:8000/api/inverse/
Request (Swap Case):POST
{
"string": "Hello World"
}
Case Switch: http://127.0.0.1:8000/api/case_switch/
Request (Camel Case):POST
{
"string": "hello_world",
"type": "camel case"
}
Request (Snake Case):POST
{
"string": "helloWorld",
"type": "snake case"
}
Caesar Cipher: http://127.0.0.1:8000/api/ceaser/
Request (Encode):POST
{
"string": "HELLO",
"key": 3,
"type": "encode"
}
Request (Decode):POST
{
"string": "KHOOR",
"key": 3,
"type": "decode"
}
Vigenere Cipher: http://127.0.0.1:8000/api/vigenere/
Request (Encode):POST
{
"string": "HELLO",
"key": "KEY",
"type": "encode"
}
Request (Decode):POST
{
"string": "RIJVS",
"key": "KEY",
"type": "decode"
}
Request (Encode):POST
{
"string": "Hello World",
"type": "encode"
}
Request (Decode):POST
{
"string": "SGVsbG8gV29ybGQ=",
"type": "decode"
}