REST (REpresentational State Transfer) is a simple stateless architecture that generally runs over HTTP. It is an "architectural style" that basically exploits the existing technology and protocols of the Web, including HTTP (Hypertext Transfer Protocol) and XML. REST is easy to use than the well-...
23
votes
1answer
5k views
Fluent LinkedIn REST API client interface design
There is a handful of LinkedIn clients written in C# on the NuGet package library, but as far as I can tell, most only do authentication via LinkedIn. I found a couple which offer a LinkedIn REST API ...
11
votes
2answers
1k views
Simple AngularJS controller for REST API
We record software builds from our build machine into a database and for practice purposes I'm building a little web dashboard for it.
The API is REST (WebApi) and provides access to query for ...
10
votes
1answer
104 views
Bitex - Cryptocurrency Exchange API Framework for Python - Round 2
This is a follow up to my previous review request.
BitEx is a python module I've been working on for a little over 9 months now, as a side project. It was published 6 months ago on GitHub, and as I ...
7
votes
2answers
2k views
Registration, login and logout in a Grails application
I'm completely new to Groovy, but have many years of Java experience, and recently I have started working on a Grails application, currently it contains the following:
User and Person domain classes
...
7
votes
1answer
176 views
Small console app to execute some remote scripts
I'm learning F# and functional programming, from a background in C# and imperative/OOP. I've ported a small, one-off console app from C# to F#. The port worked (the app behaves the same way), but I'd ...
7
votes
1answer
131 views
Bitex - Cryptocurrency Exchange API Framework for Python
BitEx is a python module I've been working on for a little over 9 months now, as a side project. It was published 6 months ago on GitHub, and as I edge closer to my 1.0 release, I wanted to take the ...
7
votes
1answer
181 views
JSON REST client proxy generator
Trying to create something really lightweight. Sources are on GitHub.
To create a proxy we need to define an interface first, e.g.:
...
6
votes
3answers
437 views
Executing a URL using RestTemplate
I am working on a project in which I construct a URL with a valid hostname (but not a blocked hostname) and then execute that URL using RestTemplate from my main ...
6
votes
2answers
823 views
Lock for preventing concurrent access in client data
I am trying to implement lock by which I don't want to have reads from happening whenever I am doing a write.
Here is my ClientData class in which I am using ...
6
votes
2answers
200 views
Single class which holds response and error message
I am working on a library which will make HTTP call to my rest service basis on inputs passed to this library. And whatever response comes back from service whether it is successful response or ...
6
votes
2answers
125 views
Controller for classrooms and students
The actions I'm wondering about are members, add_student, and remove_student. They work ...
6
votes
1answer
70 views
Library to be used against a specific REST web service
I have been trying to generate a basic library that I can use at work, to call different REST calls towards a software vendor that we are using.
I would love someone's opinion on it, and what I could ...
6
votes
3answers
15k views
Using RestTemplate with HttpComponentsClientHttpRequestFactory in a multithreaded environment
I am working on a project in which I need to make an HTTP URL call to my server, running RESTful service, which returns the response as a JSON String. I am using <...
6
votes
1answer
113 views
User persistence and login flow
I have a Java project that copies files and folders to a user's space on the cloud service using a RESTful API. The login design is getting very complicated, and I wanted advice on how to simplify/re-...
6
votes
1answer
379 views
Java secured cookie - security issues?
I tested the play framework the last days and had mixed feelings about it. In the end, I don't use play for my new REST project. I use http://www.sparkjava.com as minimal server setup.
But I really ...
6
votes
2answers
126 views
Powershell cmdlet authenticating to Aerohive API
After dipping my toes in PowerShell for over a year i think it is time for creating a real cmdlet. My first mission was creating a regular PS script to take in a .csv and create a wifi account using ...
6
votes
0answers
162 views
Function to conect to Firebase Rest API via Access VBA
This is the application for small school, which will store students' info in Firebase and also retrieve data from Firebase. I am using JSON Parser to parse the data and save the same in Access tables.
...
5
votes
2answers
98 views
Tracking Containers in a Train Station
This is a time line for control over the events of some containers in a train station.
It gets all the data to build the time line by getting a JSON from a database via REST service. The app resets ...
5
votes
2answers
607 views
Restful API Building: Dependency injection + factory patterns
I am learning OOP. I feel I have a grasp of basic dependency injection in that as a rule of thumb, you pass an object to a method rather than the parameters to create an object. As such, never create ...
5
votes
2answers
1k views
A generic REST API consuming Python library
I wrote this, which essentially acts as a single library for all possible REST services.
Here is the main file, as of alpha version 1:
...
5
votes
2answers
2k views
External API calls from a C#.NET client
I have a simple c# mvc client that calls an external api..here is my attempt
...
5
votes
1answer
142 views
Translating an inputted query to SQL
I'm working on a small RestApi that would be able to:
Interpret different query languages like ...
5
votes
1answer
76 views
Python wrapper for Instagram API
This code wraps the user endpoint and media endpoint of Instagram API. Any best practices/ styles or glaring bugs you can see? I wrote some unit tests for each class but did not include for ...
5
votes
1answer
186 views
REST API with Ruby on Rails and ReactJS
I'm currently working on building a simple REST API using Ruby on Rails. I noticed that a lot of the things I did were a bit redundant, especially the models. Just to clarify: I want this to be a REST ...
5
votes
1answer
172 views
JavaScript API for REST
[update: keeping this around for posterity, but we ultimately went to a pub/sub pattern, using Amplify.js. Amplify isn't strictly necessary to implement pub/sub, but it has some nice features and ...
5
votes
1answer
849 views
Throttling REST requests in C#
I'm rather new to C#, and found relevant subclassing examples surprisingly hard to come by. I've whipped up this class that appears to work, but am pretty sure this is not optimal:
...
4
votes
3answers
92 views
Python wrapper class around HTTP API
I wrote this little class to wrap around a work-in-progress, poorly documented API and I'd like to know what else can be improved. I feel like there's a lot of repetition in the functions and I'd love ...
4
votes
2answers
171 views
Fetching the definition of a word using a REST API
This is the code I'm using to GET the definition of a word from Wordnik's REST API. I don't want to ignore any error but this is causing the code to be ridiculously long. I'm new to Swift so I'd ...
4
votes
2answers
110 views
RESTful APIs (Create, Read) with flask-restful
I wrote this simple API to be able to send logs from the client to MongoDB. Even though this works and fits my need, I would like to point out some concerns that I have regarding the following:
Is ...
4
votes
2answers
99 views
4
votes
1answer
67 views
Extracting various URL parameters in Rest Service and then passing it to Builder class
I have a service which takes a lot of key value parameters in a URL. Only a few are mandatory and others are optional. It's up to the customer whether they want to set those optional parameters or not....
4
votes
2answers
83 views
Basic API wrapper around a Restful service - follow-up
This is a follow up from my previous post: Basic API wrapper around a Restful service
I'm writing a basic wrapper around a restful service that returns a list of Stores. Naturally, I want to make it ...
4
votes
1answer
42 views
Securely convert and return a user selected file
I designed a Python3 webservice which gets a file name, looks for this file in a local folder, converts it using an external software, then sends the converted file to the user.
For this example, the ...
4
votes
1answer
50 views
GET event handler
I'm working on my first NodeJS / Express application with the async module. It's been an uphill battle for me learning node (and even JavaScript) as I go along so I'm sure there's a lot of room for ...
4
votes
1answer
180 views
REST API calls to BIG-IP LTM to get the status of pool members
This code calls the iControl REST API provided by BIG-IP LTM. Trying to get the list of the pools, it's current status and the pool members associated with the pool.
My code works like this, based on ...
4
votes
1answer
71 views
Adding proper validations on all the parameters coming from the URL in Rest Service
I am working on a RestService in which my URL will take lot of parameters. Below are the parameters my URL will take:
UserId: ...
4
votes
2answers
76 views
Python REST API clients
I am working on a project right now, where we need to search different APIs, then clean & persists data to database and finally pushing to Elasticsearch.
The high level code looks like this:
<...
4
votes
2answers
64 views
Java REST-assured acceptance tests
I've have experience in unit testing but I'm fairly new to acceptance testing and REST-assured. I would like to get some feedback on my style. This is not a complete list of all my test but a few that ...
4
votes
0answers
56 views
Manage Labels in a Gitlab Project
Background
This is the first (and only) Go program I've written so far.
My employer just formed a small team to make a prototype written in Go ready for production, so I (and everyone else on my ...
3
votes
2answers
672 views
Web dashboard using many REST API requests
I have created REST API in codeigniter. REST sever created in codeigniter 3.0 and REST client created codeigniter 2.x.x.
I have wrote simple code for login. After login client created dashboard page....
3
votes
2answers
7k views
RESTEasy client that should use generics
I have written some code using RESTEasy to handle RESTful service calls and parse the response XML into relevant JAXB annotated classes. At the moment I have seperate methods for each return type:
<...
3
votes
2answers
852 views
REST API using PHP
I am trying to write an REST API using php from scratch which I am gonna use to play with Angular.js. It is working fine now and I need your opinions on the things I have done in this code to improve ...
3
votes
2answers
336 views
Basic API wrapper around a Restful service
I'm writing a basic wrapper around a restful service that returns a list of Stores. I'm using RestSharp which I'm injecting into the class.
Naturally, I want to make it completely testable (that's a ...
3
votes
2answers
38 views
REST service to list new, continuing, and terminated subscribers during some period
I have a use case which says:
Your REST service will consume a JSON object that contains a list of
emails for subscribers at the start of the subscription period, and a
list of subscribers at ...
3
votes
1answer
308 views
Neo4J Rest Javascript wrapper
As a toy project, I started evaluating the Neo4J graph database and its Rest interface. I'm trying to write a simple graph visualization in JavaScript. In daily business I'm a Java developer and maybe ...
3
votes
1answer
309 views
Constructing a URL for execution using RestTemplate
I am working on a project in which I construct a URL with a valid hostname (but not a blocked hostname) and then execute that URL using RestTemplate from my main ...
3
votes
1answer
58 views
Haskell REST API + PostgreSQL
I'm making some small REST API, which I have never done before. I've got some basic stuff working.
Now my job is to add new entities to this, but all my work is reduced to copy-pasting code I have ...
3
votes
1answer
329 views
Simple Calculator RESTfull API on Java
I have written a small calculator REST API and I need someone to look the structure and design of what I did. I want to know how I can make it better. Here is an example with multiplication. Other ...
3
votes
2answers
144 views
Middleware for a client
I'm developing a middleware for my client and it's found that there are some delay when executing the process. We are currently investigating what's the exact causes of the issue, from architecture ...
3
votes
1answer
185 views
Using Wreq and Lens libraries to query Prosper for account info
I am trying to create a program to manage my Prosper investments for me as an intro to Haskell project. I created a post a few weeks ago for some of the simpler backend calculations: Recommend Next ...