{"id":22490980,"url":"https://github.com/barisesen/simple-laravel-api","last_synced_at":"2026-05-01T01:31:31.070Z","repository":{"id":126661453,"uuid":"95674243","full_name":"barisesen/simple-laravel-api","owner":"barisesen","description":"You can test it easily!","archived":false,"fork":false,"pushed_at":"2017-06-28T14:28:53.000Z","size":171,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T19:54:25.658Z","etag":null,"topics":["api","laravel","token-authetication"],"latest_commit_sha":null,"homepage":"https://simple-laravel-api.herokuapp.com/","language":"PHP","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/barisesen.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}},"created_at":"2017-06-28T13:52:45.000Z","updated_at":"2023-03-08T21:45:37.000Z","dependencies_parsed_at":"2023-06-17T14:15:17.044Z","dependency_job_id":null,"html_url":"https://github.com/barisesen/simple-laravel-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barisesen/simple-laravel-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisesen%2Fsimple-laravel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisesen%2Fsimple-laravel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisesen%2Fsimple-laravel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisesen%2Fsimple-laravel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barisesen","download_url":"https://codeload.github.com/barisesen/simple-laravel-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisesen%2Fsimple-laravel-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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","laravel","token-authetication"],"created_at":"2024-12-06T17:32:03.432Z","updated_at":"2026-05-01T01:31:31.051Z","avatar_url":"https://github.com/barisesen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Token based api\n\nToken kullanılarak yapılmış basit bir api örneğidir. Her yapılan istekte parametre olarak api_token gönderilmelidir.\nParametlere olarak göndermek yerine headerda\n\nAuthorization:Bearer api_token\n\nŞeklinde kullanılabilir.\n\nKullanıcı giriş ve kayıttan sonra api_token döner.\n\n## Getting with ajax\n\n### Login \n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/user/login',\n\t    type     : \"POST\",\n\t    data     : \"email=iletisim@barisesen.com\u0026password=password\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n### Register \n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/user/login',\n\t    type     : \"POST\",\n\t    data     : \"name=baris\u0026email=iletisim@barisesen.com\u0026password=password\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n### Add New Note\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/notes',\n\t    type     : \"POST\",\n\t    data     : \"api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v11ViKkdvw7ZK4sqrEhld\u0026body=api test\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n### list All Notes\n\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/notes?api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v11ViKkdvw7ZK4sqrEhld',\n\t    type     : \"GET\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n### list Only my Notes\n\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/user/notes?api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v1ViKkdvw7ZK4sqrEhld',\n\t    type     : \"GET\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n### Show Note\n\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/notes/**:id**?api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v1ViKkdvw7ZK4sqrEhld',\n\t    type     : \"GET\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n### Delete My Note\n\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/notes/**:id**',\n\t    type     : \"Delete\",\n\t    data \t : \"api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v11ViKkdvw7ZK4sqrEhld\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n### Update My Note\n\n\n\t$.ajax({\n\t    url      : 'https://simple-laravel-api.herokuapp.com/api/notes/**:id**',\n\t    type     : \"PATCH\",\n\t    data \t : \"api_token=gFbAfiphLKzlz13wPHK89ezTsn446BSbzS2ZTId5v11ViKkdvw7ZK4sqrEhld\u0026body=updated post test\",\n\t    headers: {\n\t        'Accept':'application/json'\n\t    },\n\t    dataType : 'json',\n\t    success  : function (resp) {\n\t      console.log(resp);\n\t    }\n\t  });\n\n\n\n## Contributors\n- [barisesen](https://github.com/barisesen) Barış Esen [barisesen.com](https://barisesen.com) - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisesen%2Fsimple-laravel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarisesen%2Fsimple-laravel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisesen%2Fsimple-laravel-api/lists"}