# GetAppDetails returns application details by given path

`POST /api/v1/repositories/{source.repoURL}/appdetails`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Parameters:

- `source.repoURL` (path, string, required) - RepoURL is the URL to the repository (Git or Helm) that contains the application manifests
  Type: string

Request body: application/json (required)

Type: object

Schema: [repositoryRepoAppDetailsQuery](https://sourcey-argocd.pages.dev/api/models/repositoryrepoappdetailsquery/index.md)

- `appName` (optional)
  Type: string

- `appProject` (optional)
  Type: string

- `source` (optional)
  Reference: [v1alpha1ApplicationSource](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationsource/index.md); Type: object

- `sourceIndex` (optional)
  Type: integer, int32

- `versionId` (optional)
  Type: integer, int32

Responses:

- 200: A successful response.

Content type: application/json

Type: object

Schema: [repositoryRepoAppDetailsResponse](https://sourcey-argocd.pages.dev/api/models/repositoryrepoappdetailsresponse/index.md)

- `directory` (optional)
  Reference: [repositoryDirectoryAppSpec](https://sourcey-argocd.pages.dev/api/models/repositorydirectoryappspec/index.md); Type: object

- `helm` (optional)
  Reference: [repositoryHelmAppSpec](https://sourcey-argocd.pages.dev/api/models/repositoryhelmappspec/index.md); Type: object

- `kustomize` (optional)
  Reference: [repositoryKustomizeAppSpec](https://sourcey-argocd.pages.dev/api/models/repositorykustomizeappspec/index.md); Type: object

- `plugin` (optional)
  Reference: [repositoryPluginAppSpec](https://sourcey-argocd.pages.dev/api/models/repositorypluginappspec/index.md); Type: object

- `type` (optional)
  Type: string

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X POST 'https://argocd.example.com/api/v1/repositories/string/appdetails' \
  -H 'Authorization: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "appName": "string",
  "appProject": "string",
  "source": {
    "chart": "string",
    "directory": {
      "disableExtensionFilter": true,
      "exclude": "string",
      "include": "string",
      "jsonnet": {
        "extVars": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ],
        "libs": [
          "string"
        ],
        "tlas": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ]
      },
      "recurse": true
    },
    "helm": {
      "apiVersions": [
        "string"
      ],
      "fileParameters": [
        {
          "name": "string",
          "path": "string"
        }
      ],
      "ignoreMissingValueFiles": true,
      "kubeVersion": "string",
      "namespace": "string",
      "parameters": [
        {
          "forceString": true,
          "name": "string",
          "value": "string"
        }
      ],
      "passCredentials": true,
      "releaseName": "string",
      "skipCrds": true,
      "skipSchemaValidation": true,
      "skipTests": true,
      "valueFiles": [
        "string"
      ],
      "values": "string",
      "valuesObject": {
        "raw": "dGVzdA=="
      },
      "version": "string"
    },
    "kustomize": {
      "apiVersions": [
        "string"
      ],
      "commonAnnotations": {},
      "commonAnnotationsEnvsubst": true,
      "commonLabels": {},
      "components": [
        "string"
      ],
      "forceCommonAnnotations": true,
      "forceCommonLabels": true,
      "ignoreMissingComponents": true,
      "images": [
        "string"
      ],
      "kubeVersion": "string",
      "labelIncludeTemplates": true,
      "labelWithoutSelector": true,
      "namePrefix": "string",
      "nameSuffix": "string",
      "namespace": "string",
      "patches": [
        {
          "options": {},
          "patch": "string",
          "path": "string",
          "target": {
            "annotationSelector": "string",
            "labelSelector": "string",
            "resId": {
              "gvk": {
                "group": "string",
                "kind": "string",
                "version": "string"
              },
              "name": "string",
              "namespace": "string"
            }
          }
        }
      ],
      "replicas": [
        {
          "count": {
            "intVal": 0,
            "strVal": "string",
            "type": 0
          },
          "name": "string"
        }
      ],
      "version": "string"
    },
    "name": "string",
    "path": "string",
    "plugin": {
      "env": [
        {
          "name": "string",
          "value": "string"
        }
      ],
      "name": "string",
      "parameters": [
        {
          "array": [
            "string"
          ],
          "map": {},
          "name": "string",
          "string": "string"
        }
      ]
    },
    "ref": "string",
    "repoURL": "string",
    "tagPrefix": "string",
    "targetRevision": "string"
  },
  "sourceIndex": 0,
  "versionId": 0
}'
```

### JavaScript

```javascript
const body = `{
  "appName": "string",
  "appProject": "string",
  "source": {
    "chart": "string",
    "directory": {
      "disableExtensionFilter": true,
      "exclude": "string",
      "include": "string",
      "jsonnet": {
        "extVars": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ],
        "libs": [
          "string"
        ],
        "tlas": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ]
      },
      "recurse": true
    },
    "helm": {
      "apiVersions": [
        "string"
      ],
      "fileParameters": [
        {
          "name": "string",
          "path": "string"
        }
      ],
      "ignoreMissingValueFiles": true,
      "kubeVersion": "string",
      "namespace": "string",
      "parameters": [
        {
          "forceString": true,
          "name": "string",
          "value": "string"
        }
      ],
      "passCredentials": true,
      "releaseName": "string",
      "skipCrds": true,
      "skipSchemaValidation": true,
      "skipTests": true,
      "valueFiles": [
        "string"
      ],
      "values": "string",
      "valuesObject": {
        "raw": "dGVzdA=="
      },
      "version": "string"
    },
    "kustomize": {
      "apiVersions": [
        "string"
      ],
      "commonAnnotations": {},
      "commonAnnotationsEnvsubst": true,
      "commonLabels": {},
      "components": [
        "string"
      ],
      "forceCommonAnnotations": true,
      "forceCommonLabels": true,
      "ignoreMissingComponents": true,
      "images": [
        "string"
      ],
      "kubeVersion": "string",
      "labelIncludeTemplates": true,
      "labelWithoutSelector": true,
      "namePrefix": "string",
      "nameSuffix": "string",
      "namespace": "string",
      "patches": [
        {
          "options": {},
          "patch": "string",
          "path": "string",
          "target": {
            "annotationSelector": "string",
            "labelSelector": "string",
            "resId": {
              "gvk": {
                "group": "string",
                "kind": "string",
                "version": "string"
              },
              "name": "string",
              "namespace": "string"
            }
          }
        }
      ],
      "replicas": [
        {
          "count": {
            "intVal": 0,
            "strVal": "string",
            "type": 0
          },
          "name": "string"
        }
      ],
      "version": "string"
    },
    "name": "string",
    "path": "string",
    "plugin": {
      "env": [
        {
          "name": "string",
          "value": "string"
        }
      ],
      "name": "string",
      "parameters": [
        {
          "array": [
            "string"
          ],
          "map": {},
          "name": "string",
          "string": "string"
        }
      ]
    },
    "ref": "string",
    "repoURL": "string",
    "tagPrefix": "string",
    "targetRevision": "string"
  },
  "sourceIndex": 0,
  "versionId": 0
}`;

const response = await fetch('https://argocd.example.com/api/v1/repositories/string/appdetails', {
  method: 'POST',
  headers: {
    'Authorization': 'YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "appName": "string",
  "appProject": "string",
  "source": {
    "chart": "string",
    "directory": {
      "disableExtensionFilter": true,
      "exclude": "string",
      "include": "string",
      "jsonnet": {
        "extVars": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ],
        "libs": [
          "string"
        ],
        "tlas": [
          {
            "code": true,
            "name": "string",
            "value": "string"
          }
        ]
      },
      "recurse": true
    },
    "helm": {
      "apiVersions": [
        "string"
      ],
      "fileParameters": [
        {
          "name": "string",
          "path": "string"
        }
      ],
      "ignoreMissingValueFiles": true,
      "kubeVersion": "string",
      "namespace": "string",
      "parameters": [
        {
          "forceString": true,
          "name": "string",
          "value": "string"
        }
      ],
      "passCredentials": true,
      "releaseName": "string",
      "skipCrds": true,
      "skipSchemaValidation": true,
      "skipTests": true,
      "valueFiles": [
        "string"
      ],
      "values": "string",
      "valuesObject": {
        "raw": "dGVzdA=="
      },
      "version": "string"
    },
    "kustomize": {
      "apiVersions": [
        "string"
      ],
      "commonAnnotations": {},
      "commonAnnotationsEnvsubst": true,
      "commonLabels": {},
      "components": [
        "string"
      ],
      "forceCommonAnnotations": true,
      "forceCommonLabels": true,
      "ignoreMissingComponents": true,
      "images": [
        "string"
      ],
      "kubeVersion": "string",
      "labelIncludeTemplates": true,
      "labelWithoutSelector": true,
      "namePrefix": "string",
      "nameSuffix": "string",
      "namespace": "string",
      "patches": [
        {
          "options": {},
          "patch": "string",
          "path": "string",
          "target": {
            "annotationSelector": "string",
            "labelSelector": "string",
            "resId": {
              "gvk": {
                "group": "string",
                "kind": "string",
                "version": "string"
              },
              "name": "string",
              "namespace": "string"
            }
          }
        }
      ],
      "replicas": [
        {
          "count": {
            "intVal": 0,
            "strVal": "string",
            "type": 0
          },
          "name": "string"
        }
      ],
      "version": "string"
    },
    "name": "string",
    "path": "string",
    "plugin": {
      "env": [
        {
          "name": "string",
          "value": "string"
        }
      ],
      "name": "string",
      "parameters": [
        {
          "array": [
            "string"
          ],
          "map": {},
          "name": "string",
          "string": "string"
        }
      ]
    },
    "ref": "string",
    "repoURL": "string",
    "tagPrefix": "string",
    "targetRevision": "string"
  },
  "sourceIndex": 0,
  "versionId": 0
}'''

response = requests.post(
    'https://argocd.example.com/api/v1/repositories/string/appdetails',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
