CognitiveClouds -- Ruby on Rails (API Assignment)
Step 1: Type this command to start the server in your terminal.
Step 2: Adds new user to users table.
post : "http://localhost:3000/users"
Example:
![](https://camo.githubusercontent.com/f9aacbc73a48d865fbfa81ef61df57144fb87507e8bc3898c431d33bd46e15e4/68747470733a2f2f692e6962622e636f2f37794d46364e6b2f706f73742d7265712e706e67)
Step 3: Get users with pagination (3 users per page).
get : "http://localhost:3000/users?page=0"
Example:
![](https://camo.githubusercontent.com/caad0525666dd9b4b5a6738e6a1b31068d646c59d7ca1403962075f623657be9/68747470733a2f2f692e6962622e636f2f46336a647151342f6765742d7265712d776974682d706167696e6174696f6e2e706e67)
Step 4: Returns specific user from users.
get : "http://localhost:3000/users/2"
Example:
![](https://camo.githubusercontent.com/15655032553de7de998da1f904f3fdecdd9a79aff312762207188a2265055b8d/68747470733a2f2f692e6962622e636f2f5a6463323973642f6765742d757365722d776974682d69642e706e67)
Step 5: Update specific user in users table
put : "http://localhost:3000/users/8"
Example:
![](https://camo.githubusercontent.com/ea4701aeae29b0c6f82b767aa5c5b464044899cd453732f4ab4e35c726ef1593/68747470733a2f2f692e6962622e636f2f59546a43744a442f7075742d7265712e706e67)
Step 6: Delete specific user in users table
delete : "http://localhost:3000/users/5"
Example:
![](https://camo.githubusercontent.com/180dbfec11e818744f4b61d01beb5635633cbb33cbf3dacc614cd9b9965ce693/68747470733a2f2f692e6962622e636f2f464468624c71712f64656c6574652d7265712e706e67)
π For any query you can reach out to me through given email address
π rahulyo954030@gmail.com π§