I'm looking to build a RESTful API in node.js and want to authenticate users with an API key and API secret musch like the service in Amazon Web Services (AWS).
The question is where to start, googling has lead me to a lot of irrelevant sites and I wondered if anyone had some good site suggestions of sample or skeleton code?
Thanks Ric
Here is an oAuth2 provider module. oAuth is quickly becoming the standard for API's.
https://github.com/AF83/oauth2_server_node
Related
What happens when we do not use REST api to build a web application? And also please tell how to build a web service using REST api in PHP.
What happens when we do not use REST api to build a web application?
Nothing, you can do your project with or without REST API. Assume you are running a restaurant and you want to attach with online food service like Foodpanda,zomato you need to provide an API to interact your data without any user interface which can be done easily using REST.
Why do we need RESTful web services?
REST should be used if it is very important for you to minimize the coupling between client and server components in a distributed application. [read more]
How to build a web service using REST api in PHP?
There are many resources available in internet. Here I found something related to PHP
PHP RESTful Web Service
We are trying to configure keycloak with the REST API (e.g. adding users, roles etc). We would like to use the REST API but it seems only Java and Javascript is officially supported which I find strange for a REST API. Isn't it possible to use say a Python REST client to access Keycloak ?
Keycloak provides a RESTful API, which pretty much means that you can use it with any programming language you want, not just Java or JavaScript.
And you are correct, the official Keycloak admin is provided in Java. But nothing can stop you from looking at the docs and writing yours.
There are a few open source Python Keycloak clients available:
https://github.com/Peter-Slump/python-keycloak-client
https://bitbucket.org/agriness/python-keycloak
I developed a Rest web service with Play! Framework. I aim to secure access to this WS. I'm discovering OAuth2 and it seems to be a good solution in my case. However, instead of using an external OAuth2 provider, I prefer to manage this part myself. So, I installed the last snapshot of OpenAM (12.0.0), which can do this. I have an instance of Active Directory on which the authentication should be based.
I have access to the documentation but I don't know how proceed. I would like to have some tracks.
Thanks for your help.
Hi I need to use REST web service but not getting how to start. Although I have checked different articles but there is no proper example which tells flow of REST SERVER and REST CLIENT. Is there any good example link which tells how a REST server will be created with php and how this web service will be called with which technique. I need web service to show customers and then update customers using web service as well. I need to create my own web service for my application so I need to create both Rest server and Rest client.
Thanks
Crinch
REST isn't a technology, it's a style of software architecture
If you want some concrete examples and a simple framework to get started, try cherrypy, which is a minimal web framework written in python.
This should get you started with a web server that can help you adhere to REST design principles.
You Can Try PHP REST Data services https://github.com/chaturadilan/PHP-Data-Services
I would like to build a REST service in my Drupal module to expose the contents of my DB tables (not nodes, users, or other Drupal stuff). I've installed Rest_server and services modules but I've not found examples on creating REST services.
Can anyone help me, please?
The book "Drupal web services" by Packt is a good resource. They have free Services introduction online too.
Have a look at: Drupal as backend for RESTful API?
Also, did you had a look at the Services drupal group?