Git Product home page Git Product logo

desk_app's Introduction

Welcome

  • Author: Prateek Mehrotra
  • Contact: prateek123 at gmail dot com

UI is bare minimum and can be enhanced. I dont have exposure to Angular so I used rails view and simple JS to render

UI work flow


Heroku | http://pm-desk-app.herokuapp.com/


Clone app

$ git clone https://[email protected]/prateekm21/desk_app.git

PREP

bundle install

Run Specs

bundle exec rspec -fd

API

GET /desk/cases

  • When cases cannot be retrived

  • response status code: 422

    {
      error: "Could not retrieve case info"
    }
    
  • When cases can be retrieved

  • response status code: 200

    [
     {
        id: 1,
        external_id: null,
        blurb: "Thanks for trying Desk.com"
        subject: "Welcome to Desk.com",
        ...
     },
     {......}
    ]
    

GET /desk/retrive_labels

  • When labels cannot be retrived

  • response status code: 422

    {
      error: "Could not retrieve labels info"
    }
    
  • When labels can be retrieved

  • response status code: 200

    [
     {
       name: "Abandoned Chats",
       description: "Abandoned Chats"
     },
     {
       name: "Escalated",
       description: "Escalated"
     },
     { .... }
    ]
    

POST /desk/create_label

  • options:

     {
      label:  "",
      description: "",
      type: [case, macro, or article]
      color:[default, blue, white, yellow, red, orange, green, black, purple, brown, grey, pink]
     }
    
  • When labels cannot be added

  • response status code: 422

     {
       "error": {
       "message": "Validation Failed",
       "errors": {
         "name": [
             "taken"
          ]
        }
      }
     }
    
  • When labels addition is success

  • response status code: 200

    {
      success: "label added"
    }
    

desk_app's People

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.