Skip to content

Latest commit

 

History

History
61 lines (32 loc) · 1.52 KB

README.md

File metadata and controls

61 lines (32 loc) · 1.52 KB

OrientDB RESTful JSON API server for PHP

This is concept documentation for OrientDB RESTful JSON API server for PHP.

Status: DRAFT

OAuth authentication

Implementation of OAuth2 server with 2 and 3-legged authorization.

https://github.com/bshaffer/oauth2-server-php

Connection to OrientDB is made on behalf of OAuth authenticated user - mapped to OUser. This allows using standard OrientDB security features like record level security.

TODO

Exposed OrientDB APIs

/batch

POST

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#batch

/document[/:rid[/:fetchPlan]

GET - /document/:rid[/:fetchPlan]

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#get---document

POST - /document

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#post---document

PUT - /document/:rid[?updateModel=full|partial]

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#put---document

DELETE - /document/:rid

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#delete---document

/sql/:queryText[/:fetchPlan]

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#get---query

/function/:name[/:argument*]

http://www.orientechnologies.com/docs/last/orientdb.wiki/OrientDB-REST.html#post-and-get---function