An application programming interface (API) is the specification for which software is meant to be used by other software.
0
votes
1answer
68 views
How to get different resources in a single endpoint in RESTful?
I have a REST webservice that have a couple of resources, like Company and User. But now I need to make a modification to the API to return a special list combining company, user and maybe other type ...
0
votes
0answers
29 views
What are the benefits of having a remote database for your command line utility
I'm current working on a command line app that will grab resources online for you when you're setting up a new project locally. Right now all the urls for the resources I need are hardcoded into the ...
-2
votes
0answers
36 views
Implementing network support with C++ in QtCreator [closed]
I've started using QtCreator to write and develop some code for desktop applications and now I want to include network support with it to link to REST API's with DropBox or some other stuff like that. ...
0
votes
1answer
50 views
REST API internal directory structure and RewriteEngine
I'm building a REST API. I don't want to have real folders in my directory structure, but I'm not quite sure what to use else. My REST API uses paths like this:
...
0
votes
1answer
86 views
Good public API for use in demos and documentation?
I have created a utility library and open sourced it on Github, and I'd like to document the HTTP utilities. I created this around some apps I've developed, but none of the APIs I use are for public ...
-3
votes
0answers
48 views
Need to find stocks data with API for Linux [closed]
We are developing a series of long term stock investment programs but we're having a huge problem getting data at anything like a reasonable price. Most data is for Windows. We need data for a ...
2
votes
2answers
102 views
How to handle many arguments in an API wrapper?
I'm writing a PHP API wrapper for a third party API. I want to make all the methods consistent, but I'm not sure how to handle the number of arguments some API routes accept. One API request accepts ...
-1
votes
0answers
24 views
Api Automation Layer For Single Instance Application
As part of application refactor I would like to add automation layer to it.
My vision is very close to the MS Office automation layer (Excel automation) - ability to perform application action using ...
-1
votes
0answers
68 views
List of public APIs [closed]
Can anyone recommend a site that lists public APIs? I recently learned about JSON and APIs and recently found Twitter's and Reddit's APIs and I'm really fascinated about them. Thanks in advance.
4
votes
2answers
107 views
Custom functions in a REST API
Looking at two of our entities Company and Address. A company has a billingAddress and a profileAddress.
I'm unsure of how to implement a function to set the billing address versus the profile. Here ...
1
vote
1answer
104 views
Should I store UK postcode data in my database
I am building a website for a UK audience that will utilise location data to offer search results based on a desired location or home address.
I have a large list of UK postcodes and geographic ...
-1
votes
1answer
80 views
Data aggregation like polyvore.com [closed]
I'm creating a website that is going to aggregate women shoes from across the web into one website. Kinda like polyvore.com does with all their products but mine is only going to be shoes. Which ...
2
votes
2answers
138 views
RESTful URI's, Creating a new noun/uri or add a queryparameter
I have a Person class with a one to many relationship to Employment. A Person in the CRM can have multiple Employments (historic data).
My current REST URI for this class looks like this:
...
3
votes
3answers
233 views
How can I ensure a method is called only once when using a API?
In general, if I am using an API whose methods have side-effects that I only want to occur once, how can I guarantee that my own application only calls them once even if an error occurs before it can ...
0
votes
1answer
54 views
Web service for pulling up-to-date payroll tax information?
Are there any web services (json or xml) in which you can input demographic information about an employee and get back the tax rate that they are to be taxed at a federal, state, and local level?
1
vote
0answers
36 views
Listing of ecommerce Public API [closed]
What are some of the useful e-commerce public API for an application developer to leverage? Few examples would be Twitter API for performing twitter interaction, USPS API for tracking and delivery ...
0
votes
2answers
144 views
How does API design differ from general web application development design? [duplicate]
If I was working on a web application designing and writing an API how does that differ from a general web application development?
What things would I need to consider and take into account? Are ...
3
votes
2answers
218 views
How can you provide a public writeable API and not get spammed?
So say you had a site like StackExchange. Now imagine you created a machine-writeable API capable of posting questions and comments and doing everything your browser can do.
Of course, about 5 ...
5
votes
2answers
144 views
Web API URI Schema Design
I'm in the middle of designing an API for a very basic flashcard application for learning purposes and I'm wondering if you all think there can be any improvements.
In the app, a Folder contains ...
4
votes
2answers
177 views
Requiring Explicit Null Reference Handling
One of the problems I have with null references is that they may not be exceptional. In my current position, there are few requirements and you are lucky if conventions are followed. This means being ...
22
votes
1answer
609 views
Why have hardware-accelerated vector graphics not taken off?
I'm working on an app that involves real-time manipulation of vector paths at 60fps, and I'm very surprised by how little information there is on the subject. At first, I tried to implement my idea ...
0
votes
0answers
49 views
Extracting data point locations from a postscript/pdf plot [closed]
There are a number of tools available for manually extracting the x/y coordinates of points in a data plot, such as WebPlotDigitizer and digitize.
They work well when there are only a few ...
2
votes
2answers
83 views
What endpoints should I provide, if any, to permit connectivity testing for my web services?
What endpoints should I provide, if any, to permit connectivity / availability testing for my web services / Web API?
TL;DR
I am developing both the server and client in an enterprise environment. ...
2
votes
0answers
93 views
design practice for business layer when supporting API versioning
Is there any design pattern or practice recommended for business layer when dealing with multiple API version.
For example, I have something like this.
http://site.com/blogs/v1/?count=10
which ...
2
votes
1answer
211 views
How to count hits in an HTTP API without bogging down the DB
I'm building an API and want to count hits for each user. It's a HTTP API implemented in Python. I could keep the count in a database (using PostGreSQL) but it'll be a very busy API, so I don't want ...
9
votes
3answers
656 views
Joda Time vs Java Time
Although Joda is feature rich and more sophisticated than standard Java time, it may not always be the best thing to use. How do I decide if I should use Joda Time or Java Time in any Java code?
Is ...
0
votes
1answer
79 views
Would it be possible to publish my code on an official site with a third-party library?
I'm building a rather large and extensive wrapper in Delphi for an email system called Mandrill. There are wrappers for this API in many other languages, but not for Delphi. So, I'm hoping to produce ...
1
vote
0answers
45 views
Designing a loosely coupled app -> stored proc interface for PostgreSQL. A couple of questions
I am in the middle of designing a next generation database access class for one of the programs I am building. We use PostgreSQL exclusively.
Our current approach is procedural (largely inspired ...
4
votes
6answers
732 views
Testing a REST client against a REST Server. How to do fixtures?
When writing unit tests, it's common to use fixtures: little testable data, so we can say:
1. Get all clients should include Willy Wonka.
2. Delete client 3, and now get clients should not include ...
1
vote
2answers
128 views
Managing Alerts in Web Application Using RESTful API
I have designed a RESTful API and I am now working on creating a web application to use the service.
One thing I am struggling with is how to manage alerts in the web application (similar to the ...
11
votes
4answers
413 views
Using natural language grammar in fluent API
I'm tinkering with a query abstraction over WebSQL/Phonegap Database API, and I find myself both drawn to, and doubtful of, defining a fluent API that mimics the use of natural English language ...
1
vote
0answers
102 views
How to optimize calls to multiple APIs at once and return as one set?
I have a web app that searches across 2 APIs right now. I have my own Restful web service that I call, and it does all the work on the backend to asynchronously call the 2 APIs and concatenate them ...
19
votes
8answers
1k views
“Public APIs are forever: Only one chance to get it right”?
In an OS book I just read that, "Public APIs are forever: Only one chance to get it right". Is it true? Is it applicable only in APIs of Operating Systems or other APIs too? For example, will this be ...
8
votes
1answer
482 views
What API design for storing generic data in a more specific format?
for In the project I am working on we send messages about widgets over message queues, serializing them onto the queues as XML. The XML schema contains tags for properties that are common to all types ...
1
vote
2answers
129 views
Is it possible to use a “non-commercial” REST API in a for-pay app?
I am interested in integrating the results of 3rd-party news API's into my for-pay application. The APIs would be a very small part of the app (e. g. the app is not just reselling the APIs). I have ...
2
votes
2answers
212 views
Workflow for building a RESTful API
I am building a RESTful API, and so far, to make sure that my resources work as I need them to, I am using a REST client called Postman. This makes it easy for me to store routes and quickly make ...
4
votes
1answer
252 views
When to use nested resources in a RESTful API
I have two resources: users and links.
Users can have several links associated with them. I have designed my RESTful API so that you can reach the links associated with a user at the following URI:
...
0
votes
2answers
73 views
Encapsulate external JavaScript library
I am about to develop a ASP.NET MVC 4 project that will make use of maps. Our company has it's own map API which is very basic at the moment, but is intended to be further developed in future to match ...
4
votes
2answers
348 views
Trailing slash in RESTful API
I have been having a debate about what to do with a trailing slash in a RESTful API.
Lets say I have a resource called dogs and subordinate resources for individual dogs. We can therefore do the ...
1
vote
2answers
166 views
Management wants an API in purchased software
My company wants to purchase new software for our General Ledger. We want to be able to interface it with various other sytems, all purchased. Nothing is custom built. The software our Accountants ...
1
vote
1answer
329 views
OCR API (in Java) with Word (NOT MS-WORD) extraction [closed]
My Situation
I need to develop an application which does crowd-sourced Image-To-Text service (just like google's reCaptcha). So I need an OCR API which can find words in an image with some text.
...
3
votes
2answers
145 views
Library design: provide a common header file or multiple headers
There are essentially two camps of library designers concerning the design of the final header file inclusion:
Provide a single header file that includes every other header file that makes up the ...
4
votes
2answers
415 views
Implementing the command pattern in a RESTful API
I'm in the process of designing an HTTP API, hopefully making it as RESTful as possible.
There are some actions which functionality spreads over a few resources, and sometime needs to be undone.
I ...
14
votes
3answers
411 views
Does decoupling trump DRY in REST?
I am building a REST API to expose most of functionality of an existing Java API. Both APIs are for internal use within my organization; I do not have to design for external use. I have influence ...
3
votes
0answers
89 views
Programming games, virtual environment or an API? [closed]
A friend and I are thinking of making/expanding a programming game. The sort of thing to help new or young programmers enter into the field. Since there was a minor drone craze at the local ...
1
vote
0answers
279 views
Google Maps - Geofence a route
I'm looking at implementing a PHP based application, where by you have a certain route for example London to Edinburgh. Along this route, I want to calculate say a 10mi Radius or Polygon around the ...
3
votes
1answer
158 views
Building dedicated codepad in PHP
I am author of growing framework, which is focused around User Interface building in PHP. Essential requirements for the up-coming website redesign is ability to run code examples. I am willing to ...
4
votes
2answers
115 views
Establishing an API to provide end-user apps/scripts access to multiple types of databases
Question and Context
I am currently working on a project where the main question is, how do we insert an API between the database and end-users who may develop applications/scripts of their own that ...
21
votes
2answers
918 views
What does it mean to expose a C++ code publicly as a C API and what are the advantages of doing it?
I often hear people say that C++ programmers should expose their library's/product's public API as a C API.
What does that mean and what are the advantages of that?
6
votes
1answer
291 views
Generate commerical license key for web service
Background
I have a business question regarding web-based software licensing. A number of web sites offer software as a service for various APIs. A good example is Google's Custom Search API. The ...
