Skip to content

Commit

Permalink
Work In progress but better now
Browse files Browse the repository at this point in the history
* Added simplistic yaml config reader
* Added middleware to handle empty $id in case of referencing root
resource
* Added error handler/catcher for unavailable Fedora and tripplestore
services
* Moved regex for uuid to config variable, not allows UUID V4 or empty
* added Delete resource with ?force=true option in route to also remove
tombstone in one step, can be used also on an existing tombstone

Todo:
* make a UUID/rdf generating service to generate intermediate resources
in case of PUT and POST(if needed, still not convinced if really needed
at this side)
* check for mime types in case of updating existing resources, abort
before hitting fedora if trying to "convert" and rdf->to binary or the
other way resource.
* Make messages more human friendly
* Documentation
  • Loading branch information
DiegoPino committed Jan 4, 2016
1 parent d733150 commit 24513d7
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 1,211 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ tests/test_config.ini
install/.vagrant
install/downloads
site/

services/ResourceService/composer.lock
2 changes: 1 addition & 1 deletion services/ResourceService/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"silex/silex": "^1.3",
"symfony/config": "^3.0",
"twig/twig": "^1.23",
"symfony/psr-http-message-bridge": "^0.2.0"
"symfony/yaml": "^3.0"
},
"autoload": {
"psr-4": {"Islandora\\ResourceService\\": "src/"}
Expand Down
Loading

0 comments on commit 24513d7

Please sign in to comment.