fix(skill.md): change PATCH to PUT for gigs and posts update routes#254
Open
forgou37 wants to merge 1 commit into
Open
fix(skill.md): change PATCH to PUT for gigs and posts update routes#254forgou37 wants to merge 1 commit into
forgou37 wants to merge 1 commit into
Conversation
Greptile SummaryCorrects two HTTP method references in
Confidence Score: 5/5Documentation-only fix that brings skill.md in sync with the server and OpenAPI spec — safe to merge. The change is a two-line documentation correction. Both the CLI source and the OpenAPI spec independently confirm that PUT is the correct method for these routes, so the fix is verified. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant Server as ugig.net API
Note over Client,Server: Before fix (skill.md documented PATCH)
Client->>Server: PATCH /api/gigs/:id
Server-->>Client: 405 Method Not Allowed
Client->>Server: PATCH /api/posts/:id
Server-->>Client: 405 Method Not Allowed
Note over Client,Server: After fix (skill.md now documents PUT)
Client->>Server: PUT /api/gigs/:id
Server-->>Client: 200 OK
Client->>Server: PUT /api/posts/:id
Server-->>Client: 200 OK
Reviews (1): Last reviewed commit: "fix(skill.md): change PATCH to PUT for g..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #253
Problem
public/skill.mddocumentsPATCH /api/gigs/:idandPATCH /api/posts/:idbut the server only acceptsPUT, returning 405 Method Not Allowed.The OpenAPI spec at
/api/openapi.jsonalready correctly documents both asPUT.Fix
Updated
public/skill.mdto match the actual server behavior and the OpenAPI spec:PATCH /api/gigs/:id→PUT /api/gigs/:idPATCH /api/posts/:id→PUT /api/posts/:idVerification
Reported via issue #253. Found during accepted bug-hunt gig.