-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 68f8361
Showing
7 changed files
with
780 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# OS2Web REST API module | ||
|
||
## Module purpose | ||
|
||
The module purpose is to provide URL's for fetching data via REST API. | ||
|
||
## How does it work | ||
|
||
After enabling module there is available URL's that could be used as REST API. | ||
|
||
Most of them are coming from [RESTful Web Services module](https://www.drupal.org/docs/8/core/modules/rest/overview) | ||
that is included in Drupal core. | ||
|
||
Module provides preconfigured REST sources and Views for fetching lists nodes | ||
and terms in JSON-format | ||
* /node/[node id]?_format=json - particular node | ||
* /rest/os2web/list/term - list of taxonomy terms | ||
* /rest/os2web/list/node/[taxonomy term id] - list of nodes filtered by | ||
[taxonomy term id] | ||
|
||
|
||
## Install | ||
Module is available to download via composer. | ||
``` | ||
composer require os2web/os2web_rest_api | ||
drush en os2web_rest_api | ||
``` | ||
|
||
## Update | ||
Updating process for OS2Web REST API module is similar to usual composer package. | ||
Use Composer's built-in command for listing packages that have updates available: | ||
|
||
``` | ||
composer outdated os2web/os2web_rest_api | ||
``` | ||
|
||
## Contribution | ||
|
||
Project is opened for new features and os course bugfixes. | ||
If you have any suggestion or you found a bug in project, you are very welcome | ||
to create an issue in github repository issue tracker. | ||
For issue description there is expected that you will provide clear and | ||
sufficient information about your feature request or bug report. | ||
|
||
### Code review policy | ||
See [OS2Web code review policy](https://github.com/OS2Web/docs#code-review) | ||
|
||
### Git name convention | ||
See [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "os2web/os2web_rest_api", | ||
"description": "OS2Web Rest API", | ||
"type": "drupal-module", | ||
"require": { | ||
"drupal/core": "*", | ||
"drupal/restui": "*" | ||
}, | ||
"license": "EUPL-1.2", | ||
"minimum-stability": "dev" | ||
} |
Oops, something went wrong.