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-...
2
votes
0answers
44 views
REST API client
I am new in iOS development and Swift. I am going to develop a simple application which communicates with external REST services. This is my first experiment.
I appreciate feedback on best ...
5
votes
0answers
52 views
Curl-based REST Client Library (round 3)
This code review request relates to this code review which covers the basic single REST call use case in this this REST client library.
This code review covers the classes and unit tests for the ...
2
votes
0answers
48 views
Curl-based REST client library (round 2)
This is a second iteration on an earlier review - cURL based REST client library
I have done some refactoring to split out the REST HTTP response into it's own class from what was in the previous ...
3
votes
2answers
149 views
cURL based REST client library
I have recently refactored a REST client library and was hoping to get review for both the class itself and the unit tests that cover it.
This code is developed against PHP 7.1, but tested against ...
0
votes
0answers
31 views
Java rest-assured automated test script
I am working in a rest-assured tool to automate API's. I am using java language. I did a sample API automation. I want to improve. So I want to know the best practice for rest-assured API automation. ...
-3
votes
0answers
49 views
NodeJS / RESTful APIs
I'm developing my first API and would like to make it right from the beginning. I didn't understand directly the difference between PUT and ...
7
votes
1answer
57 views
Elegantly handle github API requests exceptions
I have this code which creates a team using the github API and returns the team-id(success) or -1(failure).
My problem is with the error handling. When the request responses with an error status code ...
2
votes
2answers
59 views
Pass Through Web API calls
Our application architecture consists of:
SPA JavaScript calls a set of Web API endpoints
The Controllers then call an Entity specific Service
Entity specific Service calls a Pass Through Service
...
1
vote
1answer
50 views
Spring MVC, Mongodb and java
I am avery beginner at SPring MVC, Mongodb and java. I am trying to make a sample application so that the user can serach, create, update and delete a customer:
My CustomerDAO class:
...
3
votes
1answer
88 views
REST API that allows creating/removing users, CRUD ToDo tasks
My project is supposed to be used as back-end for a simple to-do web app that lets you create an account, add, edit, complete, and delete todos.
It could be used with some front end consumer like ...
3
votes
1answer
36 views
RESTful HTTP Post with falcon
I wrote a small aggregator app that aggregates values from a json http post request and outputs the aggregated values. Now the aggregator function is somewhat large but the output appears correct.
I ...
3
votes
1answer
93 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 ...
4
votes
2answers
165 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 ...
5
votes
1answer
153 views
Translating an inputted query to SQL
I'm working on a small RestApi that would be able to:
Interpret different query languages like ...
10
votes
1answer
126 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 ...
0
votes
0answers
45 views
Library repository for adding, deleting and editing a list of books made with EJB and Rest
This was my first time designing the application from scratch, I feel I could miss something important, but I'm not able to find it by myself with no experience.
Here is the pom.xml where I put all ...
5
votes
2answers
104 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:
<...
7
votes
1answer
159 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 ...
1
vote
0answers
278 views
Simple REST-API using Python with falcon
I have a basic example of a REST API that I've done to control LEDs. I've read Dr. Dobbs article about REST and how to do it but I feel that my example doesn't look professional for some reason. ...
4
votes
2answers
120 views
4
votes
2answers
80 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 ...
6
votes
1answer
99 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 ...
0
votes
0answers
22 views
REST request using reactive programming
The following code is an extract of a small library I wrote. Full code is available here.
My question is about the following function. I added comments on each state. I'm wondering if I could do ...
1
vote
0answers
112 views
Extend the Laravel Eloquent model in order to easier implement CRUD REST for my routes
By extending the Model and using this inside my routefiles, I can easily call these functions inside the corresponding HTTP ...
4
votes
1answer
51 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 ...
3
votes
0answers
146 views
Simple picture app for storing and viewing
Update: git repo: https://github.com/muhsinali/picture-example-minified
This is my first project that I've written using Scala and the Play framework. It's a simple application that allows the user ...
1
vote
1answer
119 views
DAO for fetching organizations and departments through a REST API
I have the following class structure:
...
2
votes
0answers
73 views
JavaScript Node/React web developer interview code part 2 RESTful API
I recently applied for a job as a Node/React developer. I'm attempting to cross over from a research position to web development. I didn't get the job but all the feedback I got was that my code was ...
0
votes
1answer
76 views
Java client that consumes a RESTful web service created using Jersey 2
I'm learning web services using Java. I just don't know which method has what advantage over another, like which one is more secure? Which one will be more faster?
POST resource is as follows:
...
1
vote
1answer
101 views
REST API wrapper testing
I'm writing wrapper for REST API of a service. In my wrapper I have quite simple method:
...
1
vote
1answer
77 views
RESTful backend API for user account
I have made a RESTful API built with Node.js, Express, Basic-auth and Mongoose. it will respond JSON.
This is the folder structure:
...
4
votes
2answers
104 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 ...
7
votes
1answer
225 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.:
...
0
votes
2answers
232 views
Laravel Wordpress REST API Controller
For a Laravel project I needed to show latest three blog posts on the homepage.
The blog was made with Wordpress and after some research I found a cool plugin called REST API that allows to get a json ...
3
votes
2answers
677 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 ...
4
votes
1answer
43 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
0answers
69 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 ...
6
votes
2answers
146 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 ...
4
votes
3answers
113 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 ...
7
votes
0answers
211 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.
...
0
votes
0answers
36 views
Factory for ListenableFutureCallbak
I'm developing a Rest API, and at the moment i have a bunch of controllers like this one:
...
2
votes
0answers
86 views
REST web service to interface with a customer database
In what ways could I improve this? Does it look good? Any security concerns? I am using Jersey, Jackson and JPA. What about the architecture? I basically have ...
5
votes
1answer
100 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 ...
1
vote
1answer
103 views
Laravel controller to update appointment requests
My question/refactor is similar to what is found here:
Laravel controller for form validation skinny
However, I feel that the answer is for 5.0 and not 5.2. This question does not pertain only to one ...
0
votes
2answers
58 views
Exception handling in URL builder method
I have a method which is part of a request-handling class. It creates a URL, depending on the resource send request.
This is a part of the REST service:
...
3
votes
1answer
423 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 ...
-1
votes
1answer
79 views
Accepting any object and returning the object
I have been tinkering with generic methods in Java but still haven't figured out a way to optimize this code. Here I need to write similar piece of code for both plan and add-on.
...
3
votes
2answers
159 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 ...
0
votes
0answers
51 views
Using actors to collect paged data structures exposed through REST API
I've come up with a small exercise to learn scala consisting of making a client that assembles a graph available as a resource. The API server responds with a paged list of edges, in the form of ...
2
votes
0answers
36 views
Node.JS HTTP shortcut wrapper
The Node.JS HTTP and HTTPS modules only provide .get shortcut function, unlike AngularJS's $http which provides them all. I went ...