Code Monkey home page Code Monkey logo

bookit-api's Introduction

This is a Rails API for a food pantry appointment making app. The front end is built in Angular and can be see at: meta helper

Enpoints for the API are: /appointmens.json returns all appointments as a json object

/clients.json returns all clients and their information as a json object

/pantry_days.json returns all Pantry Days

/voicemails.json returns all appointments and their associated notes with date/time created

/clients/:id.json returns all info pertaining to a client with given id

Create a client

POST to /clients with parameters as an object client: { first_name:, last_name:, address:, zip:, display_phone:, county:, family_size:, account_number:, email: }

Edit a client

PATCH to /clients/:id with parameters as an object whatever needs to be changed

Create an appointment

POST to /appointments with parameters as an object appointment: { pantry_day_id:, client_id: } if client has asked for utilities assistance pass parameter utilities: "true"

Edit an appointment

PATCH to /appointments/:id with parameters as an object appointment: {showed: "true"} or whatever needs to be edited

We will not delete appointments, if an appointment gets cancelled - we will change showed to "False"

Create Pantry Day

POST to /pantry_days with parameters as an object pantry_day: { date_time:, num_volunteers:, max_num_clients: }

Edit a Pantry Day

PATCH to /pantry_days/:id with parameters as an object pantry_day: { num_volunteers: } or whatever needs to be changed

Create a Voicemail

POST to /voicemails with parameters as an object voicemail: { client_id: }

Edit a Voicemail

PATCH to /voicemails/:id with parameters that need to be changed as parameters voicemail: { resolved:, out_of_area: }

Create a Note

POST to voicemails/:voicemail_id/notes with parameters note: {info:}

Edit a Note

PATCH to /voicemails/:voicemail_id/notes with parameters that need to be changed

bookit-api's People

Contributors

pollygee avatar

Stargazers

 avatar

Watchers

 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.