toString doc

This commit is contained in:
2025-08-28 11:52:51 +02:00
parent 7996cae54c
commit 458fa90347

View File

@@ -15,7 +15,7 @@ Content-Type: application/json
--- ---
## 1 POST `/sort` ## POST `/sort`
Sorts an array (numeric or alphabetical) and returns the sorted array. Sorts an array (numeric or alphabetical) and returns the sorted array.
@@ -45,7 +45,7 @@ POST /sort
``` ```
## 2 POST `/isOdd` ## POST `/isOdd`
Checks if a given number is odd. Checks if a given number is odd.
@@ -75,7 +75,7 @@ POST /isOdd
--- ---
## 3 POST `/isEven` ## POST `/isEven`
Checks if a given number is even. Checks if a given number is even.
@@ -103,6 +103,34 @@ POST /isEven
} }
``` ```
## POST `/toString`
calls .toString()
### Request
**URL:**
```
POST /toString
```
**Body Example:**
```json
{
"number": 7
}
```
### Successful Response
```json
{
"ret": "7"
}
```
## 📌 Example Usage with `curl` ## 📌 Example Usage with `curl`
### Sort an array (Linux/macOS) ### Sort an array (Linux/macOS)