Skip to content

dopoljak/Rest-Grape-Sequel-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install bundler:
  - 'gem install bundler'

install all gems from Gemfile:
  - 'bundle install'

run server:
  - 'rackup'

execute test request:
  - 'http://localhost:9292/api/test'

  - json response:
    {
        test: "test",
        current_time: "2013-09-22 18:50:17"
    }


create new item:
  - curl -X POST -H Content-Type:application/json http://localhost:9292/api/items -d "{\"name\": \"user002\", \"price\": \"11.11\" }"

list all items:
  - curl -X GET http://localhost:9292/api/items
  
get item by id:
  - curl -X GET http://localhost:9292/api/items/1

About

REST API example using Ruby, Grape, Sequel and SQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy