Metadata-Version: 1.1
Name: json-api-doc
Version: 0.5.0
Summary: JSON API to document parser
Home-page: https://github.com/noplay/json-api-doc
Author: Julien Duponchelle
Author-email: julien@duponchelle.info
License: Apache Software License 2.0
Description: ============
        JSON API Doc
        ============
        
        
        .. image:: https://img.shields.io/pypi/v/json-api-doc.svg
                :target: https://pypi.python.org/pypi/json-api-doc
        
        .. image:: https://img.shields.io/travis/noplay/json-api-doc.svg
                :target: https://travis-ci.org/noplay/json-api-doc
        
        .. image:: https://readthedocs.org/projects/json-api-doc/badge/?version=latest
                :target: https://json-api-doc.readthedocs.io/en/latest/?badge=latest
                :alt: Documentation Status
        
        
        .. image:: https://pyup.io/repos/github/noplay/json-api-doc/shield.svg
             :target: https://pyup.io/repos/github/noplay/json-api-doc/
             :alt: Updates
        
        
        
        JSON API to document parser. Available as a command line
        utility and Python 3 module.
        
        This parser will transform JSON API (http://jsonapi.org/) documents
        to object easier to manipulate.
        
        For this JSON API document:
        
        .. code-block:: json
        
            {
              "data": [{
                "type": "articles",
                "id": "1",
                "attributes": {
                  "title": "JSON API paints my bikeshed!",
                  "body": "The shortest article. Ever.",
                  "created": "2015-05-22T14:56:29.000Z",
                  "updated": "2015-05-22T14:56:28.000Z"
                },
                "relationships": {
                  "author": {
                    "data": {"id": "42", "type": "people"}
                  }
                }
              }],
              "included": [
                {
                  "type": "people",
                  "id": "42",
                  "attributes": {
                    "name": "John",
                    "age": 80,
                    "gender": "male"
                  }
                }
              ]
            }
        
        The simplified version will be:
        
        .. code-block:: json
        
            [
                {
                    "type": "articles",
                    "id": "1",
                    "title": "JSON API paints my bikeshed!",
                    "body": "The shortest article. Ever.",
                    "created": "2015-05-22T14:56:29.000Z",
                    "updated": "2015-05-22T14:56:28.000Z",
                    "author": {
                        "type": "people",
                        "id": "42",
                        "name": "John",
                        "age": 80,
                        "gender": "male"
                    }
                }
            ]
        
        Usage as python module
        ----------------------
        
        .. code-block:: python
        
                import json_api_doc
        
                document =  {
                    'data': {
                        'type': 'article',
                        'id': '1',
                        'attributes': {
                            'name': 'Article 1'
                        }
                    }
                }
                json_api_doc.parse(document)
        
        Usage as cli
        ------------
        
        .. code-block:: bash
        
            $ jsonapidoc document.json
        
        Licence
        --------
        Free software: Apache Software License 2.0
        
        Documentation
        --------------
        Full Documentation is available: https://json-api-doc.readthedocs.io.
        
        
Keywords: json api
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
