Skip to content

Psiale/onStock-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2821777 Β· Apr 18, 2021

History

76 Commits
Mar 19, 2021
Apr 7, 2021
Feb 22, 2021
Mar 25, 2021
Mar 25, 2021
Feb 22, 2021
Feb 22, 2021
Feb 22, 2021
Feb 22, 2021
Mar 25, 2021
Feb 22, 2021
Feb 22, 2021
Feb 22, 2021
Mar 20, 2021
Feb 24, 2021
Mar 19, 2021
Mar 20, 2021
Mar 9, 2021
Mar 20, 2021
Feb 22, 2021
Feb 22, 2021

Repository files navigation

Raw Materials API

Keep track of your raw materials

Table of Contents

About The Project

This repository holds the Ruby on Rails API from which the React frontend serves the data.

It is a simple Rails app that has three models - Owner and raw materials

For the authentication of the users I used JSON Web Tokens. Inspiration from this article series.

The API is hosted on Heroku, at this endpoint: Coffetory API - But they can only be accessed with a valid API token

  • From there several other endpoints can be accessed
  • /auth/login
    • POST - for user sign in
  • /signup
    • POST - for user sign up
  • /business
    • GET - for fetching the business
  • business
    • POST for creating a business
  • /business/:id/raw_materials
    • GET - for fetching raw materials belonging to that business
  • /business/:id/raw_materials
    • POST - for createing raw materials belonging to that business
  • /business/:id/raw_materials/:id
    • PUT - for updating the raw material

πŸ€ŸπŸ½πŸ˜„ πŸ˜›πŸ€™πŸΎ Creator

Alexis Sanchez - Github

About

API for the onStock web-app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published