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

custom-api parameters #356

Open
ralphocdol opened this issue Feb 17, 2025 · 1 comment
Open

custom-api parameters #356

ralphocdol opened this issue Feb 17, 2025 · 1 comment
Labels
feature request roadmap Will likely be implemented in the future
Milestone

Comments

@ralphocdol
Copy link
Contributor

Description

Hi, thanks for the project.

I'd like to suggest adding parameters: like the one from extensions mainly to make it clean and easier to make a custom-api. Some parameters can be long

from:

- type: custom-api
  css-class: services-custom-api
  cache: 1m
  url: ${URL}/api?sample1=test1&sample2=test2&sample3=test3&sample4=test4&sample5=test5
  headers:
    Authorization: Token ${KEY}
    Accept: application/json
  template: |
    <div>some template</div>

to:

- type: custom-api
  css-class: services-custom-api
  cache: 1m
  url: ${URL}/api
  parameters:
    sample1: test1
    sample2: test2
    sample3: test3
    sample4: test4
    sample5: test5
  headers:
    Authorization: Token ${KEY}
    Accept: application/json
  template: |
    <div>some template</div>
@svilenmarkov
Copy link
Member

Hey, thanks for the suggestion! I'll get this added, it would be nice to have.

@svilenmarkov svilenmarkov added the roadmap Will likely be implemented in the future label Feb 17, 2025
@svilenmarkov svilenmarkov added this to the v0.8.0 milestone Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request roadmap Will likely be implemented in the future
Projects
None yet
Development

No branches or pull requests

2 participants