Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
An application programming interface (API) is the specification for which software is meant to be used by other software.
2
votes
Accepted
Using external APIs to build a dashboard
As you found out, this new requirement can not be satisfied with your current architecture (no local database) and the external API which would be the right place where statistics should be computed and … The effort to implement a solution within your system is considerable, and depending on your relationship with the provider of the external API and the number of entities querying all entities regularly …
0
votes
Proper HTTP method for triggering a process
There are a couple of good answers already, here's an additional idea that might make sense: treat the cache as a resource of service B that has an attribute "valid". Signal the need for re-caching by …
0
votes
Multiple JSON REST Responses for the same API
API versions should only be incremented when you change the API in a non-backward compatible way, and expect to switch clients from the old to the new version over a limited timespan, during which you … For example, your endpoint might look like /api/v1/student/...?details_format=format_1 to select a specific . …
1
vote
How do I describe a hierarchical relationship between software objects?
In a REST API, I would normally use hierarchical resource names to access owned resources, such as customer/100/invoice/1 but YMMV. … But the role names owner and owned shouldn't appear anywhere in the API. …
12
votes
Accepted
Single item endpoint responses: List vs. object
For endpoints denoting a single resource, such as /products/{productId} it's best to return this resource, not a list. If it does not exist, a 404 error is appropriate.
If you'd access the resource us …
1
vote
Endpoint returning only new and updated records
Just add a query parameter (e.g. modified_after) that the client can use to fetch only items that have changed since the last time.
The modification time should be part of the item's data, so the cli …
6
votes
Accepted
API Design: Sending errors in the response
For examples of how the second approach is being used in API design, have a look at the OpenAPI spec regarding API responses (see https://swagger.io/docs/specification/describing-responses/ under "Default … If you take that as a general direction for API design, your second approach would be better. …
1
vote
Accepted
How to structure URL when retrieving a REST resource by an attribute that isn't the ID?
You're starting from a wrong assumption. If you want to access resources by ID, every resource should have an ID. The VIN isn't necessarily the right choice for an ID attribute, you will most likely n …
1
vote
Automatically scheduling CRON jobs via API
Do you really want to create cron jobs (i.e. jobs that are executed at regular intervals until they are removed/disabled again) or just single actions that should run at a specified time?
If the latte …
3
votes
What are standard ways to pass the event signal over fixed level only connection?
Use the int variable, even if signalling and reading is a little more complex. The boolean solutions both have race conditions where events will be missed, and a more complex protocol would likely inc …
1
vote
How to do versioning for stored procedure?
I don't know which database you're using, but is it possible to define stored procedures in different schemas (essentially namespaces) and give them access to the underlying data through synonyms? At …
1
vote
Move from mft to api REST style to get or post large data 200mb , is it best practice?
In your diagram it's somewhat unclear in which direction the data flows. Your arrows are bidirectional, does that mean each participant sends as well as receives files? It is also not clear which part …
3
votes
Should the client silently fix a possible error or should it let the user of the client know...
If the user retrieves the range and enters it into your API (copy&paste?) … If your application retrieves that range, it is your responsibility to interpret it according to their API and transform it appropriately before passing on to the other API. …
1
vote
Service changes for local development environment
Depending on what purpose the external services serve in your application, you may enable/disable them via some configuration.
For optional services this may even prove useful in production environmen …
4
votes
Is it okay to keep open the MySQL database connection open through out the Application or op...
For fast response time and high throughput, it's actually best to keep database connections open and reuse them for subsequent requests. Most database frameworks offer some kind of connection pool mec …