Skip to content

Initial push of codegen for Mikrotik RouterOS - routeros-fetch #770

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

Open
wants to merge 35 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1011562
Initial checkin with Mikrotik RouterOS codegen for Postman
Sep 22, 2024
fadac7b
Add GH Pages for repo
mobileskyfi Sep 30, 2024
26c0821
initial index page to convert curl to routeros, via postman
mobileskyfi Sep 30, 2024
5485310
remove nacent ci from this fork
mobileskyfi Sep 30, 2024
4d6c398
made "test" workflow a workflow_dispatch in ci to avoid building
mobileskyfi Sep 30, 2024
ff30040
use correct url in index.html
mobileskyfi Sep 30, 2024
2aa0376
add hx-request='{"noHeaders": true}' for cors
mobileskyfi Sep 30, 2024
4d19e01
set htmx to allow FQDN/cors
mobileskyfi Sep 30, 2024
cc1f6a2
set meta setting before htmx loads + use change event for dropdown
mobileskyfi Sep 30, 2024
174af70
set htmx.config.selfRequestsOnly = false explictly
mobileskyfi Sep 30, 2024
bd01a92
wait for dom; minor formatting
mobileskyfi Sep 30, 2024
21c094b
fix wttr.in to be valid, for wttr.in ;)
mobileskyfi Sep 30, 2024
5d7c2cc
update favicon
mobileskyfi Oct 1, 2024
c0c5975
Merge branch 'postmanlabs:develop' into develop
mobileskyfi Oct 1, 2024
f926d7f
add "pre" fetch call on load to warmup glitch & [hopefully/slightly] …
mobileskyfi Oct 1, 2024
ed90087
moved known issues below the curl convert form
mobileskyfi Oct 1, 2024
9fbfd41
use <header> for known issues in html
mobileskyfi Oct 1, 2024
c876e6c
first pass at "waiting" to give some feedback on htmx request
mobileskyfi Oct 1, 2024
edb273e
make just the text edit wait
mobileskyfi Oct 1, 2024
746aecf
instead, use new div to communicate in-flight requests
mobileskyfi Oct 1, 2024
2a29d00
show errors
mobileskyfi Oct 1, 2024
11ff4f6
error text is not too useful...removing
mobileskyfi Oct 1, 2024
dd9d791
add note about fork to readme
mobileskyfi Oct 3, 2024
2db0e3d
add note where to find curl2rsc
mobileskyfi Oct 3, 2024
fd88170
add link to readme with index.html
mobileskyfi Oct 3, 2024
0919bf9
remove paste, add warning about passwords
mobileskyfi Oct 3, 2024
8808c05
fix for escaping commas in headers value (since comma is RouterOS sep…
mobileskyfi Nov 8, 2024
c10fd37
fix bug in "header comma" (JS is \\\\ for double backslash)
mobileskyfi Nov 8, 2024
83275af
added test + fix in fix for header commas
Nov 8, 2024
f48a816
always escape commas
Nov 8, 2024
03ff695
use toString() in header fix for nodejs context
Nov 8, 2024
4a66b7d
improve unit test; use regex global instead of replaceAll()
Nov 8, 2024
012d974
fix formating of comma warning
Nov 8, 2024
de28182
update version
Nov 8, 2024
5de67f8
add unit test, apparently \\ is only required for one element with co…
Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Test

on:
push:
branches:
- develop
- master
pull_request:
workflow_dispatch:

jobs:
Unit-Tests:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

> [!TIP]
> ### For `curl` to `/tool/fetch` conversion, see this repo's webpage:
> #### https://tikoci.github.io/postman-code-generators
> Source code lives at: https://github.com/tikoci/postman-code-generators/blob/develop/index.html

> [!IMPORTANT]
> ### Fork of `postman-code-generators`
> #### Supporting Mikrotik RouterOS `/tool/fetch`
> The Mikrotik RouterOS codegen is named `routeros-fetch` in Postman's _lang_-_library_ scheme.
> This forks code support RouterOS is largely within: https://github.com/tikoci/postman-code-generators/tree/develop/codegens/routeros-fetch

<a href="https://www.getpostman.com/"><img src="https://assets.getpostman.com/common-share/postman-logo-horizontal-320x132.png" /></a><br />
_Manage all of your organization's APIs in Postman, with the industry's most complete API development environment._

Expand Down
Loading