Skip to content

eeevvaaa/Node-Note-App-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Note Backend

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:

  {
    "id": 1,
    "title": "Note Title",
    "content": "Note Body",
  }
  • There is also an "id" attribute, which is number that auto increments. 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 content 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 content 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors