Code Monkey home page Code Monkey logo

hotlineapi's Introduction

Synopsis

This is one project of two projects that makes up the Suspicious Activity Bot Application for Azure Commerical and Government. This particular project is the REST API that will be leveraged by either the Bot Application or any data retrieval No Code system to view and modify the records being stored. A full description of the project can be found in the following blog post: Deploying a Suspicious Activity Bot in Azure Commercial or Azure Government

Motivation

I built these two projects to show how easy it is to create and deploy a Bot Application in either the Azure Commerical or Azure Government regions while also showing and discussing the differences. See the blog post above for more information.

Installation

These instruction will allow you to deploy this application directly from Github into an Azure App Service, either Web App or API App. Knowledge of Azure App Service is required:

NOTE: Please note that I am assuming that you already have either a MongoDB database available or a MongoDB based CosmosDB instance available to get the necessary connection string from.

Built With

  • NodeJS - Development engine and application server
  • Express - The web framework used
  • Mongoose - MongoDB based ORM library
  • MongoDB - Database system

Code Example

This is a very simple REST API with a route for all four of the major verbs, but as there is only one data model, the options are very limited:

  • GET - https:///apis/incidents
  • POST - https:///apis/incidents
  • GET - https:///apis/incidents/:id
  • PUT - https:///apis/incidents/:id
  • DELETE - https:///apis/incidents/:id

The id parameter being passed of the incident is the default parameter created for all MongoDB records.

Contributors

This project is meant to be consumed and then modified on a per customer or developer basis. Please feel free to either file an Issue or perform a Pull request should you find a bug or would like to make an enhancement on your own.

hotlineapi's People

Watchers

Brian C Harrison 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.