###
# #%L
# ObServe :: Web Application
# %%
# Copyright (C) 2015 IRD, Codelutin, Tony Chemit
# %%
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program.  If not, see
# <http://www.gnu.org/licenses/gpl-3.0.html>.
# #L%
###

#
# Build version  ${project.version}
# Build date     ${buildDate}
# Build number   ${buildNumber}
#

[config]
package.filters=io.ultreia.gc.rest.api.internal
package.actions=io.ultreia.gc.rest.api.v1

server.main.handler.class=io.ultreia.gc.rest.api.internal.GcRestMainHandler
server.listener.class=io.ultreia.gc.rest.api.internal.GcRestApplicationListener
default.render=io.ultreia.gc.rest.api.internal.GcRestMotionRender
server.controller.scope=request

[filters]
*      /*   GcRestMotionFilter.inject

[actions]

# →→→ Static mapping

# Do not remove the next line, it is used to generate the following actions.
# →→→ Generated dynamic mapping

# Do not modify below lines, they are generated at each maven build.

GET    /v1/login                    LoginServiceRestApi.login
GET    /v1/logout                   LoginServiceRestApi.logout

GET    /v1/gcnames                  GcCacheServiceRestApi.getGcNames
GET    /v1/gcnamesWithoutLogs       GcCacheServiceRestApi.getGcNamesWithoutLogs
POST   /v1/loadLogs                 GcLogServiceRestApi.loadLogs

GET    /v1/fieldnotes               FieldNotesServiceRestApi.loadFieldNotes
POST   /v1/fieldnotes               FieldNotesServiceRestApi.logFieldNote
GET    /v1/logdraft/{referenceCode} FieldNotesServiceRestApi.getLogDraft

GET    /v1/gc/{gcName}              GcCacheServiceRestApi.getCacheFromGcName
POST   /v1/gc/{gcName}              GcCacheServiceRestApi.storeCache
GET    /v1/gc/{gcName}/ref          GcCacheServiceRestApi.getCacheRefFromGcName
GET    /v1/gc/search                GcCacheServiceRestApi.searchCaches

GET    /v1/gc/{gcName}/logs         GcLogServiceRestApi.getLogsFromGcName
DELETE /v1/gc/{gcName}/logs         GcLogServiceRestApi.deleteLogsForGcName
GET    /v1/gc/{gcName}/archeo       GcLogServiceRestApi.getMyArcheoLogFromGcName

