-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from pblottiere/prepare_v100
Prepare v1.0.0
- Loading branch information
Showing
17 changed files
with
259 additions
and
119 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
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
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
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
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,19 @@ | ||
# QSA REST API : endpoints | ||
|
||
The QSA REST API provides several endpoints: | ||
|
||
* [/api/symbology](symbology.md) | ||
* [/api/projects](projects.md) | ||
* [/api/instances](instances.md) | ||
* [/api/processing](processing.md) | ||
|
||
### PostgreSQL schema | ||
|
||
When PostgreSQL support is enabled, a query string parameter `schema` may be | ||
used to specify the schema in which the QGIS project is stored in the database | ||
(`public` is used by default). | ||
|
||
```` shell | ||
# call a specific endpoint using projects stored in PostgreSQL schema named `myschema` | ||
$ curl "http://localhost/api/xxx/yyy?schema=myschema" | ||
```` |
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,12 @@ | ||
# QSA REST API : /api/instances | ||
|
||
|
||
When `qsa-plugin` is installed, an `/api/instances` endpoint is available to | ||
retrieve information about QGIS Server underlying instances. | ||
|
||
| Method | URL | Description | | ||
|---------|-----------------------------------------------|--------------------------------------------| | ||
| GET | `/api/instances` | List online QGIS Server instances | | ||
| GET | `/api/instances/{instance}` | List QGIS Server instance metadata | | ||
| GET | `/api/instances/{instance}/logs` | Return logs of QGIS Server instance | | ||
| GET | `/api/instances/{instance}/stats` | Return stats of QGIS Server instance | |
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,31 @@ | ||
# QSA REST API : /api/processing | ||
|
||
The QSA REST API provides some basic processing methods to create on-the-fly | ||
rasters or get histogram for raster layers. | ||
|
||
| Method | URL | Description | | ||
|---------|-------------------------------------------------------|----------------------------------------------------------------------| | ||
| POST | `/api/processing/raster/histogram/{project}/{layer}` | Return an histogram in JSON | | ||
| POST | `/api/processing/raster/calculator/{project}` | Create a raster based on an `expression` and an `output` filename | | ||
|
||
|
||
Examples: | ||
|
||
``` shell | ||
# create a new layer based on a QGIS expression | ||
$ curl "http://localhost/api/projects/" \ | ||
-X POST \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ | ||
"expression":"layer@1 + 10", | ||
"output":"/vsis3/my-storage/result.tif" | ||
}' | ||
``` | ||
|
||
|
||
<div class="warning"> | ||
Processing | ||
|
||
These are basic processing methods but one could argue that WPS or OGC API | ||
Processes should be used instead. | ||
</div> |
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
Oops, something went wrong.