You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,21 @@ Example request body:
128
128
129
129
The API will respond with the converted Mobiledoc content.
130
130
131
+
## API Usage Example
132
+
133
+
Here's an example of how to use the API with curl:
134
+
135
+
```bash
136
+
curl -X POST https://api.joat.tools \
137
+
-H "Content-Type: application/json" \
138
+
-d '{
139
+
"source": "markdown",
140
+
"payload": "# Welcome to REST-mobiledoc\n\nThis is a sample Markdown document.\n\n## Features\n\n- Converts Markdown to Mobiledoc\n- Easy to use API\n- Lightweight and fast"
141
+
}'
142
+
```
143
+
144
+
This command sends a POST request to the API with a Markdown payload. The API should respond with the converted Mobiledoc content.
0 commit comments