Skip to main content
Geobricks REST Engine
=====================

The main purpose of this project is to provide a deployable and configurable entry point for the Geobricks REST services.

The Geobricks project takes advantage of the [blueprints](http://flask.pocoo.org/docs/0.10/blueprints/) concept to create modular components which provide services to the users. This project consist of a single [REST service](../blob/master/geobricks_rest_engine/rest/engine.py) which loads modules at the start-up of the application and provides a single entry point to the Geobricks web services.

The REST engine can be easilly configured through a simple [settings file](../blob/master/geobricks_rest_engine/config/settings.py) which contains an array of objects named `modules`. Each object describes a Geobricks service and provides the parameters to load the module. The following example describes the configuration needed to load the Geobricks MODIS plug-in:
```python
{
"description": "MODIS",
"path_to_the_blueprint": "geobricks_modis.rest.modis_rest",
"blueprint_name": "modis",
"url_prefix": "/browse/modis"
}
```
The following table provides a description of each parameter of the configuration objects.

|Name|Description|Mandatory|
|--------------|-----------|:-------:|
|description|Human readable description. This parameter is only used to make the configuration file more comprehensible and easy to mantain.|No|
|path_to_the_blueprint|The import path to the Python file which contains the blueprint.|Yes|
|blueprint_name|The name of the blueprint variable.|Yes|
|url_prefix|Every web service defined by the blueprint will be preceeded by this string. |Yes|

The `url_prefix` is very useful to group all the services provided by a module with a single entry point. As istance, every service provided by the Geobricks MODIS plug-in will be introduced by the `/browse/modis` prefix. The next table shows how the URL's are modified by the prefix.

|Original URL|Prefix|REST Engine URL|
|------------|------|---------------|
|http://example.com/|/browse/modis/|http://example.com/browse/modis/|
|http://example.com/MOD13Q1/|/browse/modis/|http://example.com/browse/modis/MOD13Q1/|

Metadata

Release files for GeobricksRESTEngine 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GeobricksRESTEngine 0.1.11
File Size Uploaded
GeobricksRESTEngine-0.1.11.tar.gz 8.2 kB Details

Release files / GeobricksRESTEngine-0.1.11.tar.gz

Download URL GeobricksRESTEngine-0.1.11.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cd74251afa885b0033e03b0d66822c086fd3466080b2eb2aec0eef2c37d58975
BLAKE2b-256 checksum
How to use checksums
1e241f6257dfb9d22d1e7e3feb6cc1d30cabde8569a22a12560f722a2f52d135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.11 This release

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page