Questions tagged [api]
29 questions
5
votes
1 answer
Is it a common practice to include the version of an API into the rest interface itself?
I was looking for the current version of the github API, but it seems to be omitted.
https://api.github.com/
I am personally considering to add a new field to my own API, but I wonder whether that is a common practice or should be done differently.
030
- 13,383
- 17
- 76
- 178
5
votes
1 answer
From inside a Docker container, how can I consume an API that is on the machine's localhost?
First of all, please forgive me if any information is missing or if my question does not meet the standards required by the site. I have very basic knowledge of docker, linux and networking and I am lost.
I use Ubuntu version 20.2 and I have docker…
Rafael Arend
- 53
- 1
- 1
- 3
4
votes
1 answer
Does Oracle have an API that shows the latest stable JDK version?
There is an ansible role that installs jdk8, but is incompatible with jdk9. The role parses a couple of html pages and the commands are incompatible with java9. It was quite hard to make it work for jdk9, and now the PR is broken for…
030
- 13,383
- 17
- 76
- 178
4
votes
5 answers
How to get the latest Tomcat version?
If one checks the Tomcat homepage then one could see some versions, but not only the latest. Off course I could parse the website and find the version, but I am looking for a Tomcat API that shows the latest version to prevent that I have to create…
030
- 13,383
- 17
- 76
- 178
3
votes
1 answer
Are AWS Boto3 calls asynchronous?
In the API documentation for Apache Cloud Stack for example, they put an (A) to designate asynchronous API calls.
In the Boto3 - Python client API for AWS - documentation as I can't see anything like this - so my question is whether its API is…
Ta Mu
- 6,792
- 5
- 43
- 83
3
votes
0 answers
Can I use the Jenkins REST API with user input?
I want my Jenkins Pipeline to have a user input step where it posts to a slack channel and waits for user input then uses the input to user enters (button in the slack message).
So at the input step it posts to slack with a message that has…
red888
- 243
- 3
- 10
3
votes
2 answers
How to get the latest stable version of Firefox?
How to get the latest version of firefox? This URL was found, but is there no API? I would like to get the latest version, e.g. 58.0.2 so this could be used for other purposes. Just latest is insufficient as I require the version in one of my…
030
- 13,383
- 17
- 76
- 178
2
votes
1 answer
Github rest api post label gives error for array input
We are hosting GitHub enterprise for our development. I am able to access the reset api and create jira, create PR etc.
When I try to add label to my PR, it gives error for array.
curl -X POST -u githuser:gittoken…
NPatel
- 203
- 4
- 9
2
votes
0 answers
how to specify query when searching for run in jenkins blueocean rest api
I have some jenkins project, that has multiple pipelines defined. I can easily search for runs for a certain pipeline:
$ curl -k --silent…
murison
- 121
- 3
2
votes
1 answer
Is it an antipattern to avoid API Gateway for certain tasks?
I'm creating a platform architecture for my project and I'd like to use an API Gateway of some sort for handling most requests to a Kubernetes cluster (with a few microservices).
There is, however, one task that relies a lot on performance and sheer…
Grzegorz Judas
- 123
- 2
1
vote
2 answers
Nexus2: How can I get a list of all artifacts from a specific repository via REST API?
I want to get a list (json) of all artifacts in one specific repository via the REST API.
I've already tried:
curl -X GET http://localhost/nexus/service/local/respositories//content/
This works, but it deliveres me a json listing all my…
alex
- 51
- 1
- 1
- 7
1
vote
2 answers
How to make a Jenkins API call when using "Log in with Google" as security?
Jenkins API calls are generally made using a username/password combination, or other set of credentials.
We have a Jenkins instance using "Log in with Google" authentication, meaning no credentials are stored in Jenkins for users since login…
Alex
- 4,612
- 6
- 29
- 49
1
vote
2 answers
AWS REST API Query
How to authenticate against AWS to make API query ?
https://iam.amazonaws.com/?Action=ListAttachedUserPolicies&UserName=ja&Version=2010-05-08&accesskey
and getting:
Request is missing Authentication…
MissingAuthenticationToken
Milister
- 175
- 8
1
vote
1 answer
Why do I get "Connection Refused" when attempting to connect to IPFS API using HTTP?
Created a Digital Ocean Ubuntu 20.04 droplet and setup an IPFS server node in it based on this tutorial.
If I run the following command in the server
ipfs swarm peers
I get the expected results
In addition, according to the documentation
Every…
Tiago Peres
- 121
- 9
1
vote
1 answer
How can I build a Linux VM that I can use to test Rest API calls in a lab?
I work in Enterprise CloudOps Support and the products we support use Rest API for notifications. Frequently we get requests to help troubleshoot solutions like Pager Duty, PagerTree, ServiceNow, etc. Obviously I can't and won't signup for trials of…
KidACrimson
- 121
- 4