diff options
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -53,12 +53,13 @@ Gn-Markdown is an API endpoint to edit, parse, and commit markdown files for gn- ## Edit (GET) -This is a GET request to retrieve a file's details. +This is a GET request to retrieve a file's details. Make sure you pass a valid file_path as search_query (the path should be relative to the repo) **Request Example:** ``` localhost:8091/edit?file_path=test.md + ``` **Expected Success Response:** @@ -95,10 +96,11 @@ localhost:8091/commit ```json { "content": "Test for new user\n test 2 for line\n test 3 for new line\n ## real markdown two test\n", - "filename": "test.md", + "prev_commit" : "ecd96f27c45301279150fbda411544687db1aa45", + "filename": "./test.md", "username": "genetics", "email": "genetics@gmail.com", - "commit": "commit by genetics" + "commit_message": "commit by genetics" } ``` |