https://github.com/giorgosk/time_service
Time service Rest resource for Drupal 8
https://github.com/giorgosk/time_service
drupal drupal-8 rest-api service
Last synced: 8 months ago
JSON representation
Time service Rest resource for Drupal 8
- Host: GitHub
- URL: https://github.com/giorgosk/time_service
- Owner: GiorgosK
- Created: 2019-02-25T08:01:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T08:31:52.000Z (about 7 years ago)
- Last Synced: 2025-02-28T10:18:38.849Z (about 1 year ago)
- Topics: drupal, drupal-8, rest-api, service
- Language: PHP
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Time service Drupal Rest API resource
Was coded as an exercise [in response to this question in stackexchange ](https://drupal.stackexchange.com/questions/276913/how-to-get-time-from-drupal-by-rest-get-http).
## How to use
- enable the module
- vitit `/time_service` you should get a response like
```
{
time: "2019-02-25 10:25:21",
timezene: "Europe/Athens"
}
```
## More information
- [Custom rest resource](https://www.drupal.org/docs/8/api/restful-web-services-api/custom-rest-resources)
- [Rest GET without caching](https://drupal.stackexchange.com/questions/182863/rest-get-without-caching)