diff options
author | Alexander_Kabui | 2024-08-05 12:05:08 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-05 12:05:08 +0300 |
commit | ffd6bf2fa9fc23257a396d4c929477ffe887b6a7 (patch) | |
tree | 2e88a490b869f1ba7c3aba6ac65fb04474d2349b /README.md | |
parent | 591dd752274dd4530040b272fb0c0513a2ce203d (diff) | |
download | gn-guile-ffd6bf2fa9fc23257a396d4c929477ffe887b6a7.tar.gz |
Update docs: include prev commit for sanity.
Diffstat (limited to 'README.md')
-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" } ``` |