diff --git a/README.md b/README.md index acfc4cd..10773b5 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ The GPlates Web Service is created and maintained by [EarthByte](https://www.ear Please give us a ⭐**star**⭐ to show your support for our development team. Thank you very much!!! -## 🤔 Why use GPlates Web Service +## 🤔 Why GPlates Web Service - easy to use -- it can be as easy as opening a URL in a web browser or a one-line curl command in a terminal -- cross-platform and language-independent -- the service can be used in various programming languanges and on various operating systems +- cross-platform and programming language independent -- the service can be used in various programming languanges and on various operating systems - scalability -- distribute workload among servers, cluster, grid or Cloud to improve throughput and support concurrent usage - automated plate reconstruction model management -- provide a wide range of plate reconstruction models out of the box -- software deployment and upgrade -- make the software installation and upgrade easier +- software deployment and upgrade -- the software installation and upgrade is easier than local software ## 🚀 Quick start @@ -57,7 +57,7 @@ The [gplates-js](https://github.com/michaelchin/gplates-js) is an experimental p You are welcome to use our servers. But for better performance and data security, you might want to setup the service on your own server/personal computer. -Start your own GWS server is as simple as the one-line command below. You need [Docker](https://www.docker.com/get-started/) to run the commmand. +Start your own GWS server is as simple as the one-line command below, which needs [Docker](https://www.docker.com/get-started/) to run. ``` docker run -d --rm -p 18000:80 gplates/gws diff --git a/django/GWS/GWS/version.py b/django/GWS/GWS/version.py index db3e616..cf1d29d 100644 --- a/django/GWS/GWS/version.py +++ b/django/GWS/GWS/version.py @@ -1,8 +1,13 @@ +from django.http import HttpResponseBadRequest +from utils.decorators import return_HttpResponse + VERSION = "v1.0.0" -from utils.decorators import check_get_post_request_and_get_params, return_HttpResponse -@check_get_post_request_and_get_params @return_HttpResponse() -def get_version(request, params={}): +def get_version(request): + if request.method != "GET": + return HttpResponseBadRequest( + "Only HTTP GET request is supported for this endpoint." + ) return VERSION diff --git a/django/GWS/static/background-2.png b/django/GWS/deprecated/static/background-2.png similarity index 100% rename from django/GWS/static/background-2.png rename to django/GWS/deprecated/static/background-2.png diff --git a/django/GWS/static/background.png b/django/GWS/deprecated/static/background.png similarity index 100% rename from django/GWS/static/background.png rename to django/GWS/deprecated/static/background.png diff --git a/django/GWS/static/docker-gws.png b/django/GWS/deprecated/static/docker-gws.png similarity index 100% rename from django/GWS/static/docker-gws.png rename to django/GWS/deprecated/static/docker-gws.png diff --git a/django/GWS/static/reconstruct-coastlines.png b/django/GWS/deprecated/static/reconstruct-coastlines.png similarity index 100% rename from django/GWS/static/reconstruct-coastlines.png rename to django/GWS/deprecated/static/reconstruct-coastlines.png diff --git a/django/GWS/static/reconstruct-feature-collection.png b/django/GWS/deprecated/static/reconstruct-feature-collection.png similarity index 100% rename from django/GWS/static/reconstruct-feature-collection.png rename to django/GWS/deprecated/static/reconstruct-feature-collection.png diff --git a/django/GWS/static/reconstruct-points.png b/django/GWS/deprecated/static/reconstruct-points.png similarity index 100% rename from django/GWS/static/reconstruct-points.png rename to django/GWS/deprecated/static/reconstruct-points.png diff --git a/scripts/gen_labels.py b/scripts/deprecated/gen_labels.py similarity index 97% rename from scripts/gen_labels.py rename to scripts/deprecated/gen_labels.py index 4d26fbd..44f6e9b 100755 --- a/scripts/gen_labels.py +++ b/scripts/deprecated/gen_labels.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +# This file is deprecated due to the redesign of plate labels. +# See https://github.com/GPlates/plate-labels instead + # use gplately and plate_model_manager to run this script # this script do two things # 1. assign plate ids for labels (pre-compute/pre-assign plate ids to improve response time)