Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit b6eaec3

Browse files
committed
Add environment variable in front of the URLs to make it easier to target localhost or prod from the same postman config
1 parent 98821db commit b6eaec3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

submit.postman_collection.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"name": "Generate token",
1212
"request": {
13-
"url": "http://localhost:8080/api/users/[email protected]",
13+
"url": "{{baseurl}}/api/users/[email protected]",
1414
"method": "POST",
1515
"header": [],
1616
"body": {
@@ -24,7 +24,7 @@
2424
{
2525
"name": "Invalidate token",
2626
"request": {
27-
"url": "http://localhost:8080/api/users/authtoken?token=f800959c-2b8d-44e1-b56b-a561225e3a52",
27+
"url": "{{baseurl}}/api/users/authtoken?token=f800959c-2b8d-44e1-b56b-a561225e3a52",
2828
"method": "DELETE",
2929
"header": [],
3030
"body": {
@@ -38,7 +38,7 @@
3838
{
3939
"name": "Get all submissions",
4040
"request": {
41-
"url": "http://localhost:8080/api/submissions",
41+
"url": "{{baseurl}}/api/submissions",
4242
"method": "GET",
4343
"header": [
4444
{
@@ -58,7 +58,7 @@
5858
{
5959
"name": "Get single submission",
6060
"request": {
61-
"url": "http://localhost:8080/api/submissions/f4610423194d463983669adfab80c986",
61+
"url": "{{baseurl}}/api/submissions/f4610423194d463983669adfab80c986",
6262
"method": "GET",
6363
"header": [
6464
{
@@ -78,7 +78,7 @@
7878
{
7979
"name": "Create empty draft",
8080
"request": {
81-
"url": "http://localhost:8080/api/submissions",
81+
"url": "{{baseurl}}/api/submissions",
8282
"method": "POST",
8383
"header": [
8484
{
@@ -98,7 +98,7 @@
9898
{
9999
"name": "Update subscription",
100100
"request": {
101-
"url": "http://localhost:8080/api/submissions/2bd95155579048ceb5b8f131bfa6f7f1",
101+
"url": "{{baseurl}}/api/submissions/2bd95155579048ceb5b8f131bfa6f7f1",
102102
"method": "PUT",
103103
"header": [
104104
{

0 commit comments

Comments
 (0)