pgadmin4/web/pgadmin
Ashesh Vashi 35d01bea3e Introduced a class - NodeView to achieve REST API required by the
PostgreSQL node(s).

Browser Tree Node (PostgreSQL object) requires more than just CRUD.
i.e.
   - CRUD (Create, Read, Update & Delete)
    - Reversed Engineered SQL for the object
    - Modified Query in edit mode
      i.e. ALTER TABLE ...
    - Statistics
    - List of dependents
    - List of dependencies
    - Children node list

This class can be inherited to achieve the different routes for each of
the object types/collections.

    OPERATION      |              URL       | Method
    ---------------+------------------------+--------
    List           | /obj/[Parent URL]/     | GET
    Properties     | /obj/[Parent URL]/id   | GET
    Create         | /obj/[Parent URL]/     | POST
    Delete         | /obj/[Parent URL]/id   | DELETE
    Update         | /obj/[Parent URL]/id   | PUT

    SQL (Reversed  | /sql/[Parent URL]/id   | GET
    Engineering)   |
    SQL (Modified  | /sql/[Parent URL]/id   | POST
    Properties)    |

    Statistics     | /stats/[Parent URL]/id | GET
    Dependencies   | /deps/[Parent URL]/id  | GET
    Dependents     | /deps/[Parent URL]/id  | POST

    Children Nodes | /nodes/[Parent URL]/id | GET

    NOTE:
    Parent URL can be seen as the path to identify the particular node.

    i.e.
     In order to identify the TABLE object, we requires information
     about the server -> database -> schema objects.

     Hence, the Parent URL for the TABLE object will be something like
     this as below:
     <int:sid>/<str:database>/<str:schema>

Inherited a new classes ServerGroupView and ServerView, which are
inherited from the NodeView for the implementation of above operations.
2015-06-29 13:41:56 +05:30
..
about Inherited the test, about & help module from PgAdminModule class to load 2015-06-29 13:26:43 +05:30
browser Introduced a class - NodeView to achieve REST API required by the 2015-06-29 13:41:56 +05:30
help Inherited the test, about & help module from PgAdminModule class to load 2015-06-29 13:26:43 +05:30
misc Introduced a PgAdmin class inherited from the Flask, which looks for 2015-06-29 12:28:41 +05:30
redirects Introduced a PgAdmin class inherited from the Flask, which looks for 2015-06-29 12:28:41 +05:30
settings Introduced a class - NodeView to achieve REST API required by the 2015-06-29 13:41:56 +05:30
static Handle standard menu items defined by Nodes in the browser. 2015-03-13 10:35:12 +00:00
templates Introduced a class - NodeView to achieve REST API required by the 2015-06-29 13:41:56 +05:30
test Inherited the test, about & help module from PgAdminModule class to load 2015-06-29 13:26:43 +05:30
translations/fr/LC_MESSAGES Fix i18n for the docking system. 2015-03-03 10:51:29 +00:00
utils Inherited the test, about & help module from PgAdminModule class to load 2015-06-29 13:26:43 +05:30
__init__.py Inherited the test, about & help module from PgAdminModule class to load 2015-06-29 13:26:43 +05:30
messages.pot Fix i18n for the docking system. 2015-03-03 10:51:29 +00:00