Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.38 KB

NOTES.md

File metadata and controls

37 lines (22 loc) · 1.38 KB

Notes API

  • A server that will deliver notes can be found here:

  • One thing to be aware of is that this server is a shared resource. Any notes you enter will be viewable to everyone who connects to the server.

  • A note has this basic format:

  {
    "tags": ["tag", "otherTag"],
    "title": "Note Title",
    "textBody": "Note Body",
  }
  • There is also an "_id" attribute, which is a long string of numbers and letters. It is automatically assigned by the server and will be returned as part of the data.

a GET request to this route will return a list of all the notes.

a GET request to this route (with "id" replaced by the note ID) will return the note with the specified ID.

a POST request to this route with the title and text in the req.body will create a new note. The response from the server will be the ID of the new note.

a PUT request to this route with the title and text in the req body will edit the note with the specified ID. The response from the server will be the updated note object.

a DELETE request to this route will delete the note with the specified ID.