File tree Expand file tree Collapse file tree 7 files changed +112
-0
lines changed Expand file tree Collapse file tree 7 files changed +112
-0
lines changed Original file line number Diff line number Diff line change @@ -648,6 +648,10 @@ paths:
648
648
get :
649
649
$ref : " resources/apps/apps_get_instanceSize.yml"
650
650
651
+ /v2/apps/templates :
652
+ get :
653
+ $ref : " resources/apps/apps_list_templates.yml"
654
+
651
655
/v2/apps/regions :
652
656
get :
653
657
$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
+ repo_url :
6
+ type : string
7
+ branch :
8
+ type : string
9
+ repo_owner :
10
+ type : string
11
+ repo_name :
12
+ type : string
13
+ environment_slug :
14
+ type : string
15
+ component_types :
16
+ type : array
17
+ items :
18
+ type : string
19
+ product_docs_page :
20
+ type : string
21
+ description :
22
+ type : string
23
+ language :
24
+ type : string
25
+ frameworks :
26
+ type : array
27
+ items :
28
+ type : string
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:
922
922
replicas_desired : 1
923
923
replicas_ready : 2
924
924
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
925
943
app_instances :
926
944
value :
927
945
instances :
You can’t perform that action at this time.
0 commit comments