Skip to content

yuraskaz/json_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Json Api


Web page:

To do...

Launching


Requirements:
  • Ruby version >= 2.3.0
  • Rails version 5.1.4
Commands

Clone the repository to your local machine and run following commands:

$ bundle
$ bundle exec rake db:migrate
rails s

Open a localhost:3000 page in your browser.

create post and user (send hash example: {"post": { "title":"test", "body":"test", "IPAddr: IPv4":"192.168.0.1./132", "login":"login" } })

POST  localhost:3000/posts   

get Top (20) post

GET  localhost:3000/posts/show

put an estimate post (send hash example: { "rate": { "rating":"5","post_id":"48"} })

POST localhost:3000/rates/set

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published