diff --git a/src/html.rs b/src/html.rs index 4781ade..004bad6 100644 --- a/src/html.rs +++ b/src/html.rs @@ -79,12 +79,12 @@ pub async fn index(res: &mut Response, depot: &mut Depot) -> Result<(), anyhow::
-

curl -X GET http://localhost:5800/api/<collection>

-

curl -X GET http://localhost:5800/api/<collection>?skip=10&limit=5

-

curl -X GET http://localhost:5800/api/<collection>/<id>

-

curl -X POST -H "Content-Type: application/json" -d '{{"field1":"value1", "field2":"value2"}}' http://localhost:5800/api/<collection>

-

curl -X PUT -H "Content-Type: application/json" -d '{{"field1":"new_value1", "new_field2":"value2"}}' http://localhost:5800/api/<collection>/<id>

-

curl -X DELETE http://localhost:5800/api/<collection>/<id>

+

curl -X GET http://localhost:5800/api/<collection>

+

curl -X GET http://localhost:5800/api/<collection>?skip=10&limit=5

+

curl -X GET http://localhost:5800/api/<collection>/<id>

+

curl -X POST -H "Content-Type: application/json" -d '{{"field1":"value1", "field2":"value2"}}' http://localhost:5800/api/<collection>

+

curl -X PUT -H "Content-Type: application/json" -d '{{"field1":"new_value1", "new_field2":"value2"}}' http://localhost:5800/api/<collection>/<id>

+

curl -X DELETE http://localhost:5800/api/<collection>/<id>