fix: mock data script

This commit is contained in:
Nikita Nek Dudnik
2020-06-04 14:03:54 +02:00
parent da071e0afa
commit 64673eaeba
2 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
"prepack": "backstage-cli prepack",
"postpack": "backstage-cli postpack",
"clean": "backstage-cli clean",
"mock-db": "sh ./scripts/mock-db"
"mock-data": "./scripts/mock-data"
},
"dependencies": {
"@backstage/backend-common": "^0.1.1-alpha.6",
+5 -8
View File
@@ -1,12 +1,9 @@
curl --location --request POST 'localhost:3003/locations' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "github",
"target": "https://github.com/spotify/backstage/blob/master/plugins/catalog-backend/fixtures/one_component.yaml"
}'
curl --location --request POST 'localhost:3003/locations' \
#!/usr/bin/env sh
curl \
--location \
--request POST 'localhost:3003/locations' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "github",
"target": "https://github.com/spotify/backstage/blob/master/plugins/catalog-backend/fixtures/two_components.yaml"
}'
}'