Skip to content
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

Wacth services functions is not working. #120

Closed
2 tasks done
matheusfrancisco opened this issue Jun 26, 2023 · 0 comments · Fixed by #126
Closed
2 tasks done

Wacth services functions is not working. #120

matheusfrancisco opened this issue Jun 26, 2023 · 0 comments · Fixed by #126
Labels
:bug Something isn't working :triage :pending

Comments

@matheusfrancisco
Copy link
Member

Search first

  • I searched and no similar issues were found

What Happened?

We are running moclojer from branch: main and when we edited the yml file the service didn't change.

Looking at the code we didn't see this log https://github.com/moclojer/moclojer/blob/main/src/moclojer/core.clj#L90.

Reproduce the Bug

  1. Run the server with a yml
  2. Edit the yml, add new endpoint
  3. try to get the endpoint will show not found

moclojer config

# This mock register route: GET /hello/:username
- endpoint:
    # Note: the method could be omitted because GET is the default
    method: GET
    path: /hello/:username
    response:
      # Note: the status could be omitted because 200 is the default
      status: 200
      headers:
        Content-Type: application/json
      # Note: the body will receive the value passed in the url using the
      # :username placeholder
      body: >
        {
          "hello": "{{path-params.username}}!"
        }

Expected Behavior

When I change the config yaml.
I would like not to have to restart the server.

Version and environment information

moclojer: branch main

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@matheusfrancisco matheusfrancisco added :bug Something isn't working :triage :pending labels Jun 26, 2023
rodweb added a commit that referenced this issue Jul 7, 2023
avelino added a commit that referenced this issue Jul 8, 2023
fixed: #120

Co-authored-by: Rodrigo Campos <rod.apd@gmail.com>
Signed-off-by: Avelino <avelinorun@gmail.com>
avelino added a commit that referenced this issue Jul 8, 2023
fixed: #120

Co-authored-by: Rodrigo Campos <rod.apd@gmail.com>
Signed-off-by: Avelino <avelinorun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:bug Something isn't working :triage :pending
Projects
None yet
1 participant