|
806 | 806 | } |
807 | 807 | }, |
808 | 808 | "/dataset/{dataset}/tiles": { |
| 809 | + "get": { |
| 810 | + "tags": [ |
| 811 | + "Datasets" |
| 812 | + ], |
| 813 | + "summary": "Retrieves details about a dataset using the internal name.", |
| 814 | + "operationId": "get_dataset_tiles_handler", |
| 815 | + "parameters": [ |
| 816 | + { |
| 817 | + "name": "dataset", |
| 818 | + "in": "path", |
| 819 | + "description": "Dataset Name", |
| 820 | + "required": true, |
| 821 | + "schema": { |
| 822 | + "$ref": "#/components/schemas/DatasetName" |
| 823 | + } |
| 824 | + }, |
| 825 | + { |
| 826 | + "name": "offset", |
| 827 | + "in": "query", |
| 828 | + "required": true, |
| 829 | + "schema": { |
| 830 | + "type": "integer", |
| 831 | + "format": "int32", |
| 832 | + "minimum": 0 |
| 833 | + } |
| 834 | + }, |
| 835 | + { |
| 836 | + "name": "limit", |
| 837 | + "in": "query", |
| 838 | + "required": true, |
| 839 | + "schema": { |
| 840 | + "type": "integer", |
| 841 | + "format": "int32", |
| 842 | + "minimum": 0 |
| 843 | + } |
| 844 | + } |
| 845 | + ], |
| 846 | + "responses": { |
| 847 | + "200": { |
| 848 | + "description": "OK", |
| 849 | + "content": { |
| 850 | + "application/json": { |
| 851 | + "schema": { |
| 852 | + "type": "array", |
| 853 | + "items": { |
| 854 | + "$ref": "#/components/schemas/DatasetTile" |
| 855 | + } |
| 856 | + } |
| 857 | + } |
| 858 | + } |
| 859 | + }, |
| 860 | + "401": { |
| 861 | + "$ref": "#/components/responses/UnauthorizedUserResponse" |
| 862 | + } |
| 863 | + }, |
| 864 | + "security": [ |
| 865 | + { |
| 866 | + "session_token": [] |
| 867 | + } |
| 868 | + ] |
| 869 | + }, |
809 | 870 | "post": { |
810 | 871 | "tags": [ |
811 | 872 | "Datasets" |
812 | 873 | ], |
813 | | - "summary": "Add a tile to a gdal dataset.", |
| 874 | + "summary": "Add tiles to a gdal dataset.", |
814 | 875 | "operationId": "add_dataset_tiles_handler", |
815 | 876 | "parameters": [ |
816 | 877 | { |
|
827 | 888 | "content": { |
828 | 889 | "application/json": { |
829 | 890 | "schema": { |
830 | | - "$ref": "#/components/schemas/AutoCreateDataset" |
| 891 | + "type": "array", |
| 892 | + "items": { |
| 893 | + "$ref": "#/components/schemas/AddDatasetTile" |
| 894 | + } |
831 | 895 | } |
832 | 896 | } |
833 | 897 | }, |
834 | 898 | "required": true |
835 | 899 | }, |
836 | 900 | "responses": { |
837 | 901 | "200": { |
838 | | - "description": "" |
| 902 | + "description": "OK", |
| 903 | + "content": { |
| 904 | + "application/json": { |
| 905 | + "schema": { |
| 906 | + "type": "array", |
| 907 | + "items": { |
| 908 | + "$ref": "#/components/schemas/DatasetTileId" |
| 909 | + } |
| 910 | + } |
| 911 | + } |
| 912 | + } |
| 913 | + } |
| 914 | + }, |
| 915 | + "security": [ |
| 916 | + { |
| 917 | + "session_token": [] |
| 918 | + } |
| 919 | + ] |
| 920 | + }, |
| 921 | + "delete": { |
| 922 | + "tags": [ |
| 923 | + "Datasets" |
| 924 | + ], |
| 925 | + "summary": "Retrieves details about a dataset using the internal name.", |
| 926 | + "operationId": "delete_dataset_tiles_handler", |
| 927 | + "parameters": [ |
| 928 | + { |
| 929 | + "name": "dataset", |
| 930 | + "in": "path", |
| 931 | + "description": "Dataset Name", |
| 932 | + "required": true, |
| 933 | + "schema": { |
| 934 | + "$ref": "#/components/schemas/DatasetName" |
| 935 | + } |
| 936 | + } |
| 937 | + ], |
| 938 | + "requestBody": { |
| 939 | + "content": { |
| 940 | + "application/json": { |
| 941 | + "schema": { |
| 942 | + "$ref": "#/components/schemas/DeleteDatasetTiles" |
| 943 | + } |
| 944 | + } |
| 945 | + }, |
| 946 | + "required": true |
| 947 | + }, |
| 948 | + "responses": { |
| 949 | + "200": { |
| 950 | + "description": "OK" |
| 951 | + }, |
| 952 | + "401": { |
| 953 | + "$ref": "#/components/responses/UnauthorizedUserResponse" |
| 954 | + } |
| 955 | + }, |
| 956 | + "security": [ |
| 957 | + { |
| 958 | + "session_token": [] |
| 959 | + } |
| 960 | + ] |
| 961 | + } |
| 962 | + }, |
| 963 | + "/dataset/{dataset}/tiles/{tile}": { |
| 964 | + "put": { |
| 965 | + "tags": [ |
| 966 | + "Datasets" |
| 967 | + ], |
| 968 | + "summary": "Retrieves details about a dataset using the internal name.", |
| 969 | + "operationId": "update_dataset_tile_handler", |
| 970 | + "parameters": [ |
| 971 | + { |
| 972 | + "name": "dataset", |
| 973 | + "in": "path", |
| 974 | + "description": "Dataset Name", |
| 975 | + "required": true, |
| 976 | + "schema": { |
| 977 | + "$ref": "#/components/schemas/DatasetName" |
| 978 | + } |
| 979 | + }, |
| 980 | + { |
| 981 | + "name": "tile", |
| 982 | + "in": "path", |
| 983 | + "description": "Tile Id", |
| 984 | + "required": true, |
| 985 | + "schema": { |
| 986 | + "$ref": "#/components/schemas/DatasetTileId" |
| 987 | + } |
| 988 | + } |
| 989 | + ], |
| 990 | + "requestBody": { |
| 991 | + "content": { |
| 992 | + "application/json": { |
| 993 | + "schema": { |
| 994 | + "$ref": "#/components/schemas/UpdateDatasetTile" |
| 995 | + } |
| 996 | + } |
| 997 | + }, |
| 998 | + "required": true |
| 999 | + }, |
| 1000 | + "responses": { |
| 1001 | + "200": { |
| 1002 | + "description": "OK" |
| 1003 | + }, |
| 1004 | + "401": { |
| 1005 | + "$ref": "#/components/responses/UnauthorizedUserResponse" |
839 | 1006 | } |
840 | 1007 | }, |
841 | 1008 | "security": [ |
|
6240 | 6407 | } |
6241 | 6408 | } |
6242 | 6409 | }, |
| 6410 | + "DatasetTile": { |
| 6411 | + "type": "object", |
| 6412 | + "required": [ |
| 6413 | + "id", |
| 6414 | + "time", |
| 6415 | + "spatial_partition", |
| 6416 | + "band", |
| 6417 | + "z_index", |
| 6418 | + "params" |
| 6419 | + ], |
| 6420 | + "properties": { |
| 6421 | + "band": { |
| 6422 | + "type": "integer", |
| 6423 | + "format": "int32", |
| 6424 | + "minimum": 0 |
| 6425 | + }, |
| 6426 | + "id": { |
| 6427 | + "$ref": "#/components/schemas/DatasetTileId" |
| 6428 | + }, |
| 6429 | + "params": { |
| 6430 | + "$ref": "#/components/schemas/GdalDatasetParameters" |
| 6431 | + }, |
| 6432 | + "spatial_partition": { |
| 6433 | + "$ref": "#/components/schemas/SpatialPartition2D" |
| 6434 | + }, |
| 6435 | + "time": { |
| 6436 | + "$ref": "#/components/schemas/TimeInterval" |
| 6437 | + }, |
| 6438 | + "z_index": { |
| 6439 | + "type": "integer", |
| 6440 | + "format": "int32", |
| 6441 | + "minimum": 0 |
| 6442 | + } |
| 6443 | + } |
| 6444 | + }, |
| 6445 | + "DatasetTileId": { |
| 6446 | + "type": "string", |
| 6447 | + "format": "uuid" |
| 6448 | + }, |
6243 | 6449 | "DateTimeParseFormat": { |
6244 | 6450 | "type": "string" |
6245 | 6451 | }, |
6246 | 6452 | "DateTimeString": { |
6247 | 6453 | "type": "string" |
6248 | 6454 | }, |
| 6455 | + "DeleteDatasetTiles": { |
| 6456 | + "type": "object", |
| 6457 | + "required": [ |
| 6458 | + "tileIds" |
| 6459 | + ], |
| 6460 | + "properties": { |
| 6461 | + "tileIds": { |
| 6462 | + "type": "array", |
| 6463 | + "items": { |
| 6464 | + "$ref": "#/components/schemas/DatasetTileId" |
| 6465 | + } |
| 6466 | + } |
| 6467 | + } |
| 6468 | + }, |
6249 | 6469 | "DerivedColor": { |
6250 | 6470 | "type": "object", |
6251 | 6471 | "required": [ |
|
10287 | 10507 | } |
10288 | 10508 | } |
10289 | 10509 | }, |
| 10510 | + "UpdateDatasetTile": { |
| 10511 | + "type": "object", |
| 10512 | + "required": [ |
| 10513 | + "time", |
| 10514 | + "spatial_partition", |
| 10515 | + "band", |
| 10516 | + "z_index", |
| 10517 | + "params" |
| 10518 | + ], |
| 10519 | + "properties": { |
| 10520 | + "band": { |
| 10521 | + "type": "integer", |
| 10522 | + "format": "int32", |
| 10523 | + "minimum": 0 |
| 10524 | + }, |
| 10525 | + "params": { |
| 10526 | + "$ref": "#/components/schemas/GdalDatasetParameters" |
| 10527 | + }, |
| 10528 | + "spatial_partition": { |
| 10529 | + "$ref": "#/components/schemas/SpatialPartition2D" |
| 10530 | + }, |
| 10531 | + "time": { |
| 10532 | + "$ref": "#/components/schemas/TimeInterval" |
| 10533 | + }, |
| 10534 | + "z_index": { |
| 10535 | + "type": "integer", |
| 10536 | + "format": "int32", |
| 10537 | + "minimum": 0 |
| 10538 | + } |
| 10539 | + } |
| 10540 | + }, |
10290 | 10541 | "UpdateLayer": { |
10291 | 10542 | "type": "object", |
10292 | 10543 | "required": [ |
|
0 commit comments