Skip to content

Commit

Permalink
cahnge location to project in text
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Dec 13, 2024
1 parent 074c795 commit 624186a
Show file tree
Hide file tree
Showing 23 changed files with 139 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Make sure that the process chain definition identifies all raster, vector
or space-time datasets correctly with name and mapset: name@mapset if you
use data from other mapsets in the specified location.
use data from other mapsets in the specified project.
All required mapsets will be identified by analysing the input parameter
of all module descriptions in the provided process chain and
Expand All @@ -71,8 +71,8 @@
"consumes": ["application/json"],
"parameters": [
{
"name": "location_name",
"description": "The location name that contains the data that "
"name": "project_name",
"description": "The project name that contains the data that "
"should be processed",
"required": True,
"in": "path",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#######

"""
API docs for location_management
API docs for project_management
"""

from actinia_core.models.response_models import (
Expand All @@ -43,13 +43,13 @@
__maintainer__ = "mundialis GmbH & Co. KG"

get_doc = {
"tags": ["Location Management"],
"description": "Get a list of all available locations that are located in "
"tags": ["Project Management"],
"description": "Get a list of all available projects that are located in "
"the GRASS database and the user has access to. Minimum required "
"user role: user.",
"responses": {
"200": {
"description": "This response returns a list of location names",
"description": "This response returns a list of project names",
"schema": LocationListResponseModel,
},
"400": {
Expand All @@ -60,14 +60,14 @@
}

get_user_doc = {
"tags": ["Location Management"],
"description": "Get the location projection and current computational "
"tags": ["Project Management"],
"description": "Get the project projection and current computational "
"region of the PERMANENT mapset. Minimum required user "
"role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -76,7 +76,7 @@
],
"responses": {
"200": {
"description": "The location projection and current computational "
"description": "The project projection and current computational "
"region of the PERMANENT mapset",
"schema": MapsetInfoResponseModel,
},
Expand All @@ -88,21 +88,21 @@
}

delete_user_doc = {
"tags": ["Location Management"],
"description": "Delete an existing location and everything inside from the"
"tags": ["Project Management"],
"description": "Delete an existing project and everything inside from the"
" user database. Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location to be deleted",
"name": "project_name",
"description": "The name of the project to be deleted",
"required": True,
"in": "path",
"type": "string",
}
],
"responses": {
"200": {
"description": "Success message for location deletion",
"description": "Success message for project deletion",
"schema": SimpleResponseModel,
},
"400": {
Expand All @@ -113,14 +113,14 @@
}

post_user_doc = {
"tags": ["Location Management"],
"description": "Create a new location based on EPSG code in the user "
"tags": ["Project Management"],
"description": "Create a new project based on EPSG code in the user "
"database. Minimum required user role: user.",
"consumes": ["application/json"],
"parameters": [
{
"name": "location_name",
"description": "The name of the location to be created",
"name": "project_name",
"description": "The name of the project to be created",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -135,7 +135,7 @@
],
"responses": {
"200": {
"description": "Create a new location based on EPSG code",
"description": "Create a new project based on EPSG code",
"schema": ProcessingResponseModel,
},
"400": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
raster_get_doc = {
"tags": ["Raster Management"],
"description": "Get a list of raster map layer names that are located "
"in a specific location/mapset."
"in a specific project/mapset."
" Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -85,12 +85,12 @@
raster_put_doc = {
"tags": ["Raster Management"],
"description": "Rename a single raster map layer or a list of raster "
"map layers that are located in a specific location/mapset. "
"map layers that are located in a specific project/mapset. "
"Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -130,11 +130,11 @@
"tags": ["Raster Management"],
"description": "Delete a single raster map layer or a list of raster "
"map layer names that are located in a specific "
"location/mapset. Minimum required user role: user.",
"project/mapset. Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -174,12 +174,12 @@
vector_get_doc = {
"tags": ["Vector Management"],
"description": "Get a list of vector map layer names that are located "
"in a specific location/mapset."
"in a specific project/mapset."
" Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -222,11 +222,11 @@
"tags": ["Vector Management"],
"description": "Rename a single vector map layer or a list of vector "
"map layers that are located in a specific "
"location/mapset. Minimum required user role: user.",
"project/mapset. Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -266,11 +266,11 @@
"tags": ["Vector Management"],
"description": "Delete a single vector map layer or a list of vector "
"map layer names that are located in a specific "
"location/mapset. Minimum required user role: user.",
"project/mapset. Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location that should be accessed",
"name": "project_name",
"description": "The name of the project that should be accessed",
"required": True,
"in": "path",
"type": "string",
Expand Down
48 changes: 24 additions & 24 deletions src/actinia_api/swagger2/actinia_core/apidocs/mapset_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
get_doc = {
"tags": ["Mapset Management"],
"description": "Get a list of all mapsets that are located in a "
"specific location. "
"specific project. "
"Minimum required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -74,12 +74,12 @@
get_user_doc = {
"tags": ["Mapset Management"],
"description": "Get the current computational region of the mapset and the"
" projection of the location as WKT string. Minimum required "
" projection of the project as WKT string. Minimum required "
"user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -97,7 +97,7 @@
"responses": {
"200": {
"description": "The current computational region of the "
"mapset and the projection of the location",
"mapset and the projection of the project",
"schema": MapsetInfoResponseModel,
},
"400": {
Expand All @@ -109,12 +109,12 @@

post_user_doc = {
"tags": ["Mapset Management"],
"description": "Create a new mapset in an existing location. Minimum "
"description": "Create a new mapset in an existing project. Minimum "
"required user role: user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand Down Expand Up @@ -145,8 +145,8 @@
" user.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -173,12 +173,12 @@

get_lock_doc = {
"tags": ["Mapset Management"],
"description": "Get the location/mapset lock status. "
"description": "Get the project/mapset lock status. "
"Minimum required user role: admin.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -195,7 +195,7 @@
],
"responses": {
"200": {
"description": "Get the location/mapset lock status, either "
"description": "Get the project/mapset lock status, either "
'"True" or "None"',
"schema": MapsetLockManagementResponseModel,
},
Expand All @@ -208,14 +208,14 @@

post_lock_doc = {
"tags": ["Mapset Management"],
"description": "Create a location/mapset lock. A location/mapset lock can "
"description": "Create a project/mapset lock. A project/mapset lock can "
"be created so that no operation can be performed on it "
"until it is unlocked. "
"Minimum required user role: admin.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -232,7 +232,7 @@
],
"responses": {
"200": {
"description": "Success message if the location/mapset was "
"description": "Success message if the project/mapset was "
"locked successfully",
"schema": ProcessingResponseModel,
},
Expand All @@ -245,14 +245,14 @@

delete_lock_doc = {
"tags": ["Mapset Management"],
"description": "Delete a location/mapset lock. A location/mapset lock "
"description": "Delete a project/mapset lock. A project/mapset lock "
"can be deleted so that operation can be performed on "
"it until it is locked. "
"Minimum required user role: admin.",
"parameters": [
{
"name": "location_name",
"description": "The name of the location",
"name": "project_name",
"description": "The name of the project",
"required": True,
"in": "path",
"type": "string",
Expand All @@ -269,7 +269,7 @@
],
"responses": {
"200": {
"description": "Success message if the location/mapset was "
"description": "Success message if the project/mapset was "
"unlocked successfully",
"schema": ProcessingResponseModel,
},
Expand Down
2 changes: 1 addition & 1 deletion src/actinia_api/swagger2/actinia_core/apidocs/mapsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"type": "string",
"description": (
"If set to 'locked', list all locked mapsets across "
"all locations. Minimum required user role: admin."
"all projects. Minimum required user role: admin."
),
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"consumes": ["application/json"],
"parameters": [
{
"name": "location_name",
"description": "The location name",
"name": "project_name",
"description": "The project name",
"required": True,
"in": "path",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"consumes": ["application/json"],
"parameters": [
{
"name": "location_name",
"description": "The location name that contains the data that "
"name": "project_name",
"description": "The project name that contains the data that "
"should be used in the process chain",
"required": True,
"in": "path",
Expand Down
Loading

0 comments on commit 624186a

Please sign in to comment.