I have to forward all incoming request from api v1 to api v2. After finished process on the api v1 forward the same request to the api v2 and also process it.
I don't know what is the best way to do it. But, I'll try to do it through BeforeMiddleware or perhaps add some kind of filters on route.
What do you think about these approaches? If someone had a similar problem, I'll be thankful if you share your solution with me. Thanks in advance!
For this, here you can find a solution:
http://fideloper.com/laravel-http-middleware
Related
It's my first post here: after hours of research on web I decided to ask here if someone have the answer.
-> I m working on a symfony app and I have just started using api platform and would like to know if it is possible (I guess so) to "intercept" post requests to process their content. I would like to be able to compare the contents of a table with the contents of the query. The final goal is to be able to authenticate devices if their activation code is in the table in question.
Hope this is understandable ...
Thank you in advance :)
Yes, it’s possible Api platform have some events and you can listen one of them see https://api-platform.com/docs/core/events/
In your case I will listen POST_DESERIALIZE
I'm really new to this community. But anyway I got to call an external api (a paypal api) through Tibco and have absolutely no idea how to do it. I've been on this for days but to no avail.
Any help would be greatly appreciated!
Thank yall so much in advance :)
What kind of service external API is exposing? If it is REST service, you can use REST/JSON palette with Invoke REST API or Send HTTP Request.
If it is SOAP, there is different approach in place.
But what you need to acquire is service specification (ideally sample request and endpoint). Share details and maybe I can help more.
I have been trying for the past several hours to make an authenticated request to the docker hub api. First of all, let me say that their documentation is very unclear. There are several different subdomains that you have to cycle through. The ones I have seen are index.dockerhub.io, registry-1.docker.io/v1/ auth.docker.com/token. There were others. But you get the point. Its like their api is managed by 30 different people or something and they forgot to have a meeting about how to unify their api. It feels like I have read just about everything I could find on the internet about how to do what I am trying to do, and it still is very unclear to me what I am supposed to do.
Their documentation states that I am supposed to get an auth token before making certain request. Ok. Fine. How do I do that? I got lucky and stumbled across the endpoint, https://auth.docker.io/v2/token/ no thanks to their api. I found it by just guessing. I don't know that version 2 is capable of even doing what I am trying to do.
What steps do I need to take to make authenticated request to the dockerhub api. What I am trying to do more specifically, is I am trying to query information about the given images that are on the hub, like the size of the images, and the basic port information that is available. I know its possible, because I have used services that do it. So, how do you properly authenticate request to get this information?
So after a few more hours of working on this problem, I came across someone who had similar issues and wrote a blog post about exactly how to solve it. The short answer is the endpoint that was missing from the docker api documentation is https://cdn-registry-1.docker.io/v1/. Why didn't they document their api better? I don't know. If anyone wants to read the full article about how this is done, you can find it at http://www.appcontainers.com/requesting-image-information-using-the-public-docker-api/
This was the most helpful article I have found on the subject. Hopefully this will help some other poor soul who is trapped in the confusion known as the docker api.
i've googled all over, read through the APIs.
The best I can find is this snippet, and I have no idea how he figured out this much.
anybody?
This guy appears to have reverse engineered it with fiddler, maybe this is a private api and everyone is reversing it.
i'm trying to establish real time connection between 2 ipads.
so far, i've done bluetooth already, but i want to do it over the internet as well. can someone point me in the right direction for the best way to do it?
thx in advance.
http://code.google.com/p/cocoahttpserver/
If you want the app to handle http requests you could try this. Implementing it will be quite a trick, so good luck and have fun!