-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST, PATCH, and other methods not supported? #133
Comments
There are some limitations to the current implementation around Express to do with HTTP methods as well as other factors. My aim work be to actually move to another framework, perhaps HAPI to allow better support for all the different HTTP methods |
I also encountered this problem. start drakov logs[INFO] No configuration files found
[INFO] Loading configuration from CLI
DRAKOV STARTED
[LOG] Setup Route: GET /notes Get Notes
[LOG] Setup Route: POST /notes Create New Note
[LOG] Setup Route: GET /notes/:id Get Note
[LOG] Setup Route: PUT /notes/:id Update a Note
[LOG] Setup Route: DELETE /notes/:id Delete a Note
[LOG] Setup Route: GET /users Get users
[LOG] Setup Route: GET /tags
[LOG] Setup Route: GET /tags/:id
Drakov 1.0.1 Listening on port 4007 HTTP PUT & POST Request http PUT http://localhost:4007/notes/1
HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 20
Content-Type: text/html; charset=utf-8
Date: Tue, 16 Aug 2016 03:50:04 GMT
X-Content-Type-Options: nosniff
X-Powered-By: Drakov API Server
Cannot PUT /notes/1 http POST http://localhost:4007/notes
HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 19
Content-Type: text/html; charset=utf-8
Date: Tue, 16 Aug 2016 03:50:24 GMT
X-Content-Type-Options: nosniff
X-Powered-By: Drakov API Server
Cannot POST /notes Drakov request log[LOG] PUT /notes/1
[LOG] GET /notes/1
[DRAKOV] GET /notes/{id}{?body} Get Note
[LOG] POST /notes |
+1 |
2 similar comments
+1 |
+1 |
An update for everyone watching this issue. This is now under active investigation and I am hoping to have a fix/update in the next couple of weeks 👍 |
Any updates? |
@yakovkhalinsky any updates on your "active" investigation :) ? |
Hi there,
I've got a standard API that parses correctly in Apiary.io, and their mock server returns a 200, but drakov seems to always return "404: Cannot PATCH /groups/..."
Do non-GET requests need any special treatment? I'm using the example JS code in Apiary.io, and haven't been able to get a valid response all day. Here's the API:
And the CURL command:
And this is the code I'm using to run drakov (from a gulpfile.js):
The text was updated successfully, but these errors were encountered: