Giter Site home page Giter Site logo

aaronparker / evergreen-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 122 KB

Evergreen as an API running on Cloudflare Workers

Home Page: https://app.swaggerhub.com/apis-docs/stealthpuppy/evergreen-api/

JavaScript 81.73% PowerShell 18.27%
applications cloudflare-workers evergreen

evergreen-api's Introduction

About me

  • End user computing, modern device management, enterprise mobility, automation, PowerShell
  • Sporadic blogger and speaker
  • Principal Modern Workplace Architect and EUC practice owner @Insentra
  • Australian
  • Born at 329.56ppm

evergreen-api's People

Contributors

aaronparker avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

evergreen-api's Issues

Push data PS script does not contains single apps

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.

Basic instruction

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.

Single item from /app endpoint not returned in an array

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.