Questions tagged [api]

An application programming interface (API) is the specification for which software is meant to be used by other software.

Filter by
Sorted by
Tagged with
0
votes
0answers
41 views

Best way for resource (entity) relations loading in a REST API

We have a problem of load time in our REST API, which is the result of having Fat DTO (nested DTO s) & the N+1 problem (which is off my question), means that we are loading too much data in one ...
0
votes
3answers
51 views

How to control time with API testing?

I'm trying to test an API (see API testing). Some operations depend on time. Here are some examples: A post may only be edited within the first 5 minutes You may not try to login more than 10 times ...
2
votes
2answers
64 views

Should API tests depend on each other?

I have an API I wrote that I want to test at the API level. Given that I'm testing from an external point of view, how can I manage data sets for each tests? The simplest solution I could come up ...
0
votes
0answers
19 views

Designing a public facing Java interface for future extensibility (API evolution)

I develop an in-house Java framework. I provide an interface so that my end users can provide their own custom implementation (i.e. plugin/SPI). public interface SomePlugin { SomeResponse ...
-3
votes
0answers
19 views

Best way/tool to manage class from an ICD?

It's common that I'm given an ICD and I need to make software that will be able to talk to it. While there are messaging protocols like protobufs or json, whats the best way to essentially take a raw ...
1
vote
0answers
38 views

What are some of the complications associated with inheriting from Eigen::MatrixBase

I have written a class that inherits from Eigen::MatrixBase to add some functionality that can't be implemented with Eigen's plug in feature. However in the docs, it says Before inheriting from ...
-2
votes
2answers
29 views

Interconnected technique for web, mobile and desktop

I am planning to do the university project with the Desktop application + web application + mobile application, I have planned to use languages for these 3 as below: Desktop application: Java SE Web ...
-4
votes
1answer
88 views

Does it makes sense to implement a REST API for every app?

Is it mandatory to implement a REST API even if it doesn't make sense? I have created an app consuming REST services from other apps. Now that I have the final result, I wonder if it is needed to ...
-3
votes
0answers
12 views

Wordpress Site for Exploring Contracting Opportunities - CSV File/API Plugin

I am in federal contracting and wanted to create a Wordpress site for the analyzing industry data. While we understand what we want, we do not necessarily understand where to begin, so we wanted to ...
2
votes
1answer
83 views

How do I send data to HTML page only when a POST endpoint is hit?

I've looked through similar questions and tried to Google what I'm trying to do, but I haven't found anything concrete. What I'm trying to do: where I work, we use an HMI/SCADA system that displays ...
-5
votes
0answers
47 views

API driven development, how to? [closed]

TL;DR: What is the approach to API Driven Development in practice? I am very interested in this subject, and I think it could optimize the way the team and I are coding. But I am not quite sure how ...
42
votes
8answers
7k views

Is it common practice to validate responses from 3rd party APIs?

I'm working on a PHP web application that depends on a few 3rd-party services. These services are well documented and provided by fairly large organisations. I feel paranoid when working with ...
0
votes
0answers
15 views

Maintaining Objects Across API Deployment Instances

I am working on a web application as a hobby and trying to learn some concepts related to cloud development and distributed applications. I am currently targeting an AWS EC2 instance as a deployment ...
-2
votes
6answers
191 views

Why don't packages formally specify (and repositories verify) their contracts

So, most software depends upon third-party libraries, to some extent or another. Specifications of such libraries' behaviour usually takes the form of human-readable documentation. We write ...
0
votes
0answers
67 views

Content-based reverse proxy for single tenant architecture?

I'm building a SaaS application with a single tenant architecture in Google Cloud. Each tenant has its own instance with its own subdomain (e.g., client1.myapp.com). I interact with some third-party ...
3
votes
1answer
204 views

How to handle failed API calls in C#

I built my API service and now I want to consume the information from a WPF application. So far I created the class ApiHelper which initializes and provides the HttpClient used to call the API ...
-2
votes
0answers
14 views

Journey planner using google maps api with suggestable places in between of point A and point B

Main Plot: Drivers driving on highways have to travel long distances and they would need to know where do they wish to stop and how could their route change based on their resting preferences. I am ...
0
votes
2answers
68 views

How can I protect sensitive information inside a binary?

I am currently developing an application with Qt/C++ which needs to access a Shopify store using the Admin API. In order to access the API, my application needs to know the following information: API ...
-2
votes
0answers
19 views

API design and frontend implementation

I felt very uncomfortable writing business logic code that I think backend should it. For example, our UI show we need to show the refund amount, so I expect the response would have refundable_amount ...
0
votes
1answer
32 views

API Split for creating object with inheritance and behaviors

I have a web service which is exposed to UI owned by our team. This web service is responsible for creation of objects and saving it in the DB (NoSQL Database). The object being created has multiple ...
-2
votes
3answers
63 views

Is there a secure way to ensure a data in an API endpoint of mine came from an Instagram endpoint?

Is there a way through encryption/keys/jwt or anything else to ensure that the data being sent through a POST request is only data coming from another request I made on the client to a 3rd party ...
-3
votes
1answer
32 views

How to manage source data for movies and series?

I am trying to build a system that tells the user on which platforms (like Netflix, prime, etc.) a movie or series is available. What is the best way to go about it? I have considered the following: ...
1
vote
1answer
72 views

Persistence layer in the automated testing of an API

The automated tests of an API should be stable and simple. When writing automated tests for an API, we often have to check that the data created with a program implementing this API is persistent. If ...
-4
votes
1answer
15 views

Components dependency check

Lets say you have 2 docker stacks: stack-A.yml defines serviceA and stack-B.yml defines serviceB; you also have an archive of common data that will be mounted by services. How could I verify that ...
-2
votes
1answer
52 views

Design pattern for a switching between APIs with no code changes

I'm trying implement in JavaScript/Node.js a data upload functionality. I want to be able to switch between different storage providers, e.g. AWS, GCP, Azure, with no code change, for instance, via ...
0
votes
0answers
16 views

Testing Proxy with its service

I have a program that contains client and api logic. In summary client works like this: 1) Client handles client code 2) Calling the API is surrounded in (lets call it ) ClientService 3) if client ...
0
votes
0answers
18 views

Cloning API changing from multiple subdomains to single

I'm working to clone an API endpoint set with a twist I can't figure out. The API currently works via POST requests sent to companyName.example.com with an API key. I'd like to have all different ...
0
votes
2answers
76 views

How sensible is it to build a website/app etc. using an external api?

Wanting to expand my programming horizons I recently started building a website. I have started to build up my website and it is heavily focused around an external api. The reason for using this api ...
-4
votes
1answer
31 views

How would I authenticating a Software Plugin with Username/Password using REST?

I'm developing my first Python plugin for a 3D application. What I'm looking to do I would like users who've purchased a subscription to the plugin from my Wordpress/WooCommerce web site to log in ...
1
vote
1answer
58 views

Long running REST API in PHP, async?

I have a RESTful API built with PHP. In POST request saving to DB is triggered. The problem is that now I have to support long running tasks. For example a user triggers POST request that is going to ...
0
votes
1answer
55 views

How should I distribute my app with my own OAuth2 client ID, without letting anyone find it out?

I've written an app using golang which uses OAuth2(Authorization code flow with PKCE) to interact with the Gmail API. If I build the app using my own client ID then my client ID can easily be found ...
2
votes
0answers
28 views

Api Authorization for first party apps and third party apps

I have a few microservices that i would like to combine in form of an api. The main purpose of the api is to be used by our (first party) mobile app. A side note, we don't have a mobile app or web app ...
0
votes
2answers
64 views

Rest API relationship design

I have a question in regards to designing relationships in REST API's. Imagine I have a relationship like in this diagram Now, should I show the relationship in the team endpoint like this? /v1/...
-1
votes
1answer
44 views

One Super App or Many Single-Purpose Apps

While Players like Rappi/Alibaba / Wechat have gone the super app way, i.e on single app to host many unrelated services, Ecosystems like Google, Amazon etc still have multiple single purpose ...
1
vote
0answers
17 views

Cart Checkout Item Check alternative

Not to sure if this is the right place to ask this. But I have more of a Theory Related question then Completely Technical I want to Propose my Issue at hand and then I'm looking for someone to give ...
2
votes
1answer
119 views

How to structure OOP multiple calculations?

I am working currently on a project that requires a series (almost 86) calculations to run based on a user data input. The problem is that each calculation has a series of requirements: Should be ...
-2
votes
1answer
35 views

Capture webhooks of third party service with an API

I'm building an API in .net that wil capture webhooks events of a third party service. Lots of actions on the third party service will trigger the webhooks. account.deactivated", "account....
3
votes
1answer
124 views

Designing a REST API resource with a non-unique ID, but unique composite ID

Is it bad for a REST API to have non-unique ID for a child resource? For example, the endpoint is: GET /parent/:parent_name/child/:child_name The :parent_name is unique, but a :child_name is only ...
-1
votes
1answer
49 views

Configuring Controllers and Endpoints in a HTTP API

Let's say you need to create an API around machines, and you want to be able to query machines many different ways: Get List of all Machines Get Machine By ID Get Machines By Client Get Machines By ...
30
votes
5answers
7k views

Is there a way to use a C++ API in C#?

I want to code a little program that takes in head tracking data and moves a 3D object accordingly on the screen. To achieve this I found a software called opentrack that has a C++ API. The problem is ...
2
votes
3answers
163 views

Securing REST API with authenticated user

I want to build a REST API but I have some holes when it comes to the security part. I would like to get my head around how to authenticate the calls to the API. Therefore, this is my first draft for ...
1
vote
0answers
46 views

Microservice with “grab bag” set of inputs, how to manage for the long term?

My team is building a tenanted primary service, with shared microservices used by that primary to separate common business tasks. We're building a new microservice that is responsible for running a ...
0
votes
1answer
27 views

Fire aws lambda at a specific time

Let's say I have a booking system where I want to fire an aws lambda function to send an email or message to users, 10 minutes before their booking starts. I have looked online and found few solutions....
-1
votes
1answer
99 views

Should an API be designed so that all information needed is returned in one request?

I'm currently designing my first API and I had a question: Should an API return all information about an object and its foreign keys? To explain the above a bit better, this is a part of the ...
0
votes
1answer
82 views

Microservice Architecture auth design

As a learning exercise I want to develop a system using microservices. I have designed my authentication/authorization architecture and would like to know if there are drawbacks to my design. It is ...
0
votes
2answers
140 views

Microservices based API, how to handle long lists requests

I was planing to create an API based on microservices, I'm stuck on how to solve a specific scenario. Initial plan is, all microservices are only accessible through a REST API. Based on the next ...
-1
votes
2answers
52 views

Http status and reponse in case the API gives out partial response

I have an API whose job is to aggregate resources obtained by calling multiple other APIs and then give out the aggregated response to the client. Currently even if one or more dependent API calls ...
0
votes
0answers
25 views

Proper way to use oauth with external auth server and an api

I have an api server that relies on an auth server (both owned by the same company). Once the client gets a grant from the auth server, it is no longer needed, because the only information I need from ...
0
votes
1answer
101 views

Where is the distinction between a web application and an API?

This question is highly related to this over question. I'm asking another question between I still am a bit confused on the topic. The Issue I Ran Into I currently have a Django web application ...
-2
votes
1answer
118 views

How should I design my API responses?

I'm working in a rest API for a turned based game from scratch, and I'm having some troubles figuring out the best architecture to do it. I need to explain how the game works and what is my ...

1
2 3 4 5
21