> hourstracker$ sbt 'project rest' clean run
- Build and publish new docker image:
sbt clean docker:publishLocal
- Start new docker image:
gradle runDocker
- To see if the application is working, open the swagger-ui page ((http://0.0.0.0:8080))
- Start application
- Update file:
resources/import/CSVExport.csv
- In a browser open:
http://0.0.0.0:8080/api/v1/registrations/import - or, when using the shell, execute:
using | execute |
---|---|
curl |
curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/import |
http |
http GET http://0.0.0.0:8080/api/v1/registrations/import |
wget |
wget http://0.0.0.0:8080/api/v1/registrations/import |
- Start application
- Import updated registered hours
- Retrieve the so called 'consolidated registrations':
-
In a browser open:
http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated
,
for instance: http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated -
or, when using the shell, execute:
-
using | execute | example |
---|---|---|
curl |
curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated |
curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated |
http |
http GET http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated |
http GET http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated |
wget |
wget http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated |
wget http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated |
N.B.: when done, the location of the generated .PDF files will be shown in JSON format, for example:
[
["/opt/resources/export/[Timesheet] - de Persgroep Online Services - DPES004 - jan-2019.pdf"]
]