{"id":23768415,"url":"https://github.com/aleksandargosevski/apy","last_synced_at":"2026-03-11T19:31:18.753Z","repository":{"id":57183028,"uuid":"19758158","full_name":"aleksandargosevski/apy","owner":"aleksandargosevski","description":"Apy is a simple client-side library for making rest api ajax calls.","archived":false,"fork":false,"pushed_at":"2017-08-25T18:00:02.000Z","size":48,"stargazers_count":67,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-26T17:56:25.505Z","etag":null,"topics":["api","browser","javascript","rest","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleksandargosevski.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T22:31:53.000Z","updated_at":"2025-08-27T12:05:54.000Z","dependencies_parsed_at":"2022-09-08T03:41:36.526Z","dependency_job_id":null,"html_url":"https://github.com/aleksandargosevski/apy","commit_stats":null,"previous_names":["aleksandargosevski/apy","goschevski/apy"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/aleksandargosevski/apy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandargosevski%2Fapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandargosevski%2Fapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandargosevski%2Fapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandargosevski%2Fapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleksandargosevski","download_url":"https://codeload.github.com/aleksandargosevski/apy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleksandargosevski%2Fapy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","browser","javascript","rest","rest-api"],"created_at":"2025-01-01T01:34:26.959Z","updated_at":"2026-03-11T19:31:18.737Z","avatar_url":"https://github.com/aleksandargosevski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apy\n\n[![Build Status](https://travis-ci.org/goschevski/apy.svg?branch=master)](https://travis-ci.org/goschevski/apy)\n\nApy is a simple client-side library for making REST API AJAX calls.\nIt supports both callback and promises.\n\n## API\n\n### all ([params], [callback])\n\n#### Params\n- **params** *(object)*: serialized and appended as a querystring to the url\n- **callback** *(function)*: triggered when the request is done\n\n#### Returns\n- **promise**: Returns the Promise.\n\n### find (id, [params], [callback])\n\n#### Params\n- **id** *(string|number)*: id of resource appended to the url\n- **params** *(object)*: serialized and appended as a querystring to the url\n- **callback** *(function)*: triggered when the request is done\n\n#### Returns\n- **promise**: Returns the Promise.\n\n### save (data, [params], [callback])\n\n#### Params\n- **data** *(object)*: sent as body of the request\n- **params** *(object)*: serialized and appended as a querystring to the url\n- **callback** *(function)*: triggered when the request is done\n\n#### Returns\n- **promise**: Returns the Promise.\n\n### update (id, data, [params], [callback])\n\n#### Params\n- **id** *(string|number)*: id of resource appended to the url\n- **data** *(object)*: sent as body of the request\n- **params** *(object)*: serialized and appended as a querystring to the url\n- **callback** *(function)*: triggered when the request is done\n\n#### Returns\n- **promise**: Returns the Promise.\n\n### destroy (id, [params], [callback])\n\n#### Params\n- **id** *(string|number)*: id of resource appended to the url\n- **params** *(object)*: serialized and appended as a querystring to the url\n- **callback** *(function)*: triggered when the request is done\n\n#### Returns\n- **promise**: Returns the Promise.\n\n\n## Examples\n\n## First define resource\n```javascript\nvar PeopleApi = new Apy({\n    base: '/api/v3/people'\n});\n```\n\n#### So let's fetch all nice developers\n\n```javascript\nPeopleApi.all({ kind: 'nice', job: 'developer' }, function (err, data) {\n    if (!err) {\n        console.log(data);\n    }\n});\n```\n\n*GET* request to `/api/v3/people/?kind=nice\u0026job=developer`\n\n#### Or we can fetch all developers even if they are not nice...\n\n```javascript\nPeopleApi.all().then((data) =\u003e {\n    console.log(data);\n}).catch((err) =\u003e {\n    console.log(err);\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandargosevski%2Fapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksandargosevski%2Fapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksandargosevski%2Fapy/lists"}