Metadata-Version: 1.1
Name: pseuserver
Version: 2.3.0
Summary: is a zero-coding restful API server inspired by Json-Server and Eve. It is designed to be used as fake restful api for development,  especially for people want to stick with Python stack. Setup process  is less than 1 minute. 
Home-page: https://github.com/harryho/pseu-server
Author: Harry Ho
Author-email: harry.ho_long@yahoo.com
License: MIT
Description: Pseu-Server

        ----

        

        |Build Status| |Coverage| |Version|

        

        Pseu-Server is a **zero coding** restful API server inspired by Json-Server_ and Eve_. It is designed to be used as fake restful api for development, especially for people want to use Python stack. Setup process is **less than 1 minute*d*. 

        

        

        Pseu-Sever is:

        

        - **Flask based web server** Pseu-Server is built on the top of _Flask

        

        - **Json flat file database** Pseu-Server uses PseuDB_ to manage the Json flat file database. PseuServer is a document oriented database. 

        

        - **Zero coding to setup Restful API** Pseu-Sever is designed to use without coding. You just need one config to setup all endpoints you need, then you can use it immediately. 

        

        

        Quick Start

        ***********

        

        - Create config.json

        

        .. code-block:: json

        

            {

                "db": "db.json",

                "routes":[

                    "/posts",

                    "/comments"

                ]

            }

        

        - Install Pseu-Server

        

        .. code-block:: bash

        

            $ pip install pseuserver

        

        

        - Launch Pseu-Server. Please make sure the config.json is under current diretory

        

        .. code-block:: bash

        

            $ python3 pseuserver

        

        

        - Test api via postman 

        

            It is the handy and easy way to play around with the API

        

        - Test api via curl 

        

        .. code-block:: bash

        

            # Add a new post

        

            $ curl -d "{\"text\":\"post 1\",\"author\":\"harry\"}" -H "Content-Type: application/json" -X POST http://localhost:5000/posts

            {"author": "harry", "text": "post 1", "id": 1}

        

            # Get post by Id

            $ curl -X GET http://localhost:5000/posts/1

            {"author": "harry", "text": "post 1", "id": 1}

            

            # Get all posts

            $ curl -X GET http://localhost:5000/posts

            [{"author": "harry", "text": "post 1", "id": 1}]

        

            # Update  the post

            $ curl -d "{\"text\":\"post updated\",\"author\":\"harry\"}" -H "Content-Type: application/json" -X PUT http://localhost:5000/posts/1

            [{"author": "harry", "text": "post updated", "id": 1}]

        

            # Delete 

            $ curl -X DELETE http://localhost:5000/posts 

        

        

        Advanced usage

        **************

        

        

        

        

        

        Stable release

        **************

        

        - |Pseu-Server 2.1.0 - RC1|

        

        

        .. |Pseu-Server 2.1.0 - RC1| :target:: https://pypi.python.org/pypi?:action=display&name=pseuserver&version=2.1.0

        

        .. |Build Status| image:: https://travis-ci.org/harryho/pseu-server.svg?branch=master

            :target: https://travis-ci.org/harryho/pseu-server

        .. |Coverage| image:: https://coveralls.io/repos/github/harryho/pseu-server/badge.svg?branch=master

            :target: https://coveralls.io/github/harryho/pseu-server?branch=master

        .. |Version| image:: http://img.shields.io/pypi/v/pseuserver.svg?style=flat-square

            :target: https://pypi.python.org/pypi/pseuserver/

        

        .. _Flask: http://flask.pocoo.org/

        .. _Eve: http://python-eve.org/

        .. _Json-Server: https://github.com/typicode/json-server

        .. _PseuServer: https://github.com/harryho/pseuserver

        
Keywords: web server json restful fake api
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Restful API
Classifier: Topic :: Restful API :: Fake API
Classifier: Topic :: Json Server
Classifier: Topic :: Zero Coding
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
