Express routing pass variable to required file

I'm trying to have all my controllers called in a file called index, so I don't just build all express routes in one file. Therefore my index.js looks like: //imports and stuff router.use('/auth', require('./auth')) router.use('/users', require('./...
more »

2017-03-21 19:03 (1) Answers

RESTful Resource Naming for POST

Giving this naming convention: for the POST (insert) the url of the resource should follow this path/logic: { "color":"something" } ...
more »

2017-03-21 18:03 (2) Answers

Struts Rest Plugin URL does not work

I have implemented a Rest and No Rest configuration using the Struts Rest Plugin. But when I put the URL (http://localhost:8080/exampleRestApp/rest/institutions) throws an exception : WARNING: Could not find action or result: /exampleRestApp/rest/in...
more »

2017-03-21 17:03 (0) Answers

make REST call with typescript

I installed the "sb admin 2" dashboard with html5/angular2. This sample works with typescript. To instanciate charts, the file charts.compenent.ts defines the class and then defines the charts attributes and data as follows import { Component, OnI...
more »

2017-03-21 17:03 (1) Answers

How to configure https for my REST application?

Consider next: I have a restful api, created with java and deployed on tomcat server. I have a client application, based on angularjs and deployed on npm http-server. I have a jwt authentication flow and need to add https security. I'm a bit new ...
more »

2017-03-21 16:03 (1) Answers

Microservice / REST fault tolerant communication

I have some microservices (spring mvc with rest templates), communicating with each other through REST (mainly asynchronously). The problem is, I would like to add some fault tolerancy to the system; e.g. if one of the microservices is down while th...
more »

2017-03-21 14:03 (2) Answers

Spring boot : Create a User with MongoDB

Okay so i've a question : How to create a user with spring ? I learn some informations and the best way to do it's use the UserDetails ... But I can't find informations to use with good practice : UserDetails with mongodb. When i have my...
more »

2017-03-21 13:03 (1) Answers

Rest API security for mobile apps

I'm in the process of designing a mobile application that will need to connect to a server-side process for its business logic and data transactions. I'm writing my server-side code in Java using Spring Boot and I intend to create a Rest API in orde...
more »

2017-03-20 22:03 (2) Answers

Alfresco 5.2 REST API CMIS Query

Until version 201609, we used the following url to get the nodeRef from the Sites folder and from a Script inside the Data Dictionary. We used this information for automatic rule creation via javascript. /alfresco/api/-default-/public/cmis/versions/...
more »

2017-03-20 21:03 (1) Answers

REST Service Type if no Data Flow is Involved?

If I have to consume a service that does not involve data flow between me and the application, what is the most appropriate call type to use? (GET vs POST vs PATCH vs PUT) for the service I am trying to invoke? The backend however will do couple of ...
more »

2017-03-20 18:03 (3) Answers

Rest Template - XML Indentation

I need my generated XML to be indented with new lines and tabs when using Rest Template in Spring Boot application. How can I set the indentation property of JAXB Marshaller in this REST Template. Spring REST template code: HttpHeaders headers ...
more »

2017-03-20 17:03 (2) Answers

How to add user to a folder by calling rest

I need to grant a user's account view access directly to a folder by calling the REST API. The user does not exist on the site, I did google but in many examples I've seen it seems that the users belong to the site already. Do I have to add the us...
more »

2017-03-20 12:03 (0) Answers

REST without parameter value?

I have a jnlp application which accepts rest parameters. Examples: localhost:8080/myApp/rest//jnlp/Client localhost:8080/myApp/rest//jnlp/Client?id localhost:8080/myApp/rest//jnlp/Client?id= Example 1 and 2 work fine. However, how can I r...
more »

2017-03-20 10:03 (1) Answers