composer require optimus/api-consumer 0.2.*
laravel-api-consumer's Introduction
laravel-api-consumer's People
Forkers
etorofiev viezel hbnetben renatosistemasvc ssatz asahasrabuddhe sijones-uk montross50 mvanduijker iphuongtt wildmonkey ventepos vegvisir-for-all ognicki kingster996 andresgcarmona lazardjokovic buinkwebdevelopment dawied sc85 joostvdspeld s1rc sashamilenkovic ddell003 dzangolab ch00n devoidofgenius stephane-monnot mufcabhi odenktools trinhphuong quyenhd moovaio depecode nystrand1 clickbar diderson giovanni-tufo generaxion-dev twothreebird hanigamallaravel-api-consumer's Issues
Class apiconsumer does not exist
Do I need to do something extra as to create a service provider for this class ?
added under config.app.php 'providers' => [... Optimus\ApiConsumer\Provider\LaravelServiceProvider::class,
but I get Class apiconsumer does not exist
infinite loop on request header containing invalid passport token
The resource owner or authorization server denied the request. {"exception":"[object] (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at ../vendor/league/oauth2-server/src/Exception/OAuthServerException.php:173)
the solution in laravel/passport#440 works but still.
Bug: Original request does not get restored correctly
Original request does not get restored correctly when using this package.
public function postCreate(NewsStoreRequest $request)
{
$this->getInternalRouter()->post('/api/v1/news', $request->all(), $this->getInternalCallHeaders());
return redirect()->route('news::index');
}
later - if I ask for the current request i will get the api request and not the post request.
// get the request url
dd(request()->fullUrl()); //outputs: /api/v1/news
But I was expecting it to output the original request url which is /news
"Class Infrastructure\Auth\LoginProxy does not exist"
I am using Laravel 5.8
After
- composer require optimus/api-consumer 0.2.*
- In config/app.php added in providers array Optimus\ApiConsumer\Provider\LaravelServiceProvider::class,
- use Infrastructure\Auth\LoginProxy; in my Controller
- $response = $this->apiConsumer->post('/oauth/token', $data); in function
giving error "Class Infrastructure\Auth\LoginProxy does not exist"
Please help me.
content has protect access in http-foundation/Request
In the function below
`public function singleRequest($method, $uri, array $data = [], array $headers = [], $content = null)
{
// Save the current request so we can reset the router back to it
// after we've completed our internal request.
$currentRequest = $this->request->instance()->duplicate();
dd($currentRequest->content, $currentRequest->getContent());
$headers = $this->overrideHeaders($currentRequest->server->getHeaders(), $headers);
if ($this->disableMiddleware) {
$this->app->instance('middleware.disable', true);
}
$response = $this->request($method, $uri, $data, $headers, $content);
if ($this->disableMiddleware) {
$this->app->instance('middleware.disable', false);
}
// Once the request has completed we reset the currentRequest of the router
// to match the original request.
$this->request->instance()->initialize(
$currentRequest->query->all(),
$currentRequest->request->all(),
$currentRequest->attributes->all(),
$currentRequest->cookies->all(),
$currentRequest->files->all(),
$currentRequest->server->all(),
$currentRequest->content
);
return $response;
}`
We may need to change
$currentRequest->content
to
$currentRequest->getContent()
Laravel 11 compatibility
Hi guys @esbenp @pablo-bossi @etorofiev @ognicki !
I've tried to use your package but it's not compatible with Laravel 11.
Could you update it, please?
It could be amazing.
Thank you so much.
Regards.
What does this package do?
I've inherited a project that uses this package. However, I can't find any documentation anywhere of what this package does.
Do you mind updating your optimus series to Laravel 6?
Hi,
it started out that i rely heavy on your laravel api plugins (heimdal, apiconsumer etc). May it be possible to make them ready for Laravel 6.
Best regards
Möbuis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.