{"id":18780602,"url":"https://github.com/simplicitesoftware/ajax-demo","last_synced_at":"2026-01-27T15:31:00.463Z","repository":{"id":80896861,"uuid":"71983551","full_name":"simplicitesoftware/ajax-demo","owner":"simplicitesoftware","description":"A basic example of Simplicite REST services using Ajax","archived":false,"fork":false,"pushed_at":"2026-01-11T22:12:17.000Z","size":786,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-12T02:03:02.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/simplicitesoftware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-10-26T08:40:54.000Z","updated_at":"2026-01-11T22:12:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6b90830-8118-44aa-8937-0bdfb9cedff6","html_url":"https://github.com/simplicitesoftware/ajax-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simplicitesoftware/ajax-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2Fajax-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2Fajax-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2Fajax-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2Fajax-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplicitesoftware","download_url":"https://codeload.github.com/simplicitesoftware/ajax-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2Fajax-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":[],"created_at":"2024-11-07T20:27:16.711Z","updated_at":"2026-01-27T15:31:00.457Z","avatar_url":"https://github.com/simplicitesoftware.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Simplicité Software](https://platform.simplicite.io/logos/logo250-grey.png)\n***\n\nAjax web frontend demo\n======================\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=simplicitesoftware_ajax-demo\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=simplicitesoftware_ajax-demo)\n\nThis project is a **very basic** web front-end demo written in a single HTML page (including jQuery\u0026reg; and Bootstrap\u0026reg;) using the Simplicité\u0026reg; REST services.\n\nThe file to use is `index.html`\n\nIf you want to use your own Simplicité\u0026reg; instance you just need to adjust the root URL in the `root` variable to point to your instance's base API URL (typically `http[s]://\u003cmy host\u003e/[\u003cmy context root\u003e]/api`)\n\nSome other very basic examples are provided:\n\n- `xhr-example.html`: simple call to the user data REST service using the standard `XMLHttpRequest` API\n- `fetch-example.html`: simple call to the user data REST service using the standard `fetch` API\n- `ajaxlib-example.html`: same example as above but using the instance's Ajax library\n- `jslib-example.html`: same example as above but using the Simplicité JS client library (CommonJS mode))\n- `jslib-esm-example.html`: same example as above but using the Simplicité JS client library (ESM mode)\n\nAuthentication method\n---------------------\n\nThe auth token-based authentication method used in the `index.html` file is the recommended approach:\n\n- First call to the `/api/login` endpoint to obtain an auth token by posting login and password as a basic auth string header.\n- Then use the obtained auth token for all subsequent calls to REST services using the custom `X-Simplicite-Authorization` HTTP header with `Bearer \u003cauth token\u003e` as value\n\nLicense\n=======\n\nCopyright 2016-2022 Simplicité Software\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at:\n\n[](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplicitesoftware%2Fajax-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplicitesoftware%2Fajax-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplicitesoftware%2Fajax-demo/lists"}