{"openapi":"3.0.3","info":{"title":"CodeHub API","version":"1.0.0","description":"Personal-token REST API for CodeHub snippets, projects, products, assets and sync. Most routes require Authentication.","contact":{"name":"CodeHub","url":"https:\/\/codehub.mk\/docs\/api"}},"servers":[{"url":"https:\/\/codehub.mk\/api\/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Sanctum personal access token"}}},"paths":{"\/":{"get":{"summary":"API root metadata","security":[],"responses":{"200":{"description":"API name\/version"}}}},"\/assets":{"get":{"summary":"List public\/discoverable assets (limited public surface)","security":[],"responses":{"200":{"description":"Asset list"}}}},"\/me":{"get":{"summary":"Current user","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Authenticated user"},"401":{"description":"Unauthenticated"}}}},"\/snippets":{"get":{"summary":"List snippets for the authenticated user","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Snippet collection"}}}},"\/projects":{"get":{"summary":"List projects for the authenticated user","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Project collection"}}}},"\/products":{"get":{"summary":"List products for the authenticated seller\/user context","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Product collection"}}}},"\/sync":{"get":{"summary":"Pull sync payload","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Sync pull"}}},"post":{"summary":"Push sync payload","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Sync push"}}}}}}