Replies: 6 comments
-
| @PatFox can you include your route declaration from  | 
Beta Was this translation helpful? Give feedback.
-
| Hi, Thanks for the response. Here's a simplified version -- there are other routes in the original file but here's what I have for the model mentioned in the original post:  | 
Beta Was this translation helpful? Give feedback.
-
| @PatFox this looks good and the endpoint should be available. What version of Orion are you using? | 
Beta Was this translation helpful? Give feedback.
-
| If I run  
 ...which I think is the latest? Interestingly, if I add the route manually: ...it works fine. So it's just the routing part that's not working. Anyway, if you (or anyone else!) has any other ideas, I'd love to hear them. In the meantime, I guess I can just use this manual approach for now. | 
Beta Was this translation helpful? Give feedback.
-
| Hi @PatFox, Have you tried naming your Orion resource like  | 
Beta Was this translation helpful? Give feedback.
-
| Hi @alexzarbn, OK I removed the initial slash, so: and this has solved the problem. Listing routes now shows: 
 Seems odd that it works with the slash for some routes, but not others.  Anyway, thanks for your help! | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've created a model and controller (several of them, in fact), and most of it seems to be working fine.
However, when I try to use the search endpoint, I get an error:
The POST method is not supported for route api/transaction-rule/search. Supported methods: GET, HEAD, PUT, PATCH, DELETE.The output from
php artisan route:listlooks like this (just showing entries for this model, but in fact it's the same for all models):Is there something I specifically need to do, to enable the search endpoint?
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions