Giter VIP home page Giter VIP logo

crmservice's Introduction

+++ title = "Service blueprint (Flask)" +++

Service blueprint (Flask)

Summary

This is a blueprint service written in Flask. You should change this summary to describe your service. Some points to address:

  • What feature(s) does this service provide for a Walhall app?
  • What kinds of data models does this service provide for an app?
  • An overview of how the data models work together.

REST data models

[Model 1]

A [model 1] has the following properties:

  • [Property]: One-sentence description of the property.
  • [Property]: One-sentence description of the property.
  • [Property]: One-sentence description of the property.

Endpoints

  • GET /{model1}/{property}/: Retrieves a ____.
  • POST /{model1}/{property}/: Creates a ____.
  • PATCH /{model1}/{property}/: Updates a ____.
  • DELETE /{model1}/{property}/: Deletes a ____.

Click here for the full API documentation.

[Model 2]

A [model 2] has the following properties:

  • [Property]: One-sentence description of the property.
  • [Property]: One-sentence description of the property.
  • [Property]: One-sentence description of the property.

Endpoints

  • GET /{model2}/{property}/: Retrieves a ____.
  • POST /{model2}/{property}/: Creates a ____.
  • PATCH /{model2}/{property}/: Updates a ____.
  • DELETE /{model2}/{property}/: Deletes a ____.

Click here for the full API documentation.

Non-REST endpoints

This is a section where you would document endpoints that are not related to a data model, e.g., with the search service.

For each of these endpoints, a more in-depth explanation is necessary.

Local development

Here are some instructions for developing this service locally:

Prerequisites

You must have Docker installed.

Build & run service locally

Build the Docker image:

docker-compose build

Run a web server with this service:

docker-compose up

Now, open your browser and go to http://localhost:8089.

For the Swagger API Doc, go to http://localhost:8089/docs.

Run tests

To run the tests once:

docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' {name-of-service}

To run the tests and leave bash open inside the container so that it's possible to re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]:

docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' {name-of-service}

To run bash:

docker-compose run --rm --entrypoint 'bash' {name-of-service}

API documentation (Swagger)

Click here to go to the full API documentation.

License

Copyright ©2019 Humanitec GmbH.

This code is released under the Humanitec Affero GPL.

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.