Try second branch with localtunnel
- Clone repo
- Go to main folder (with app.js)
- Edit tunnel config in app.js
- Run npm install from command line
- Run node app.js in the main folder
Send GET request to .../api/v2/users
- Send GET request to .../api/v2/users/:id
- Send GET request to .../api/v2/users/:name (It will take the first user it finds!)
e.g. localhost:5000/api/v2/users/4 or localhost:5000/api/v2/users/kacper
Send POST request to .../api/v2/users/
In body provide:
- name
- description
Send DELETE request to .../api/v2/users/:id
Send PUT request to .../api/v2/users/:id
In body provide name or description. Information that will not be given will be loaded from the old content
Send DELETE request to .../api/v2/users/
Your IP must be registered do delete all users
Send GET requiest to .../api/v2/register/
This will register your public IP
The project uses lowdb as a database.