Hot answers tagged

9 votes
Accepted

Is it a common practice to include the version of an API into the rest interface itself?

Many APIs include a version number in the url of the service. Some examples: https://api.twitter.com/1.1/statuses/home_timeline.json https://graph.facebook.com/v2.2/me/adaccounts https://vision....
  • 567
4 votes

Are AWS Boto3 calls asynchronous?

Boto3 is a client for AWS API, so by definition it doesn't handle the synchronous or asynchronous behavior of the API call, that's the API endpoint which define that. You can safely assume that any ...
  • 11.1k
3 votes
Accepted

How to get the latest Tomcat version?

Get the latest version of Tomcat: $ curl -s 'https://api.github.com/repos/apache/tomcat/tags?per_page=1' | jq -r .[].name 9.0.20 Get the latest version of Tomcat 9: $ curl -s 'https://api.github....
  • 146
3 votes

How to get the latest stable version of Firefox?

I pulled this from the Firefox Chef cookbook (in particular this .rb file). This an example of the request they use to get the latest version based on OS and language. https://download.mozilla.org/?...
  • 3,033
2 votes
Accepted

How to get the latest stable version of Firefox?

You do not want to be parsing HTML in a programmatic way. Avoid it at all costs, if you can. It would be a nightmare to support on-going. There's actually a JSON output that Mozilla provides of all ...
  • 1,352
2 votes
Accepted

Github rest api post label gives error for array input

From my understanding of the docs, you should directly send an array (which is valid JSON), without wrapping it in an object. That is ["bug"] instead of {"labels": ["bug"]}. So, the proper request ...
2 votes

Nexus2: How can I get a list of all artifacts from a specific repository via REST API?

Try this: # Get status curl http://localhost:8081/nexus/service/local/status # List of repositories curl http://localhost:8081/nexus/service/local/repositories For the json parameter: curl -i -H ...
2 votes
Accepted

How to make a Jenkins API call when using "Log in with Google" as security?

Typically you authenticate API calls (I assume you mean HTTP REST API; there is also a Groovy API) using an API token. The API token can be generated from a user's profile page while logged in as ...
  • 2,763
2 votes
Accepted

How can I get the first part of the API Deployment URL from inside cloud formation template?

Did you try the variable ServerlessRestApi? It works for us like this: Outputs: EncryptURL: Description: "Encrypt endpoint URL for Stage environment" Value: !Sub "https://${...
2 votes

AWS REST API Query

Got it working by aws curl https://github.com/okigan/awscurl awscurl --service iam 'https://iam.amazonaws.com/?Action=ListUsers&Version=2010-05-08'
  • 175
2 votes
Accepted

AWS API Gateway as an http proxy to ALB

Try directly accessing https://my-api-lb-111222333.us-east-1.elb.amazonaws.com from your web browser and you'll get a similar error. The SSL certificate is not just used for encryption -- it also ...
2 votes
Accepted

Github Actions Last Build API

List workflow runs would be the equivalent API endpoint in Github Actions: GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs You can use the status query parameter e.g. to filter for ...
  • 158
1 vote

How to get Docker Container stats using DataDog API?

I'm not sure I understand what you're trying to do, but .. DataDog has a Docker Intergration, which when configured provides a status of every single container on a host. Then, by simply querying the ...
  • 749
1 vote
Accepted

From inside a Docker container, how can I consume an API that is on the machine's localhost?

I'm not sure I can help you, but this might : https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach tldr (bridge mode): to get ...
  • 51
1 vote
Accepted

Why do I get "Connection Refused" when attempting to connect to IPFS API using HTTP?

Based on a tip from the Reddit user techiesaravana who says Hi, you have to edit ipfs config file you need to change the Address field to "/ip4/0.0.0.0/tcp/5001" I was able to solve the ...
1 vote

Trying to run a simple API GET request for private Gitlab account

The parameter should come at the end of the URL: Invoke-RestMethod -Uri https://gitlab.com/api/v4/projects/1234567?private_token=$my_private_token I prefer to pass the token in the header: Invoke-...
  • 738
1 vote

How to mitigate issues in an IIS on-prem application calling an unreliable cloud vendor API?

I'd make the invocation safe, use some try/catch on the invocation itself. That way, if the API is unreachable or HTTP error code is returned - the app can handle it and present the "error" ...
1 vote
Accepted

Can I run an API gateway on the same instance as my API?

It should be fine to run the API Gateway on the same server as API-apps - for smaller setups. For larger setups when you need more servers may make sense to use dedicated nodes for API Gateways. API ...
  • 925
1 vote
Accepted

Is it an antipattern to avoid API Gateway for certain tasks?

You could have a separate API gateway for that kind of traffic. Check out the "Variation: Backends for frontends" section of the following article: https://microservices.io/patterns/apigateway.html
1 vote

How can I build a Linux VM that I can use to test Rest API calls in a lab?

You can test basically any rest api call from postman, a free app that runs perfectly well in windows or Linux (or Mac I’m sure). You don’t need anything special. If you want to use Linux specific ...
1 vote
Accepted

Automated Integration Testing of an API in Azure Functions using VSTS

There is no difference on vsts for your test (unit, integrated or functional). You just set the right dll name with your tests: or select Test plan if you have a test plan with associated test ...
1 vote
Accepted

Does Oracle have an API that shows the latest stable JDK version?

http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk8 http://api.releasesoftwaremoreoften.com/latestversion?name=oraclejdk9 Running: curl -s http://releasesoftwaremoreoften.com/...
  • 12.7k
1 vote

How to get the latest Tomcat version?

Using Powershell's Invoke-WebRequest cmdlet: $Links=$(Invoke-WebRequest -Uri 'https://tomcat.apache.org/download-80.cgi' | Select-Object -ExpandProperty Links) $($Links | Where-Object -Property href -...
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible