@@ -714,7 +714,7 @@ By default APIs deployed by Nitric will be assigned a domain by the target cloud
714714
715715<TabItem label = " AWS" >
716716
717- ``` yaml file :nitric.prod.yaml
717+ ``` yaml title :nitric.prod.yaml
718718provider :
nitric/[email protected] 719719region : ap-southeast-2
720720
@@ -731,15 +731,15 @@ apis:
731731
732732<TabItem label="Azure">
733733
734- ` ` ` yaml file :nitric.prod.yaml
734+ ` ` ` yaml title :nitric.prod.yaml
735735# currently unsupported - request support here: https://github.com/nitrictech/nitric/issues
736736```
737737
738738</TabItem >
739739
740740<TabItem label = " Google Cloud" >
741741
742- ``` yaml file :nitric.prod.yaml
742+ ``` yaml title :nitric.prod.yaml
743743# currently unsupported - request support here: https://github.com/nitrictech/nitric/issues
744744```
745745
@@ -755,7 +755,7 @@ By default, APIs will not be deployed with a description. You can add a descript
755755
756756<TabItem label = " AWS" >
757757
758- ``` yaml file :nitric.prod.yaml
758+ ``` yaml title :nitric.prod.yaml
759759provider :
nitric/[email protected] 760760region : ap-southeast-2
761761
@@ -771,7 +771,7 @@ apis:
771771
772772<TabItem label="Azure">
773773
774- ` ` ` yaml file :nitric.prod.yaml
774+ ` ` ` yaml title :nitric.prod.yaml
775775provider :
nitric/[email protected] 776776region : Australia East
777777org : example-org
@@ -788,7 +788,7 @@ apis:
788788
789789<TabItem label="Google Cloud">
790790
791- ` ` ` yaml file :nitric.prod.yaml
791+ ` ` ` yaml title :nitric.prod.yaml
792792provider :
nitric/[email protected] 793793region : australia-southeast1
794794
@@ -857,7 +857,7 @@ Since resource names are unique across each Nitric project, you can access a res
857857
858858<CodeSwitcher>
859859
860- ` ` ` javascript !! file :services/one.js
860+ ` ` ` javascript !! title :services/one.js
861861import { api } from '@nitric/sdk'
862862
863863const accountsApi = api('accounts')
@@ -867,7 +867,7 @@ accountsApi.get('/users/:id', async () => {
867867})
868868` ` `
869869
870- ` ` ` python !! file :services/one.py
870+ ` ` ` python !! title :services/one.py
871871from nitric.application import Nitric
872872from nitric.context import HttpContext
873873from nitric.resources import api
@@ -881,7 +881,7 @@ async def get_user(ctx: HttpContext):
881881Nitric.run()
882882` ` `
883883
884- ` ` ` go !! file :services/one/main.go
884+ ` ` ` go !! title :services/one/main.go
885885import (
886886 "github.com/nitrictech/go-sdk/nitric"
887887 "github.com/nitrictech/go-sdk/nitric/apis"
@@ -898,7 +898,7 @@ func main() {
898898}
899899` ` `
900900
901- ` ` ` dart !! file :services/one.dart
901+ ` ` ` dart !! title :services/one.dart
902902import 'package:nitric_sdk/nitric.dart';
903903
904904final accountsApi = Nitric.api("accounts");
@@ -912,7 +912,7 @@ galaxyApi.get("/users/:id", (ctx) async {
912912
913913<CodeSwitcher>
914914
915- ` ` ` javascript !! file :services/two.js
915+ ` ` ` javascript !! title :services/two.js
916916import { api } from '@nitric/sdk'
917917
918918const accountsApi = api('accounts')
@@ -922,7 +922,7 @@ accountsApi.get('/orgs/:id', async () => {
922922})
923923` ` `
924924
925- ` ` ` python !! file :services/two.py
925+ ` ` ` python !! title :services/two.py
926926from nitric.application import Nitric
927927from nitric.context import HttpContext
928928from nitric.resources import api
@@ -936,7 +936,7 @@ async def get_org(ctx: HttpContext):
936936Nitric.run()
937937` ` `
938938
939- ` ` ` go !! file :services/two/main.go
939+ ` ` ` go !! title :services/two/main.go
940940import (
941941 "github.com/nitrictech/go-sdk/nitric"
942942 "github.com/nitrictech/go-sdk/nitric/apis"
@@ -953,7 +953,7 @@ func main() {
953953}
954954` ` `
955955
956- ` ` ` dart !! file :services/two.dart
956+ ` ` ` dart !! title :services/two.dart
957957import 'package:nitric_sdk/nitric.dart';
958958
959959final accountsApi = Nitric.api("accounts");
@@ -978,19 +978,19 @@ Here is the same example enhanced to import a common API resource.
978978
979979<CodeSwitcher>
980980
981- ` ` ` javascript !! file :resources/index.js
981+ ` ` ` javascript !! title :resources/index.js
982982import { api } from '@nitric/sdk'
983983
984984export const accountsApi = api('accounts')
985985` ` `
986986
987- ` ` ` python !! file :common/resources.py
987+ ` ` ` python !! title :common/resources.py
988988from nitric.resources import api
989989
990990accounts_api = api('accounts')
991991` ` `
992992
993- ` ` ` go !! file :resources/main.go
993+ ` ` ` go !! title :resources/main.go
994994import (
995995 "github.com/nitrictech/go-sdk/nitric"
996996 "github.com/nitrictech/go-sdk/nitric/apis"
@@ -1004,7 +1004,7 @@ func init() {
10041004}
10051005` ` `
10061006
1007- ` ` ` dart !! file :common/resources.dart
1007+ ` ` ` dart !! title :common/resources.dart
10081008import 'package:nitric_sdk/nitric.dart';
10091009
10101010final accountsApi = Nitric.api("accounts");
@@ -1014,15 +1014,15 @@ final accountsApi = Nitric.api("accounts");
10141014
10151015<CodeSwitcher>
10161016
1017- ` ` ` javascript !! file :services/one.js
1017+ ` ` ` javascript !! title :services/one.js
10181018import { accountsApi } from '../resources'
10191019
10201020accountsApi.get('/users/:id', async () => {
10211021 // your logic here
10221022})
10231023` ` `
10241024
1025- ` ` ` python !! file :services/one.py
1025+ ` ` ` python !! title :services/one.py
10261026from nitric.application import Nitric
10271027from nitric.context import HttpContext
10281028from common.resources import accounts_api
@@ -1035,7 +1035,7 @@ async def get_user(ctx: HttpContext):
10351035Nitric.run()
10361036` ` `
10371037
1038- ` ` ` go !! file :services/one/main.go
1038+ ` ` ` go !! title :services/one/main.go
10391039package main
10401040
10411041import (
@@ -1054,7 +1054,7 @@ func main() {
10541054}
10551055` ` `
10561056
1057- ` ` ` dart !! file :services/one.dart
1057+ ` ` ` dart !! title :services/one.dart
10581058import '../resources';
10591059
10601060accountsApi.get("/users/:id", (ctx) async {
@@ -1066,15 +1066,15 @@ accountsApi.get("/users/:id", (ctx) async {
10661066
10671067<CodeSwitcher>
10681068
1069- ` ` ` javascript !! file :services/two.js
1069+ ` ` ` javascript !! title :services/two.js
10701070import { accountsApi } from '../resources'
10711071
10721072accountsApi.get('/orgs/:id', async () => {
10731073 // your logic here
10741074})
10751075` ` `
10761076
1077- ` ` ` python !! file :services/two.py
1077+ ` ` ` python !! title :services/two.py
10781078from nitric.application import Nitric
10791079from nitric.context import HttpContext
10801080from common.resources import accounts_api
@@ -1087,7 +1087,7 @@ async def get_org(ctx: HttpContext):
10871087Nitric.run()
10881088` ` `
10891089
1090- ` ` ` go !! file :services/two/main.go
1090+ ` ` ` go !! title :services/two/main.go
10911091package main
10921092
10931093import (
@@ -1106,7 +1106,7 @@ func main() {
11061106}
11071107` ` `
11081108
1109- ` ` ` dart !! file :services/two.dart
1109+ ` ` ` dart !! title :services/two.dart
11101110import '../resources';
11111111
11121112accountsApi.get("/orgs/:id", (ctx) async {
0 commit comments