aaronparker / evergreen-api Goto Github PK
View Code? Open in Web Editor NEWEvergreen as an API running on Cloudflare Workers
Home Page: https://app.swaggerhub.com/apis-docs/stealthpuppy/evergreen-api/
Evergreen as an API running on Cloudflare Workers
Home Page: https://app.swaggerhub.com/apis-docs/stealthpuppy/evergreen-api/
Hi,
The PS script Push-Data.ps contains only the "AllApps" section for the /apps endpoint.
How do you collect the properties of each app in the AllApps list?
I think the script you used for it is missing from this repro.
Hi @aaronparker,
Can you make a basic instruction how we can use this repro?
When importing your repro in a dev Cloudflare Worker of mine, I'm getting the following error when browing to the /apps endpoint:
Error 1101
When doing in dev mode (npx wrangler dev) I'll getting the following error:
EVERGREEN is not defined
The home page is working fine.
I have changed the wrangler.toml to my own dev Cloudflare Worker for testing purposes.
Hi,
When requesting information about an application, you will get a response with properties.
If the endpoint return more then one item, the items are stored in a JSON object, for example:
[ { "Version": "121.0.2256.2", "Platform": "Any", "Channel": "Policy", "Release": "Enterprise", "Architecture": "any", "Hash": "EE46FC1C6663E44745BE3637DCFA775B703A224B4F097678CEC6D47E33983625", "URI": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/21b293b0-6f4e-41a9-a3a9-f3f43ae5f91c/MicrosoftEdgePolicyTemplates.cab" }, { "Version": "121.0.2256.2", "Platform": "Windows", "Channel": "Dev", "Release": "Consumer", "Architecture": "arm64", "Hash": "524F56766D53EFB7CCE4AE502200AE65ABA94533D1F37722699DC7822C80A89C", "URI": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/b3bf5fa9-9146-436c-b5e8-b868d27d457d/MicrosoftEdgeDevEnterpriseARM64.msi" }, ]
However, the behavior is different once only one item is returned. See the following example:
{ "Version": "8.10.20", "URI": "https://cache.agilebits.com/dist/1P/win8/1PasswordSetup-8.10.20.exe" }
This is not consistent and should be fixed.
In PowerShell this can be fixed as follow:
Make use of the following syntax ConvertTo-Json @($Object)
instead of $Object | ConvertTo-Json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.