Questions tagged [web-api]
Specific APIs that communicate over web protocols, such as ASP.net Web API, as well as APIs that are exposed to web pages for network communication or apps for device communication
46 questions with no upvoted or accepted answers
3
votes
0
answers
630
views
Can an http service queue up work via a timer?
I'll preface this by saying that I'm not particularly familiar with writing http services.
To keep things simple, I'll use the metaphor of creating a collages from images selected by the user. The ...
2
votes
0
answers
261
views
What is the benefit of performing authn/authz at the API gateway instead of at the service?
I want to know is if we should perform authentication at the API gateway, at the individual service, or both.
Let's frame this question and descussion in the context of new development. Specifically, ...
2
votes
0
answers
59
views
Web Service returning serialized helper objects
I had the idea to have a route in my REST API that returns serialized (PHP) helper objects. The client code then can use those objects to format some complex JSON structures for the next request. When ...
2
votes
0
answers
520
views
How to side-load data using web api and entity framework?
I am working on a web api c# project using onion architecture and repository pattern and entity framework among other things. Doing some research I discovered a technique called side-loading
https://...
1
vote
0
answers
154
views
How to model api error type with errorCode and parameters
I work on a spring kotlin backend which has an angular and a mobile frontend. We are currently working on error handling and we decided that the backend should return an error code, a general message (...
1
vote
0
answers
747
views
How to handle relationships between resources in Restful API
Problem
Hi, we have an API that it's pretty similar to a standard CRM. That is, we have a really big amount of resources (even our own customers can define new resources). All of these resources share ...
1
vote
0
answers
53
views
Two step provisioning using OIDC and AD?
A client requested that we implement the following authentication/authorisation flow:
User authenticates using OIDC via a IAM (Salesforce in this case).
If user is an external user, then a flag is ...
1
vote
0
answers
107
views
How can I improve this API solution
Intro
I'm creating an app and I'm not sure if the structure of the solution is correct. I have a BaseController that uses generics. This controller is inherited by others that do not have to ...
1
vote
0
answers
108
views
In OAuth / OpenID Connect, does the redirect url matter for server to server API calls?
In OAuth / OpenID Connect, does the redirect url matter for server to server API calls?
I'm currently setting up Azure AD to secure our API's. The first implementation will likely only be server to ...
1
vote
0
answers
25
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 ...
1
vote
0
answers
71
views
Building a schedule app - best design pattern for collection on Rails API
I’m building a web app using Rails API on server side. The goal is to make a planning manager. I want my users to be able to plan ‘daily’ events, which will display at some specific weekdays, with ...
1
vote
0
answers
74
views
Are REST Resources and GraphQL Object Types conceptually equal?
I'm in the process of outlining the intended business logic of a web service. At this point, I'm not too concerned with implementation details. On the contrary, I'm looking for ways to abstract them ...
1
vote
0
answers
685
views
What is the best way to implement an HTTP endpoint with different return types?
I need to make an HTTP endpoint with different return types based on query params. There are several options to do that:
Return an object with one property set and the rest equal to null:
public ...
1
vote
0
answers
1k
views
Angular + WebAPI: DTO shapings Client vs Server
I'm currently creating a small single page app for myself. I'm using Angular and ASP.Net Core 2 Web API.
On the server side, I'm also using the DDD approach (just for learning purposes, the app isn't ...
1
vote
0
answers
531
views
Create A Complex Resource Atomically With Nested Objects Through REST
Background:
There is a UI Client and REST Webservice.
The user interface form allows you to create a complex object.
The complex object is composed of primitive types (string, integers,...), and ...