###
# Coselmar version : ${project.version}
###

[config]
package.filters=fr.ifremer.coselmar.services.filter
package.actions=fr.ifremer.coselmar.services.v1
package.errors=fr.ifremer.coselmar.services.errors
server.listener.class=fr.ifremer.coselmar.services.CoselmarRestApplicationListener
default.render=fr.ifremer.coselmar.services.CoselmarRender

[filters]
*      /*                                   CoselmarRestRequestFilter.inject

[errors]

#fr.ifremer.coselmar.services.errors.CoselmarUnauthorizedException                       ErrorAction.on403
#fr.ifremer.coselmar.services.CoselmarTechnicalException                                 ErrorAction.on500
#org.nuiton.topia.persistence.TopiaNoResultException                                     ErrorAction.on404

[actions]

# DocApi

GET    /v1/doc                                 DocApi.showMapping

# Documents Api

GET    /v1/documents                            DocumentsWebService.getDocuments
GET    /v1/documents/{documentId}               DocumentsWebService.getDocument
GET    /v1/documents/{documentId}/file          DocumentsWebService.getDocumentFile
POST   /v1/documents                            DocumentsWebService.addDocument
PUT    /v1/documents/{documentId}               DocumentsWebService.saveDocument
DELETE /v1/documents/{documentId}               DocumentsWebService.deleteDocument

