Skip to content

Psiale/onStock-Backend

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