Giter Site home page Giter Site logo

api-pub's Introduction

PUB

API with Ruby on Rails to study ๐Ÿบ

API

Prefix Verb URI Pattern Controller#Action
api_v1_categories GET /api/v1/categories api/v1/categories#index
POST /api/v1/categories api/v1/categories#create
api_v1_category GET /api/v1/categories/:id api/v1/categories#show
PATCH /api/v1/categories/:id api/v1/categories#update
PUT /api/v1/categories/:id api/v1/categories#update
DELETE /api/v1/categories/:id api/v1/categories#destroy
api_v1_products GET /api/v1/products api/v1/products#index
POST /api/v1/products api/v1/products#create
api_v1_product GET /api/v1/products/:id api/v1/products#show
PATCH /api/v1/products/:id api/v1/products#update
PUT /api/v1/products/:id api/v1/products#update
DELETE /api/v1/products/:id api/v1/products#destroy

Setup

This API use Ruby on Rails.

# install dependencies
bundle i

# create db
rails db:create
rails db:migrate
rails db:seed

# run serve
rails s

api-pub's People

Contributors

gabrielmedina avatar luizpicolo avatar ericklino avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

ericklino

api-pub's Issues

Add upload files

The products need a image file :)

Now, we have a string field in the database to save the image path. But, we need a uploader to save the file in the server and return a string path for us ๐Ÿบ

Do you can a help?

# db/schema.rb

table "products"
  t.string "image"
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.