Giter Club home page Giter Club logo

cbi-sponsorships-api's People

Contributors

chrisguindon avatar fredg02 avatar heurtematte avatar mbarbero avatar pstankie avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pstankie

cbi-sponsorships-api's Issues

Add fields for used packs/agents/runners

To avoid having to compute the number of used packs/agents/runners on the client side, the following fields should be added to memberOrganizationsBenefits:

  • resourcePacks_used
  • dedicatedAgents_used
  • ghLargeRunners_used

The numbers will be calculated and synchronized before deployment.

405 Method Not Allowed - CORS error when trying to call this API using Javascript

We are experiencing issues calling the CBI endpoint with javascript. I tried to fix the issue by adding to our reverse-proxy:

add_header Access-Control-Allow-Origin *;
add_header Access-Control-Expose-Headers Etag,Link,Content-Type;

However, it's currently falling before making the GET request. The browser is trying to do an option request and I think the service that you build does not allow that:

curl -X OPTIONS -I https://api.eclipse.org/cbi/sponsorships/
HTTP/2 405
server: nginx
date: Mon, 29 Nov 2021 15:57:00 GMT
content-type: text/html
content-length: 157

The 405 Method Not Allowed is an HTTP response status code indicating that the specified request HTTP method was received and recognized by the server, but the server has rejected that particular method for the requested resource.

//cc @autumnfound @linkfang

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.