Coder Social home page Coder Social logo

job_house_be's Introduction

JOBHOUSE

Welcome to the JOBHOUSE API

  • This API was built in conjunction with the JobHouse_Fe Front End application

Available Endpoints

  • base /api/v1

  • GET /search/jobs?city=WHATEVER

    • Returns a list of jobs matching the city param
      • Here we reach into a third party Job board API
  • Get /users?email=someemailadress.com

    • returns the specific user requested by email address, if one does not exist, creates a new one and returns that user
      • Here we store our user table for our front end program to control access via Google-Oauth2
  • Post /jobs

    • takes a formatted param with a jobkey and JSON body
    • creates a job entry in our database, or locates on if it already exists, and assigns a relationship to an existing users
      • this endpoint store job data in the local database, this is required because the current free jobboard API does not have a search by ID endpoint Available to return specfic jobs for our users
  • Get /jobs/id/houses

    • returns an index of houses that meet the 30% income affordability criteria
      • this endpoint current only returns test data for Houston Texas, Mock data. this is a limitation of the Free nature of the API. If i paid version were subscribed to, this feature would automatically expand
  • Post /jobs/houses

    • creates a user_job_house relationship with a house_id from the API, a Job_id, and a user email from the joins table in the database
  • Get /jobs/houses

    • when given params[:email]&params[:job_id]
      • returns a list of all a users homes saved to a specfic job
  • Delete /user/:id/jobs/:id

    • destroys a user_job relationship

Versions

  • Ruby version - 2.7.4
  • Rails - 5.2.7

DB Schema

schema

CONTRIBUTORS

job_house_be's People

Contributors

aedanjames avatar austincmoore avatar eldridge-turambi avatar richardlabrecque avatar samlsmith424 avatar

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.