An alternative, RESTful approach to web services for Stud.IP implementing OAuth
Switch branches/tags
Nothing to show
Pull request Compare This branch is 288 commits behind studip:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
assets
classes
migrations
routes
vendor
.gitmodules
README.md
RestipPlugin.class.php
bootstrap.php
plugin.manifest

README.md

REST.ip

Description

This plugin is supposed to be a working example of a RESTful webservice implementing authentication by OAuth.

Integration in Stud.IP

New API

The API is located at installation_url/plugins.php/restipplugin/api for now.

Full API documentation will follow.

Administration of consumers for root administrators

Root administrators can manage which external apps are allowed to access the api on a new page located in /admin/config.

Applications can be created, updated and deleted there. It is also possible to activate/deactivate a certain app. Access keys are managed here too.

Administration of applications for users

Users can manage which external apps are allowed to access their data on a new page located in /settings/config.

Credits

  • RESTful state is implemented using Slim
  • OAuth is implemented using oauth-php on the server side