This api gives access to the file system using the fs module of nodejs. This API will allow you to:
- View a list of all existing note files.
- Read the content of note files.
- Create new note files.
- Update existing note files.
- Delete a note file.
- Rename a note file.
- Review the NoteClass.js file to see the Class described and how it's methods work.
- Adjust the directory of the notes you handle from the NoteClass file if you do not like the current structure
- Open the notes-api.js file and enter the node notes-api.js command
- Open the index.html file in your browser to get an interactive UI that allows you to take and manage notes
The Following require you pass in the specified parameters using the x-www-form-urlencoded option:
- POST request to the "/create" route by passing in the name and content of the new file.
- POST request to the "/delete" route by passing in the name of the file you wish to delete.
- POST request to the "/update" route by passing in the name and content of the file you wish to update.
- POST request to the "/rename" route by passing in the name and new_name of the file you wish to rename.
Made with love from an intern at WeJapa