File tree Expand file tree Collapse file tree 7 files changed +129
-0
lines changed Expand file tree Collapse file tree 7 files changed +129
-0
lines changed Original file line number Diff line number Diff line change @@ -648,6 +648,10 @@ paths:
648648 get :
649649 $ref : " resources/apps/apps_get_instanceSize.yml"
650650
651+ /v2/apps/templates :
652+ get :
653+ $ref : " resources/apps/apps_list_templates.yml"
654+
651655 /v2/apps/regions :
652656 get :
653657 $ref : " resources/apps/apps_list_regions.yml"
Original file line number Diff line number Diff line change 1+ operationId : apps_list_templates
2+
3+ summary : Get App Templates
4+
5+ description : Retrieve a list of app templates.
6+
7+ tags :
8+ - Apps
9+
10+ responses :
11+ " 200 " :
12+ $ref : responses/app_templates.yml
13+
14+ " 401 " :
15+ $ref : ../../shared/responses/unauthorized.yml
16+
17+ " 404 " :
18+ $ref : " ../../shared/responses/not_found.yml"
19+
20+ " 429 " :
21+ $ref : " ../../shared/responses/too_many_requests.yml"
22+
23+ " 500 " :
24+ $ref : ../../shared/responses/server_error.yml
25+
26+ default :
27+ $ref : ../../shared/responses/unexpected_error.yml
28+
29+ x-codeSamples :
30+ - $ref : ' examples/curl/apps_list_templates.yml'
31+
32+ security :
33+ - bearer_auth :
34+ - ' app:read'
35+
Original file line number Diff line number Diff line change 1+ lang : cURL
2+ source : |-
3+ curl -X GET \
4+ -H "Content-Type: application/json" \
5+ -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+ "https://api.digitalocean.com/v2/apps/templates"
Original file line number Diff line number Diff line change 1+ type : object
2+ properties :
3+ name :
4+ type : string
5+ example : Flask with Valkey support
6+ repo_url :
7+ type : string
8+ example : https://github.com/digitalocean/template-flask-app.git
9+ branch :
10+ type : string
11+ example : main
12+ repo_owner :
13+ type : string
14+ example : digitalocean
15+ repo_name :
16+ type : string
17+ example : template-flask-app
18+ environment_slug :
19+ type : string
20+ example : python
21+ component_types :
22+ type : array
23+ items :
24+ type : string
25+ example :
26+ - service
27+ - worker
28+ - static_site
29+ - job
30+ product_docs_page :
31+ type : string
32+ example : https://www.digitalocean.com/docs/app-platform/how-to/create-apps/#create-a-new-app
33+ description :
34+ type : string
35+ example : A Flask app with Valkey support
36+ language :
37+ type : string
38+ example : Python
39+ frameworks :
40+ type : array
41+ items :
42+ type : string
43+ example :
44+ - Flask
45+
Original file line number Diff line number Diff line change 1+ properties :
2+ sample-repos :
3+ " $ref " : app_template.yml
4+ type : object
Original file line number Diff line number Diff line change 1+ description : A JSON object with a `sample_repos`.
2+
3+ content :
4+ application/json :
5+ schema :
6+ $ref : ../models/app_templates_response.yml
7+ examples :
8+ app_templates :
9+ $ref : examples.yml#/app_templates
10+
11+ headers :
12+ ratelimit-limit :
13+ $ref : ../../../shared/headers.yml#/ratelimit-limit
14+ ratelimit-remaining :
15+ $ref : ../../../shared/headers.yml#/ratelimit-remaining
16+ ratelimit-reset :
17+ $ref : ../../../shared/headers.yml#/ratelimit-reset
Original file line number Diff line number Diff line change @@ -922,6 +922,24 @@ app_health:
922922 replicas_desired : 1
923923 replicas_ready : 2
924924 state : HEALTHY
925+ app_templates :
926+ value :
927+ sample_repos :
928+ - name : Flask with Valkey support
929+ description : Build a REST API for session management and real-time data using your own Valkey database.
930+ environment_slug : python
931+ repo_url : https://github.com/digitalocean/template-flask-app.git
932+ branch : main
933+ repo_owner : digitalocean
934+ repo_name : template-flask-app
935+ language : Python
936+ frameworks :
937+ - " Flask"
938+ component_types :
939+ - service
940+ - static_site
941+ - worker
942+ - job
925943app_instances :
926944 value :
927945 instances :
You can’t perform that action at this time.
0 commit comments