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

Add hidden routes in your documentation #358

Open
locobastos opened this issue Jan 18, 2024 · 0 comments
Open

Add hidden routes in your documentation #358

locobastos opened this issue Jan 18, 2024 · 0 comments

Comments

@locobastos
Copy link

Hello,

Could you please add in your documentation all hidden routes and how to use them inside a CI/CD pipelines?
Here what I've found until now.

⚠️ All of the following are examples as I'm using an other language and syntax.

Authentication:

Create a New Flavor:

Create New Version:

  • Call https://electron-update.dev.ives.fr/api/version with your token in the cURL header ("Authorization: Bearer $TOKEN") and a JSON body:
    {"id":"1.1.0_MySoftware","name":"1.1.0","notes":"","channel":"stable","flavor":"MySoftware","availability":"2050-12-31T25:59:59.000Z"}

Create New Asset:

--${boundary}
Content-Disposition: form-data; name="token"

${TOKEN}
--${boundary}
Content-Disposition: form-data; name="version"

1.1.0_MySoftware
--${boundary}
Content-Disposition: form-data; name="platform"

osx_64
--${boundary}
Content-Disposition: form-data; name="file"; filename="MySoftware-1.1.0.zip"
Content-Type: application/x-zip-compressed


--${boundary}--

Currently, I'm stuck with the uploading file process and it would be great if all Admin API routes are documented.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant