rest-rest-api-agr-agr


Namerest-rest-api-agr-agr JSON
Version 0.0.7 PyPI version JSON
download
home_pagehttps://github.com/AbelGRubio/01-rest-api.git
SummaryThis package is made for an example of REST API.
upload_time2023-12-27 09:35:56
maintainer
docs_urlNone
authoragrubio
requires_python>=3.5
license
keywords development setup setuptools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # api test


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:

* http://localhost:5000/
* http://localhost:5000/path_1
* http://localhost:5000/path_2
* http://localhost:5000/path_1/sub_path_1
* http://localhost:5000/unique_visited
* http://localhost:5000/history
* http://localhost:5000/close_amqp

There are two endpoints more. It's just for see on the web browser
* http://localhost:5000/path_1/unique_visited_readable
* http://localhost:5000/path_1/history_readable


# 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AbelGRubio/01-rest-api.git",
    "name": "rest-rest-api-agr-agr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "development,setup,setuptools",
    "author": "agrubio",
    "author_email": "ablg11673@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/21/ac/a47361e58d74fc6477422c3e7a16f1fa37a94e82cc88f19d7cc3990e6aff/rest-rest_api_agr-agr-0.0.7.tar.gz",
    "platform": null,
    "description": "# api test\r\n\r\n\r\nThis test is about REST API and AMQP.\r\n\r\nThe control version that I am using is git, so you can find two branches:  \r\n\r\n* 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\r\n* AMQP: It is the same that the previous one, but using a declared queue to register the visits.\r\n\r\nThe possible path are:\r\n\r\n* http://localhost:5000/\r\n* http://localhost:5000/path_1\r\n* http://localhost:5000/path_2\r\n* http://localhost:5000/path_1/sub_path_1\r\n* http://localhost:5000/unique_visited\r\n* http://localhost:5000/history\r\n* http://localhost:5000/close_amqp\r\n\r\nThere are two endpoints more. It's just for see on the web browser\r\n* http://localhost:5000/path_1/unique_visited_readable\r\n* http://localhost:5000/path_1/history_readable\r\n\r\n\r\n# Using the script\r\n\r\nThe main script is 'app.py' to run it, you must type the following:\r\n\r\n```\r\npython app.py\r\n```\r\n\r\nIf you desire mount the server in another ip you should type the following:\r\n\r\nFor instance, at the ip 192.168.1.128\r\n```\r\npython app.py 192.168.1.128\r\n```\r\n\r\nTo stop the server, you must follow this steps:\r\n\r\n1. 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. \r\n2. Then, you can stop the server using the shortcut CTRL+C\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This package is made for an example of REST API.",
    "version": "0.0.7",
    "project_urls": {
        "Homepage": "https://github.com/AbelGRubio/01-rest-api.git"
    },
    "split_keywords": [
        "development",
        "setup",
        "setuptools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "78f3e34fcf5578e4a481523af6cbcf029496e512dc1e15e6ca0a5602fad57990",
                "md5": "aa56ed14e09c9c3d4455008e9cd71ff9",
                "sha256": "1e3f1f7708c895006b5ee3f9e6780d05e3950e0a0b4f11df60bbe7b12bf1c838"
            },
            "downloads": -1,
            "filename": "rest_rest_api_agr_agr-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aa56ed14e09c9c3d4455008e9cd71ff9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 1980,
            "upload_time": "2023-12-27T09:35:55",
            "upload_time_iso_8601": "2023-12-27T09:35:55.739942Z",
            "url": "https://files.pythonhosted.org/packages/78/f3/e34fcf5578e4a481523af6cbcf029496e512dc1e15e6ca0a5602fad57990/rest_rest_api_agr_agr-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21aca47361e58d74fc6477422c3e7a16f1fa37a94e82cc88f19d7cc3990e6aff",
                "md5": "5359bb19e0ffc97f075e6ec43378d8f0",
                "sha256": "fc1f507f7136858f9d2de8c8242a6b9d8600c64bb1b60074f5cb57cfc1893eac"
            },
            "downloads": -1,
            "filename": "rest-rest_api_agr-agr-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "5359bb19e0ffc97f075e6ec43378d8f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 2213,
            "upload_time": "2023-12-27T09:35:56",
            "upload_time_iso_8601": "2023-12-27T09:35:56.997929Z",
            "url": "https://files.pythonhosted.org/packages/21/ac/a47361e58d74fc6477422c3e7a16f1fa37a94e82cc88f19d7cc3990e6aff/rest-rest_api_agr-agr-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-27 09:35:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AbelGRubio",
    "github_project": "01-rest-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "rest-rest-api-agr-agr"
}
        
Elapsed time: 0.18716s