2017-01-11 03:38:55 -08:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2017-01-11 04:05:32 -08:00
|
|
|
Personal API Keys
|
2017-01-11 03:38:55 -08:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
2020-10-09 14:46:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
|
|
|
@if (!config('app.lock_passwords'))
|
|
|
|
<passport-personal-access-tokens
|
|
|
|
token-url="{{ url('oauth/personal-access-tokens') }}"
|
|
|
|
scopes-url="{{ url('oauth/scopes') }}">
|
|
|
|
</passport-personal-access-tokens>
|
|
|
|
@else
|
|
|
|
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2020-12-09 08:19:04 -08:00
|
|
|
<div class="alert alert-warning"><i class="fa fa-warning faa-pulse animated"></i>
|
|
|
|
When generating an API token, be sure to copy it down immediately as they
|
|
|
|
will not be visible to you again. </div>
|
2020-12-09 08:14:44 -08:00
|
|
|
|
|
|
|
<p>Your API base url is located at:<br>
|
2020-12-09 08:19:04 -08:00
|
|
|
<code>{{ url('/api/v1') }}/<endpoint></code></p>
|
|
|
|
|
|
|
|
<p>API tokens are set to expire in:
|
|
|
|
<strong>{{ config('passport.expiration_years') }} years</strong>.</p>
|
|
|
|
|
|
|
|
|
|
|
|
<p>Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to
|
|
|
|
find specific API endpoints and additional API documentation.</p>
|
2020-10-09 14:46:11 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-01-11 03:38:55 -08:00
|
|
|
@stop
|
2017-01-25 21:29:23 -08:00
|
|
|
|
|
|
|
@section('moar_scripts')
|
2017-09-28 19:45:15 -07:00
|
|
|
<script nonce="{{ csrf_token() }}">
|
2017-01-25 21:29:23 -08:00
|
|
|
new Vue({
|
|
|
|
el: "#app",
|
|
|
|
});
|
|
|
|
</script>
|
2017-09-28 19:45:15 -07:00
|
|
|
@endsection
|