Giter Club home page Giter Club logo

01-rest-api-deprecated's Introduction

api test

THIS IS FOR MAKE TEST AND PROBES

This test is about REST API and AMQP.

The control version that I am using is git, so you can find two branches:

  • master: It is a simple use of REST API. To do this, I am using flask, and to register the visits I am using a defined logger
  • AMQP: It is the same that the previous one, but using a declared queue to register the visits.

The possible path are:

There are two endpoints more. It's just for see on the web browser

Using the script

The main script is 'app.py' to run it, you must type the following:

python app.py

If you desire mount the server in another ip you should type the following:

For instance, at the ip 192.168.1.128

python app.py 192.168.1.128

To stop the server, you must follow this steps:

  1. Go to http://localhost:5000/close_amqp. That will execute a close_consuming function to the queue. This step is done on the AMQP branch, not otherwise.
  2. Then, you can stop the server using the shortcut CTRL+C

01-rest-api-deprecated's People

Contributors

abelgrubio 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.