--- title: API Reference language_tabs: - bash - javascript includes: search: true toc_footers: - Documentation Powered by Documentarian --- # Info Welcome to the generated API reference. [Get Postman Collection](http://localhost/docs/collection.json) #general ## Display a listing of the resource. > Example request: ```bash curl -X GET -G "http://localhost/api/users" \ -H "Accept: application/json" ``` ```javascript const url = new URL("http://localhost/api/users"); let headers = { "Accept": "application/json", "Content-Type": "application/json", } fetch(url, { method: "GET", headers: headers, }) .then(response => response.json()) .then(json => console.log(json)); ``` > Example response (200): ```json { "index_resource": true } ``` ### HTTP Request `GET api/users` ## Show the form for creating a new resource. > Example request: ```bash curl -X GET -G "http://localhost/api/users/create" \ -H "Accept: application/json" ``` ```javascript const url = new URL("http://localhost/api/users/create"); let headers = { "Accept": "application/json", "Content-Type": "application/json", } fetch(url, { method: "GET", headers: headers, }) .then(response => response.json()) .then(json => console.log(json)); ``` > Example response (200): ```json { "create_resource": true } ``` ### HTTP Request `GET api/users/create`