-
Notifications
You must be signed in to change notification settings - Fork 0
mockoon address fixed #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| # | ||
| # Prerequisites: | ||
| # 1. vNext Runtime running on localhost:4201 | ||
| # 2. Mockoon running on localhost:3001 | ||
| # 2. Mockoon running on mockoon:3001 | ||
| ############################################################################### | ||
|
|
||
| @baseUrl = http://localhost:4201 | ||
|
|
@@ -163,11 +163,11 @@ Accept: application/json | |
| ############################################################################### | ||
|
|
||
| ### Test Get Contract Documents (Mockoon) | ||
| GET http://localhost:3001/api/contract/documents?groupCode=KG-2024-001 | ||
| GET http://mockoon:3001/api/contract/documents?groupCode=KG-2024-001 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Mockoon base URL is hardcoded here. This file already uses a variable Since the PR description mentions these files might be generated, this change should ideally be made in the generator or template for these This comment applies to all |
||
| Accept: application/json | ||
|
|
||
| ### Test Render Document (Mockoon) | ||
| POST http://localhost:3001/api/contract/documents/render | ||
| POST http://mockoon:3001/api/contract/documents/render | ||
| Content-Type: application/json | ||
|
|
||
| { | ||
|
|
@@ -177,7 +177,7 @@ Content-Type: application/json | |
| } | ||
|
|
||
| ### Test Notify Document Approved (Mockoon) | ||
| POST http://localhost:3001/api/contract/documents/notify-approved | ||
| POST http://mockoon:3001/api/contract/documents/notify-approved | ||
| Content-Type: application/json | ||
|
|
||
| { | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The base URL for the mock service (
http://mockoon:3001) is hardcoded. Since the PR description mentions these files might be generated, it would be best to address this in the generation script or template. Hardcoding URLs across many files can make future configuration changes difficult.Consider using a placeholder for the base URL in the source template, for example
{{mockoonBaseUrl}}, which can be substituted during the generation process. This would centralize the configuration and improve maintainability. This comment applies to all similar task definition files modified in this pull request.