You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-32Lines changed: 7 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,10 @@ Or test the API :
23
23
* Get catalogs of products classified by continents - https://tamn.snapplanet.io/catalogs/classifications/geographical/continent?_pretty=1
24
24
* Get catalogs of products classified by european countries - https://tamn.snapplanet.io/catalogs/classifications/geographical/continent/continent:Europe:6255148?_pretty=1
25
25
26
-
# Quick startup
26
+
# Installation
27
+
28
+
## TL;DR
29
+
The [INSTALLATION.md](./docs/INSTALLATION.md) file provides additional information on the installation process.
27
30
28
31
## Deploy the service
29
32
To launch a default pre-configured resto instance, just type :
@@ -37,39 +40,11 @@ If you're using docker on Mac with apple Silicon M1 chip, be sure to **turn off
37
40
38
41
When this option is turned on, every calls to PHP preg_match function (which is used by resto) leads to a segmentation fault within php fpm and an HTTP 502 Bad Gateway error in nginx. Why ? I just don't know !
39
42
40
-
## Ingest a collection
41
-
To ingest a collection using the default **ADMIN_USER_NAME** and **ADMIN_USER_PASSWORD** (see [config.env](config.env)) :
42
-
43
-
# POST a S2 dummy collection
44
-
curl -X POST -d@examples/collections/S2.json "http://admin:admin@localhost:5252/collections"
45
-
46
-
Then get the collections list :
47
-
48
-
curl "http://localhost:5252/collections"
49
-
50
-
### Collection aliases
51
-
A collection can contain an array of *aliases* (see [./examples/collections/L8.json](./examples/collections/L8.json#L3-L5) for instance). These aliases are alternate names to the collection id. Thus {collectionId} value in /collections/{collectionId}/* endpoints can use the original collection id or one of its aliases.
52
-
53
-
Note that id and aliases must be unique in the database. As a consequence, you cannot create a new collection or set an alias to an existing collection that as the same value of one of the aliases of an existing collection.
54
-
55
-
## Ingest a feature
56
-
To ingest a feature using the default **ADMIN_USER_NAME** and **ADMIN_USER_PASSWORD** (see [config.env](config.env)) :
57
-
58
-
# POST a dummy feature inside the S2 collection
59
-
curl -X POST -d@examples/features/S2A_MSIL1C_20190611T160901_N0207_R140_T23XMD_20190611T193040.json "http://admin:admin@localhost:5252/collections/S2/items"
60
-
61
-
# Update a dummy feature inside the S2 collection
62
-
curl -X PUT -d@examples/features/testUpdate.json "http://admin:admin@localhost:5252/collections/S2/items/S2A_MSIL1C_20190611T160901_N0207_R140_T23XMD_20190611T193040"
0 commit comments