API stands for Application Programming Interface. A program's API defines the proper way for a developer to request services from that program.

learn more… | top users | synonyms

4
votes
1answer
57 views

RESTful API for Todos using Hapi

My goal is to create a simple restful api that will be accessed by an AngularJS front end. Even though it's fairly simple, I'd like understand how to make it more reliable, secure, and best-practices ...
6
votes
1answer
80 views

API for SQLConnect Library

I've designed a library for connecting Objective-C (and now Swift) apps to Microsoft SQL Server 2005+. (I believe there are other databases it works with, but I've only tested with MSSQL.) The ...
8
votes
2answers
121 views

Building a better Collection. Enumerable in VBA

VBA's 'Collection' is.... lacking, so, I've been working on a better Collection object that implements many of the features of C#'s Enumerable. This is very much inspired by this question and a follow ...
10
votes
1answer
170 views

Nested Sets in JavaScript

I created a procedural implementation of the nested set model in JavaScript. The use case for this small library was that the front-end(presented as an MVC) needs to traverse hierarchical data from ...
3
votes
0answers
54 views

Multi-dictionary API using Python Flask-RESTful

I'm working on a simple online dictionary tool, using Python Flask-RESTful as the RESTful API backend. The dictionary tool is modular, it can handle multiple dictionaries, implemented as independent ...
4
votes
1answer
80 views

Getting all likes from a specific user on a news wall with fewer graph API calls

Right now, my solution counting likes of a specific user is Starting a recursive call on the "/{user-id}/posts" edge Iterate through all posts On each post iterate through each like on the likes ...
3
votes
1answer
58 views

Is there a better way to catch API changes for a service that doesn't version its API?

I'm using the old Google Data API to access several spreadsheets and put their contents in a database using Flask and SQLAlchemy. Each run deletes the contents of the database tables and repopulates ...
0
votes
1answer
63 views

Bignum library with arbitrary bases

I just started development on a new bignum library that can operate on numbers of any arbitrary base (up to 232). I want to get a good idea of where I can improve before taking things any further. ...
5
votes
1answer
106 views

JavaScript Weather App

I am pretty new to JavaScript, and put together a weather application. I'd like to get some feedback on improvements I could make to the code itself and also possible ways to speed up weather data ...
3
votes
1answer
149 views

Python script which fetches Amazon product details using its API

This is a script which takes an Amazon URL as input, takes out ASIN/ISBN from the URL, and uses Amazon Python API to fetch details. For this task, I looked at many Amazon URLs and observed the ...
1
vote
0answers
42 views

Is this interface structure/setup correct?

I'm working on wrapping the last.fm web API. I'm trying to use Interfaces to be able to easily make calls via functions which return an interface (as opposed to an object which would need to be ...
4
votes
3answers
65 views

Building SQL from multiple combinations of query parameters

I have a node.js/express.js based REST application. In one GET service I am querying data based on different set of request parameters. I am looking for a better way to implement it. ...
10
votes
2answers
231 views

Async wrapper around public API

Tear it apart. I'm mostly concerned around the appropriate use of ConfigureAwait(false), and possible poor handling and duplication of the ...
2
votes
1answer
189 views

Parsing ODataQueryOptions<T> to Expression<Func<T, bool>>

I am following up on this answer for a scenario that I am currently working on. Like the OP, I am too concerned about the longevity of the code. ...
5
votes
0answers
176 views

Unit of Work + Repository Pattern + Stored Procedures [closed]

I'm a beginner with ASP.NET Web API and the Unit of work + Repository design patterns. I've been reading a lot about ASP.NET Web API and I'm learning as much as I can so I can create a good web API. ...
1
vote
3answers
62 views

Optimization and accepted paradigms

This project was completed as part of an interview challenge. The feedback I received was: The code is neither optimized nor does it follow generally accepted paradigms, naming conventions or best ...
2
votes
2answers
84 views

Async operations in WebMethod

How can I improve this code, without to return async Task? ...
6
votes
2answers
79 views

Clean and tidy Python code for dictionary look up and API interactions

I am new to programming and entirely self-taught. Below is a program I wrote to retrieve text content via an API and scan the text for important words. If the word is found URI is returned. The API ...
4
votes
1answer
104 views

Using the Rotten Tomatoes API

This is a Python module I made to search the Rotten Tomatoes movie API. It caches the search results in a SQLite database. What improvements can I make to the cache system? Is there a better way ...
2
votes
1answer
58 views

Member restricted game with API

My website is poorly coded. The structure is pretty simple: A RewriteRule redirects /.... to /index.php?page=$1 mypages/page.php contains the page content and actions (model controller and view ...
6
votes
1answer
149 views

What is the proper naming of classes and method when designing API for calculation library?

I'm working on library which will provide easier writing and calculation in Java using fluent API. Library I have implemented with basic functionalities and now I am working to improve API. I ...
3
votes
1answer
54 views

Lunr backed client side search module

I created a client side search module. Could anyone please provide review pointers on it? ...
5
votes
2answers
48 views

Extracting ids out of arguments of different types

I'm building a Ruby API client. My brief is to extract ids out of various inputs and fetch the relevant data. It's working just fine at the moment but I think it's a little clumsy. My specs (which ...
5
votes
1answer
84 views

AngularFire Tic Tac Toe Game

I am building a Tic Tac Toe game with AngularJS and making it online playable with AngularFire. The Tic Tac Toe logic is all there so this question concerns Angularfire a little bit more. I want to ...
3
votes
1answer
496 views

Simple REST API server

This is a chunk of code I wrote for a job interview at some point - it is a remote key-value storage REST API supporting CRUD operations. Maybe anyone has some feedback on this? It would be very ...
8
votes
2answers
242 views

Django API Implementation

I am building a backend to a mobile application that will be hosted on a Django site connected to a PostgreSQL database. I have never built anything to accomplish this before and this is my first go ...
2
votes
1answer
58 views

Drag and normal upload code

This is a partial code of my JavaScript app. The openDoc function's task is: call newDoc if use uploads a file through ...
11
votes
2answers
544 views

Logging into WebAPI 2 site from c# desktop application

I'm trying to login into a webapi2 site from a desktop application. After a lot of googling, I cobbled together a working prototype. Since we are talking about security I wanted to do a peer review. ...
5
votes
1answer
172 views

Reducing complexity of method

I'm trying to reduce the complexity of some methods, and I'm not exactly sure what approach to take. I'm currently building a PHP wrapper for a REST API, and the main problematic class is here: ...
1
vote
1answer
137 views

Orchestrate.io Client API Design

I've written a Python client for a new NoSQL database as a service product called Orchestrate.io. The client is very straightforward and minimal. It uses the requests library, making the underlying ...
4
votes
1answer
249 views

PHP wrapper around an API - best practices

Here's a PHP wrapper around a public OAuth2 REST API. I would love to hear your thoughts and comments. Testing was a bit frustrating since I tried for my first time. Not sure if I have done the ...
2
votes
1answer
57 views

Backend interface VS hard contract

Here is an API for using a warehouse: ...
10
votes
2answers
171 views

Java API without exposing implementation details

I am creating an API for consumption by other developers to interface with an internal framework. My goal is to be able to have the developers type something like: ...
5
votes
1answer
565 views

XLSX writer implementation

We have multiple scripts which write into XLSX with the same format, into a different format or slide variation. I am trying to write an API which saves time for other programs, but I need input on ...
10
votes
4answers
240 views

XmlCmdBuilder - doing away with inline xml

I have to work with a 3rd-party API that allows me to define and execute "commands", using XML. Since I don't like seeing mixed abstraction levels, I managed to remove all the inline XML / string ...
2
votes
1answer
195 views

Generic java configuration class with type safety

In the first code snippet I am creating a generic class to hold configuration details. I am currently using it as a way to pass run time configuration options to plugins in a generic manner. The ...
5
votes
2answers
112 views

Is the public interface easy to use and the documentation understandable? Are the unit tests well-written?

I have a year or so of experience in developing in Java. I submitted the solution for this task, but never got the feedback that was promised. Since I still would like to get a feedback on my ...
6
votes
2answers
704 views

My API Keygen: Is it secure?

Below is an api key gen script for a cryptocurrency trading platform i am building. first it checks to see if a key exists in the db for the user id. if it does exist it displays the key. if it ...
0
votes
1answer
49 views

Evaluating a hashing function used to create secure API key

What are your thoughts on the following code? is it secure enough? Note: $password is used to represent the secret, which would essentially be a SHA512 hash of ...
1
vote
1answer
47 views

Working with APIs in javascript

I'm not new to programming, but I am new to working with javascript (beyond copy/paste and simple edits). I am building a one-page JS app similar to redditinvestigator.com, and my goal is for it to ...
3
votes
2answers
138 views

Structure of API wrapper

I'm building an API wrapper for a bookkeeping SOAP API. I have some questions regarding bast practice for structure of the wrapper and for error handling. For now i've structured it like this: ...
4
votes
1answer
214 views

In-memory data cache architecture for data transfer

I am writing a cron job to manipulate and transfer remote data. I need to cache data from a table, process it, merge with previous table, iterate the process, and eventually send the result data to ...
2
votes
1answer
132 views

Rails 4.0 api_key implementation

I'll be brief and let the code speak for itself. I need some very harsh, honest, blunt feedback on this code. I am new to Rails - don't hold back. I have a concept of the user having many API keys, ...
3
votes
2answers
1k views

Multiple serial URL requests in Objective-C / iOS

I want to check the existence of various API endpoints by doing serial URL request. If the first one fails, I want to try the second one, if the second fails I want to try the third one, etc. Here is ...
3
votes
1answer
69 views

RESTfulPHP / controller / structure

Allow for stuff like: API/ExampleObjects API/ExampleObjects/SOME_INTEGER_ID/Children ... with children knowing their owners (aka parents). Full repo here Please be brutally honest if something ...
1
vote
1answer
645 views

Node.js DynamoDB callback

I am writing an API which gets results from a DynamoDB table and puts the JSON back into the browser. The code below works and returns the desired results. However, after reading about async and ...
3
votes
1answer
221 views

Python Leafly API

Just wondering what I did bad/could have done better. It's a simple script for pulling information from Leafly about cannabis strains. I've also added in a function to search. I am fairly new to ...
2
votes
1answer
936 views

Python API client design and best practices

I'm creating a Python API client, after thinking and checking some open source Python clients I created this class, and I'm looking for any feedback (design, best practices...), this is an example URL ...
6
votes
2answers
910 views

WebAPI - Return models vs entity and partial class with meta data

Wanted some opinions on something I have been working with, I've tried a few ways of structuring the way I retrieve and return data to my WebAPI, and I'm pretty happy with what I have so far, but I ...
2
votes
0answers
93 views

node.js Review Core class of a Javascript framework for SPA's

A few years ago I started building a tiny (~300 SLOC) JavaScript framework for scalable and maintainable Single-Page-Applications written in CoffeeScript: https://github.com/flosse/scaleApp and ...