# \AppsApi
All URIs are relative to *https://api.spatio.app*
[**create_app**](AppsApi.md#create_app) | **POST** /v1/apps | Register a prototype app (project_path is the on-disk root).
[**delete_app**](AppsApi.md#delete_app) | **DELETE** /v1/apps/{id} | Delete an app.
[**delete_app_file**](AppsApi.md#delete_app_file) | **DELETE** /v1/apps/{id}/file | Delete one file inside the app's project directory.
[**get_app**](AppsApi.md#get_app) | **GET** /v1/apps/{id} | Fetch an app.
[**list_app_files**](AppsApi.md#list_app_files) | **GET** /v1/apps/{id}/files | List files inside the app's project directory.
[**list_apps**](AppsApi.md#list_apps) | **GET** /v1/apps | List the caller's prototype apps.
[**read_app_file**](AppsApi.md#read_app_file) | **GET** /v1/apps/{id}/file | Read one file inside the app's project directory. Path is traversal-checked; returns 400 if it escapes project root.
[**update_app**](AppsApi.md#update_app) | **PATCH** /v1/apps/{id} | Update an app.
[**workspace_create_app**](AppsApi.md#workspace_create_app) | **POST** /v1/organizations/{org}/workspaces/{workspace}/apps |
[**workspace_delete_app**](AppsApi.md#workspace_delete_app) | **DELETE** /v1/organizations/{org}/workspaces/{workspace}/apps/{id} |
[**workspace_get_app**](AppsApi.md#workspace_get_app) | **GET** /v1/organizations/{org}/workspaces/{workspace}/apps/{id} |
[**workspace_list_apps**](AppsApi.md#workspace_list_apps) | **GET** /v1/organizations/{org}/workspaces/{workspace}/apps |
[**workspace_update_app**](AppsApi.md#workspace_update_app) | **PATCH** /v1/organizations/{org}/workspaces/{workspace}/apps/{id} |
[**write_app_file**](AppsApi.md#write_app_file) | **POST** /v1/apps/{id}/file | Write one file inside the app's project directory.
## create_app
> models::App create_app(create_app_request)
Register a prototype app (project_path is the on-disk root).
### Parameters
**create_app_request** | [**CreateAppRequest**](CreateAppRequest.md) | | [required] |
### Return type
[**models::App**](App.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_app
> delete_app(id)
Delete an app.
### Parameters
**id** | **String** | | [required] |
### Return type
(empty response body)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_app_file
> delete_app_file(id, path)
Delete one file inside the app's project directory.
### Parameters
**id** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
(empty response body)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_app
> models::App get_app(id)
Fetch an app.
### Parameters
**id** | **String** | | [required] |
### Return type
[**models::App**](App.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_app_files
> models::AppFileListResponse list_app_files(id, path)
List files inside the app's project directory.
### Parameters
**id** | **String** | | [required] |
**path** | Option<**String**> | | |
### Return type
[**models::AppFileListResponse**](AppFileListResponse.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_apps
> models::AppListResponse list_apps()
List the caller's prototype apps.
### Parameters
This endpoint does not need any parameter.
### Return type
[**models::AppListResponse**](AppListResponse.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## read_app_file
> models::AppFileContentResponse read_app_file(id, path)
Read one file inside the app's project directory. Path is traversal-checked; returns 400 if it escapes project root.
### Parameters
**id** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::AppFileContentResponse**](AppFileContentResponse.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## update_app
> models::App update_app(id, update_app_request)
Update an app.
### Parameters
**id** | **String** | | [required] |
**update_app_request** | [**UpdateAppRequest**](UpdateAppRequest.md) | | [required] |
### Return type
[**models::App**](App.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## workspace_create_app
> std::collections::HashMap<String, serde_json::Value> workspace_create_app(org, workspace, request_body)
### Parameters
**org** | **String** | | [required] |
**workspace** | **String** | | [required] |
**request_body** | [**std::collections::HashMap<String, serde_json::Value>**](SerdeJson__Value.md) | | [required] |
### Return type
[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## workspace_delete_app
> workspace_delete_app(org, workspace, id)
### Parameters
**org** | **String** | | [required] |
**workspace** | **String** | | [required] |
**id** | **String** | | [required] |
### Return type
(empty response body)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## workspace_get_app
> std::collections::HashMap<String, serde_json::Value> workspace_get_app(org, workspace, id)
### Parameters
**org** | **String** | | [required] |
**workspace** | **String** | | [required] |
**id** | **String** | | [required] |
### Return type
[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## workspace_list_apps
> std::collections::HashMap<String, serde_json::Value> workspace_list_apps(org, workspace)
### Parameters
**org** | **String** | | [required] |
**workspace** | **String** | | [required] |
### Return type
[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## workspace_update_app
> std::collections::HashMap<String, serde_json::Value> workspace_update_app(org, workspace, id, request_body)
### Parameters
**org** | **String** | | [required] |
**workspace** | **String** | | [required] |
**id** | **String** | | [required] |
**request_body** | [**std::collections::HashMap<String, serde_json::Value>**](SerdeJson__Value.md) | | [required] |
### Return type
[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## write_app_file
> write_app_file(id, write_app_file_request)
Write one file inside the app's project directory.
### Parameters
**id** | **String** | | [required] |
**write_app_file_request** | [**WriteAppFileRequest**](WriteAppFileRequest.md) | | [required] |
### Return type
(empty response body)
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)