Introduction
+This documentation aims to provide all the information you need to work with our API.
+ +++Base URL
+
http://localhost
+
+ Authenticating requests
+This API is not authenticated.
+ +Authentication
+ +API endpoints for managing authentication
+ +make login in api
+ ++
+ +@param $request
+ + +Example request:+ + +
curl --request POST \
+ "http://localhost/api/login" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"password\": \"reiciendis\",
+ \"email\": \"ea\"
+}"
+
const url = new URL(
+ "http://localhost/api/login"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "password": "reiciendis",
+ "email": "ea"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ do logout in api
+ ++
+ + + + +Example request:+ + +
curl --request POST \
+ "http://localhost/api/logout" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/logout"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Endpoints
+ + + +POST api/register
+ ++
+ + + + +Example request:+ + +
curl --request POST \
+ "http://localhost/api/register" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"aliquam\",
+ \"password\": \"quia\",
+ \"email\": \"et\",
+ \"birthday\": \"2022-05-25\"
+}"
+
const url = new URL(
+ "http://localhost/api/register"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "aliquam",
+ "password": "quia",
+ "email": "et",
+ "birthday": "2022-05-25"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Transitions
+ +API endpoints for managing Transitions
+ +download csv report transactions
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/download/transitions?days=30.&month_year=ut" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/download/transitions"
+);
+
+const params = {
+ "days": "30.",
+ "month_year": "ut",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (500):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+x-ratelimit-limit: 60
+x-ratelimit-remaining: 59
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Undefined array key 1",
+ "exception": "ErrorException",
+ "file": "/var/www/app/Models/Transitions.php",
+ "line": 53,
+ "trace": [
+ {
+ "file": "/var/www/app/Models/Transitions.php",
+ "line": 53,
+ "function": "handleError",
+ "class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/app/Http/Controllers/TransitionsController.php",
+ "line": 100,
+ "function": "getFromMouthYear",
+ "class": "App\\Models\\Transitions",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
+ "line": 54,
+ "function": "download",
+ "class": "App\\Http\\Controllers\\TransitionsController",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
+ "line": 45,
+ "function": "callAction",
+ "class": "Illuminate\\Routing\\Controller",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
+ "line": 262,
+ "function": "dispatch",
+ "class": "Illuminate\\Routing\\ControllerDispatcher",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
+ "line": 205,
+ "function": "runController",
+ "class": "Illuminate\\Routing\\Route",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
+ "line": 721,
+ "function": "run",
+ "class": "Illuminate\\Routing\\Route",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 128,
+ "function": "Illuminate\\Routing\\{closure}",
+ "class": "Illuminate\\Routing\\Router",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
+ "line": 50,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
+ "line": 127,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
+ "line": 103,
+ "function": "handleRequest",
+ "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
+ "line": 55,
+ "function": "handleRequestUsingNamedLimiter",
+ "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 103,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
+ "line": 723,
+ "function": "then",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
+ "line": 698,
+ "function": "runRouteWithinStack",
+ "class": "Illuminate\\Routing\\Router",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
+ "line": 662,
+ "function": "runRoute",
+ "class": "Illuminate\\Routing\\Router",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
+ "line": 651,
+ "function": "dispatchToRoute",
+ "class": "Illuminate\\Routing\\Router",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
+ "line": 167,
+ "function": "dispatch",
+ "class": "Illuminate\\Routing\\Router",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 128,
+ "function": "Illuminate\\Foundation\\Http\\{closure}",
+ "class": "Illuminate\\Foundation\\Http\\Kernel",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
+ "line": 21,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
+ "line": 31,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
+ "line": 21,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
+ "line": 40,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
+ "line": 27,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
+ "line": 86,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/fruitcake/laravel-cors/src/HandleCors.php",
+ "line": 52,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Fruitcake\\Cors\\HandleCors",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
+ "line": 39,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 167,
+ "function": "handle",
+ "class": "Illuminate\\Http\\Middleware\\TrustProxies",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
+ "line": 103,
+ "function": "Illuminate\\Pipeline\\{closure}",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
+ "line": 142,
+ "function": "then",
+ "class": "Illuminate\\Pipeline\\Pipeline",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
+ "line": 111,
+ "function": "sendRequestThroughRouter",
+ "class": "Illuminate\\Foundation\\Http\\Kernel",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
+ "line": 299,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Http\\Kernel",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
+ "line": 287,
+ "function": "callLaravelOrLumenRoute",
+ "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
+ "line": 89,
+ "function": "makeApiCall",
+ "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
+ "line": 45,
+ "function": "makeResponseCall",
+ "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
+ "line": 35,
+ "function": "makeResponseCallIfConditionsPass",
+ "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
+ "line": 222,
+ "function": "__invoke",
+ "class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
+ "line": 179,
+ "function": "iterateThroughStrategies",
+ "class": "Knuckles\\Scribe\\Extracting\\Extractor",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
+ "line": 116,
+ "function": "fetchResponses",
+ "class": "Knuckles\\Scribe\\Extracting\\Extractor",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
+ "line": 123,
+ "function": "processRoute",
+ "class": "Knuckles\\Scribe\\Extracting\\Extractor",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
+ "line": 80,
+ "function": "extractEndpointsInfoFromLaravelApp",
+ "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
+ "line": 56,
+ "function": "extractEndpointsInfoAndWriteToDisk",
+ "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
+ "line": 55,
+ "function": "get",
+ "class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
+ "line": 36,
+ "function": "handle",
+ "class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php",
+ "line": 40,
+ "function": "Illuminate\\Container\\{closure}",
+ "class": "Illuminate\\Container\\BoundMethod",
+ "type": "::"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
+ "line": 93,
+ "function": "unwrapIfClosure",
+ "class": "Illuminate\\Container\\Util",
+ "type": "::"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
+ "line": 37,
+ "function": "callBoundMethod",
+ "class": "Illuminate\\Container\\BoundMethod",
+ "type": "::"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php",
+ "line": 653,
+ "function": "call",
+ "class": "Illuminate\\Container\\BoundMethod",
+ "type": "::"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php",
+ "line": 136,
+ "function": "call",
+ "class": "Illuminate\\Container\\Container",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/symfony/console/Command/Command.php",
+ "line": 298,
+ "function": "execute",
+ "class": "Illuminate\\Console\\Command",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php",
+ "line": 121,
+ "function": "run",
+ "class": "Symfony\\Component\\Console\\Command\\Command",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/symfony/console/Application.php",
+ "line": 1015,
+ "function": "run",
+ "class": "Illuminate\\Console\\Command",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/symfony/console/Application.php",
+ "line": 299,
+ "function": "doRunCommand",
+ "class": "Symfony\\Component\\Console\\Application",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/symfony/console/Application.php",
+ "line": 171,
+ "function": "doRun",
+ "class": "Symfony\\Component\\Console\\Application",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Console/Application.php",
+ "line": 94,
+ "function": "run",
+ "class": "Symfony\\Component\\Console\\Application",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
+ "line": 129,
+ "function": "run",
+ "class": "Illuminate\\Console\\Application",
+ "type": "->"
+ },
+ {
+ "file": "/var/www/artisan",
+ "line": 37,
+ "function": "handle",
+ "class": "Illuminate\\Foundation\\Console\\Kernel",
+ "type": "->"
+ }
+ ]
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Display a listing of the resource.
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/transitions" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/transitions"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (401):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Store a newly created resource in storage.
+ ++
+ + + + +Example request:+ + +
curl --request POST \
+ "http://localhost/api/transitions" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"types\": \"chargeback\",
+ \"value\": 4779696.19,
+ \"user_id\": \"excepturi\"
+}"
+
const url = new URL(
+ "http://localhost/api/transitions"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "types": "chargeback",
+ "value": 4779696.19,
+ "user_id": "excepturi"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Display the specified resource.
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/transitions/4" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/transitions/4"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (401):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Remove the specified resource from storage.
+ ++
+ + + + +Example request:+ + +
curl --request DELETE \
+ "http://localhost/api/transitions/4" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/transitions/4"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ get sum of transactions per user
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/transitions/user/sum" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/transitions/user/sum"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (401):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ User
+ +API endpoints for managing users
+ +Display a listing of the resource.
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/users" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/users"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (401):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Store a newly created resource in storage.
+ ++
+ + + + +Example request:+ + +
curl --request POST \
+ "http://localhost/api/users" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"sunt\",
+ \"password\": \"inventore\",
+ \"email\": \"repudiandae\",
+ \"birthday\": \"2022-05-25\"
+}"
+
const url = new URL(
+ "http://localhost/api/users"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "sunt",
+ "password": "inventore",
+ "email": "repudiandae",
+ "birthday": "2022-05-25"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Display the specified resource.
+ ++
+ + + + +Example request:+ + +
curl --request GET \
+ --get "http://localhost/api/users/5" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/users/5"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());
++Example response (401):
+
+ Show headers +
+cache-control: no-cache, private
+content-type: application/json
+access-control-allow-origin: *
+
+
+
+{
+ "message": "Unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Update the specified resource in storage.
+ ++
+ + + + +Example request:+ + +
curl --request PUT \
+ "http://localhost/api/users/5" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"birthday\": \"2022-05-25\"
+}"
+
const url = new URL(
+ "http://localhost/api/users/5"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "birthday": "2022-05-25"
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+ Remove the specified resource from storage.
+ ++
+ + + + +Example request:+ + +
curl --request DELETE \
+ "http://localhost/api/users/5" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"
const url = new URL(
+ "http://localhost/api/users/5"
+);
+
+const headers = {
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());
Received response: ++
+
+
+ Request failed with error:+
+
+
+
+
+
+
+