Hosting service for PHP REST API and scheduled service [closed] - rest

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 months ago.
Improve this question
I have implemented REST API using PHP. This API access to MySQL Database.
I was looking for hosting services but I'm not sure where to start, majority of this type of services is referring to Web Hosting, which as I understand is not what I need.
Can anyone suggest any free or cheap service that will support my requirements?
I also need the possibility to schedule service which will periodically access REST API. This one is not implemented yet, because I'm not sure what kind of languages/frameworks are usually supported by the hosting service.
Any help is truly appreciated.

I think that a regular web hosting account would actually work just fine for what you need. If you think about it, the only difference between your RESTful API and any other website is that your API does not return HTML, but rather returns data that is encoded to be consumed by another program instead of a human user directly. From a hosting perspective, though... there really is no difference. There are lots of companies that provide PHP/MySQL hosting out there - for example, Dreamhost. Lots and lots of options.

Do you need the database itself hosted or just the PHP? If the latter, most any web host with PHP will do what you desire. If the former, you'll need a database host as well as a web host.

As long as the hosting provider supports HTTP requests like DELETE,PUT,etc and you are using them in your REST application/service then you are good to go. So just ask for a confirmation about this.

If you need php + MySQL hosting then go for web hosting
And for shedule service you can use cron jobs
In cron job u can select an php script and interval of running it automatically
It will automatically execute after given interval of time

Related

Ceridian Dayforce HRIS API location [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Our company is considering connecting Ceridian Dayforce HR management system with our product.
Now I was asked to estimate required time and effort it would require to do so. The problem is, I can't find documentation source for the API. Dayforce seem to provide an API, for example they have this article that seem to state they support API integration, but data sheet itself is one page size and written in purely non-technical way.
I am wondering: is there any public source of such documentation? If there is none, does this mean that there is no API available or that documentation is only provided to developer once they finish approvement process of some kind?
There is indeed an API. Integration can be performed using SOAP or REST.
You will need to request from Ceridian that they create a test instance for you. After this, it's a good idea to ask for assistance in creating a user role for the purposes of accessing web services. I had some serious pitfalls in this process since it is not reasonable to ask your own HR staff (who likely only use the front end) to know how to do this for you. Ask Ceridian's support team instead.
I have been working on this for about two weeks. I have successfully performed GET and PATCH requests (both using Postman and in code) but creating a new employee with POST is not as straightforward as the documentation makes it out to be. There seem to be many snags along the way and Ceridian is not very cooperative in providing clear explanations when problems occur (they don't really provide any support on these things, and they make this fairly clear in their documentation). Their support staff are not really development people, so their knowledge in this domain is likely limited as can be expected.
With that said, I can say that the documentation may seem to be detailed, but be aware that the detail ends after the 'happy path' cases are outlined.
You need to contact your account manager at Ceridian to get details. They do have detailed documentation, just not freely available.
Dayforce is introducing Restful web services in their new realease 53. If that helps.

Rest API and chef [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am working on a project where in I have to build a rest api and will be using chef at the backend. How can the integration between chef and a rest api be done? For eg: I will be having chef recipes on the chef server. So how can these recipes be invoked from the rest api? Also what is the best language that can be used for developing a rest api?
There really isn't much information in your question to go on, but it seems like you may be conflating a few different concepts.
The Chef server is the central location to store your cookbooks and other config data. You do not "invoke cookbooks" on it. Though cookbooks can be uploaded to the Chef server, nodes running the Chef client are the ones that would "invoke" a cookbook. You can read more about the Chef server on the Chef website.
As far as integration between the Chef server and a RESTful API. No such "integration" needs to be done, the server already provides with one. You can see its documentation on the Chef website. You may be specifically interested in the /cookbooks endpoint:
The /cookbooks endpoint has the following methods: GET.
The GET method is used to return a hash of all cookbooks and cookbook versions.
Finally, what the "best" language for a RESTful API is an matter of opinion and depends on your needs. A similar question has been asked and closed for that reason previously.
If you're just getting started, you may also find this question about what RESTful programming is helpful.

why many aws service didn't provide the RESTful API but only the sdk? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I studied Amazon web service API reference, I found many services (EC2,Cloudwatch) only support the programming SDK, java/python and so on. Only little services provide RESTful API, such as S3.
I think Restful API is more easier to use than programming SDK. Why Amazon didn't provide the Restful API?
Some may say it just comes down to opinion... but imo, there's no reason to prefer lower RESTful API over SDK, when your language of choice has one.
The SDK's are hand-crafted by AWS to get the most out of their API's (and who would know how to do so better than them?), and give you abstractions that you can take advantage of.
For anything besides a trivial project toying around with AWS, choosing to work with the lower-level API's means that you will end up re-implementing many things the SDK's give you out of the box, aka reinventing the wheel...
The SDK's are there to get you productive and working, fast.
I agree that REST APIs are preferable to SDKs but, actually, all of the AWS services do expose an HTTPS interface, they're just not "RESTful." They call it the "Query API."
http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/Using_Query_API.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-query-api.html
Well, in fact, all services of AWS in the SDK communicates with POST/GET.
In the documentation of the AWS services, they provide the url of each action.
The only thing you need to do is read the documentation.
See this S3 documentation which you can see how things works:
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html

HTTP Rest request generator scripting tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a tool that lets me automate REST requests. I want to perform simple load test
where in I need to send request to my server continuously.
I looked at Selenium but I didnt find a way to continuously send requests, may be I am wrong.
Please let me know if somebody knows any tool like selenium which will help me to loop
my RESTrequests.
Thanks in advance for any sort of help.
Br,
Rohit PAI
For basic load testing, and something that you can script, check out ApacheBench. It comes stock with the Apache web server. If you're at the command line on a *nix machine (Mac OS, Linux, etc.) try running: "man ab"
You can write a simple shell script that you can put into the background that loops continuously, or you can cron it up, so that it runs on a schedule. Now, that's a cheap and simple way to perform load tests with configurable request concurrency and basic performance statistics when it's complete.
Now, if you're looking for automated testing/monitoring of a REST API that supports assertions and multi-step requests that allow you to pass variables from one test to the next, as well as scheduling and reporting, try Runscope. You can run tests for REST APIs in the cloud or even endpoints on your local network / VPC (useful if your'e testing behind firewall on dev / staging environments). https://runscope.com

Looking for a REST-based remote filesystem [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
This is a very open/general question (I hope not too general anyway:))
I'm looking for a library/module that could be plugged in a web server (like apache) and handle REST requests to store / retrieve / delete files.
Something like Amazon's S3 or Windows Azure storage, but open-sourced.
Does such a thing exist?
mod_dav? DAV is the original generic/bare-bones REST. You PUT files, then you can GET them back or DELETE them... But that doesn't provide any management by itself, and maybe that is that you are looking for. Have you looked into OpenStack, specifically the object storage component?
There is OpenStack SWIFT which is open source clone of the Amazon's s3. It is lineary scalable and provides REST interface to the data. http://swift.openstack.org/
I solved a similar problem using Node-FSAPI, a NodeJS-based server that exposes a selected part of the file system as a REST api. (It's not an Apache module like you asked for, but it solves the same problem.)
Are you looking for a distributed file system at the same time? If so I suggest using Apache Hadoop's HDFS and the WebHDFS REST API to access the file system.
How ever I am not sure whether this can be deployed as an extension to Apache or any other web server :-( Just wanted to share this idea, if you are looking for a distributed file system with guaranteed reliability etc.