Questions tagged [api]
DO NOT USE. Use specific tags like [google-cloud-platform], [facebook], [amazon-web-services] instead or [api-design] where applicable. Questions asking to recommend or find an API are off-topic.
96,638
questions
0
votes
1
answer
276
views
Configure IIS to accept API calls only from API Manager, Deny from direct calls
I have an API hosted in Azure VM on IIS.
I have exposed that End point to public through Azure API Manager.
Currently the server end point can be called directly bypassing the Azure API Manager.
I ...
1
vote
0
answers
626
views
Problems with API return using the Axios library in NextJS
I have a problem and I can't solve it in time. Who knows, maybe someone can help me.
I'm testing an application made in DJango Rest Framework (back-end) and NextJS (front-end). The problem I will ...
0
votes
1
answer
131
views
How to query by Iteration in pyral?
My goal is to pull user stories from previous iterations that have not been Validated. To do this I am using pyral-1.5.2:
user_stories = rally.get('UserStory', project='My Project', fetch=True, query=(...
2
votes
0
answers
37
views
Is there a way to have a user enter a url query and have a single function filter a database?
I'm playing with the Django rest framework and PostgreSQL, building an API that returns data on all of the stats from this NBA season. Rather than having a function to return stats for each category, ...
0
votes
1
answer
73
views
Cant get value in Vue from data
I am pulling data via an API and it appears in my vue console but when i try and pull it into my markup nothing displays?
clicks:"27,577"
earnings_per_click:"257.11"
orders:"...
0
votes
1
answer
1k
views
Read stories/posts using instagram API
I wanted to get all the stories for an user using Instagram API. Not the stories posted by the user but by the people he/she is following similar to how i am able views stories after i log in to my ...
0
votes
1
answer
42
views
Filtering With DRF
I'm currently trying to add filter to a menu API but it doesn't seem to work
This is what I tried in my views.py:
@api_view()
def menu_items(request):
if request.method == "GET":
...
0
votes
1
answer
30
views
Javascript Capture Form Values and Send via Api
I have a subscription form on my website. I'am capturing the email address form form and trying to send them via api. When I run the I'm getting the error below:
"Access to fetch at 'https://...
1
vote
0
answers
94
views
Mongoose:Error when send a second request on the server
I'm making an API for my app, the app is in MERN stack, I make a separate Database for every account and its information (every account along with it's info is in a separate DB so each DB for each ...
0
votes
1
answer
45
views
Is there any way to delete a folder in run time if the memory of any file inside the folder is being used
if (Directory.Exists("BarCodePNG"))
{
Directory.Delete("BarCodePNG", true);
}
if (Directory.Exists("BarCodeJPG"))
{
Directory.Delete("BarCodeJPG", true)...
0
votes
1
answer
441
views
How to Update Stripe Subscription with Python API without Accumulating Price Objects
I am using stripe API integration to build a python app, I want to be able to allow an user to upgrade their subscription from their current subscription at any point in time and the new subscription ...
-1
votes
2
answers
1k
views
How do I convert a java object toJSON format without using any external libraries or dependencies for java?
static class DataObject {
private String access;
private String foo;
private Int age;
}
to {"access" : "value","foo":"value","age":&...
0
votes
2
answers
69
views
How do I convert a curl POST to Python requests.post for a US Patent Office API?
I want to use a Python requests.post() to get data from the US Patent & Trademark Office via an API. The details of the API appear here.
That page also contains a widget you can use to try out the ...
0
votes
1
answer
912
views
How to bypass the limit of 100 songs in Spotify API?
i have a code that creates a dataframe of the songs from a playlist.
I tried to change it so it will ignore the 100 limit and i will recieve all the songs from the playlist, but it doesnt work.. can ...
1
vote
0
answers
254
views
Why API throws Error 500 on hosting but works locally?
I've just developed a very simple API just to test some things.
It works fine localhost, even connecting to my online database, but on the production environment it throws error 500.
Can anyone point ...
-1
votes
1
answer
125
views
How to hide WooCommerce API Key in php files?
I'm creating a WooCommerce & Vue 3 projects and I need to hide my api key when i'm calling it. Do you know how can I do it ?
At the begining, on vue3, i've put it in headers of my request and all ...
1
vote
0
answers
21
views
404 on RESTful service created with Spring Boot
I just deployed a RESTFul Spring Boot/maven service to Tomcat 10.1.9 running on a Amazon EC2 Linux instance, but it returns a 404.
It does however work when I launch it from Eclipse and connect via ...
0
votes
1
answer
59
views
Call to local api does not work in the browser but shows success status with Postman
I am creating an image generation website with Mern. One of my functions named handleSubmit, calls for a local API. The API is not fetched when running in the browser but runs fine when tested with ...
0
votes
0
answers
78
views
Mark as a paid an invoice with PayPal api v2
I try to manage a subsbription to several service purchase with PayPal
First step: Crate a Checkout Order with a purchase_units each service subscriptio.
Second step: In the return url (after the ...
0
votes
0
answers
68
views
i'm on vb6, i need to set a get with https://oauth.openapi.it/counters/total
I use for all my get rest API this code in vb6:
Option Explicit
Private Sub RestExample()
Dim APICall As String
Dim myXML As New MSXML2.DOMDocument60
APICall = "http://www....
0
votes
1
answer
342
views
How to consume a SOAP API using Python. Soap API 1.2 using WCF service
I have been working on a project that uses SOAP API. I was provided with two urls
(able to consume) and request xml looks like this it uses LookupUser_Request.
<soapenv:Envelope xmlns:soapenv=&...
0
votes
0
answers
109
views
ConnectException using restTemplate
I'm working on a spring boot project, the whole project is running on my machine. everything was working fine previously, but now it doesn't. I'm running a fake json on npm json-server on "http://...
0
votes
1
answer
43
views
post name, email and role in django backend, react frontend error 400
i want to the admin to post name, email and role of a user using frontend, and its stored in backend of django, please note that i dont want the admin to store the password, the user will later on add ...
0
votes
3
answers
236
views
Expected a value of type 'String', but got one of type 'List<dynamic>'
I want integrate Flutter with an ASP.NET API. the problem is when I create minimal API, the JSON I retrieved from MapGet is a string, when I try to jsondecode() it give me:
Expected a value of type '...
0
votes
1
answer
164
views
Laravel FormRequest Validation for Rest API get calls with 2 query json params not working properly
I got a Laravel FormRequest class that should validate two JSON query strings (nested objects and arrays) on a GET route on my JSON Rest API. I pick up the json query strings, decode them to php ...
0
votes
1
answer
122
views
How to set up Flask+Gunicorn+Nginx using docker-compose?
I have Flask app with couple API endpoints: /api1 and /api2
Flask (flask_app.py):
app = Flask(__name__)
...
@app.route('/api1', methods=['POST'])
def api1():
...
@app.route('/api2', methods=['POST'])
...
1
vote
0
answers
11
views
Karate - client certificate usage [duplicate]
I have a set of api for new module where I am implementing Karate framework poc.
Where the api call uses client certificate with crt file,key file and passphrase.
Need to understand how do I need to ...
-1
votes
1
answer
516
views
LinkedIn API - Search Professionals by Skills
Is there a LinkedIn API that return the list of professionals by skills, roles, or a combination of both?
If so, what are the requirements and process to get access to this API?
Any help or insights ...
0
votes
3
answers
345
views
Why doesn't el.scrollIntoView() scroll to the specified element?
There is a list of posts that is generated as follows:
async function getPosts() {
let res = await fetch('./api/posts');
let posts = await res.json();
const postList = document.querySelector('....