-
Notifications
You must be signed in to change notification settings - Fork 4
Превью v2 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Hatsunyan
wants to merge
2
commits into
v2
Choose a base branch
from
v2-dev
base: v2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Превью v2 #4
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,41 @@ | ||
| <?php | ||
|
|
||
| return [ | ||
| /** The title of the application */ | ||
| 'title' => 'Some JsonRpc', | ||
|
|
||
| /** Endpoint for OpenRpc schema */ | ||
| 'endpoint' => '/api/openrpc.json', | ||
|
|
||
| /** | ||
| * A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation | ||
| * You can use a link to a * .md file with a description (relative to the directory resource/) | ||
| * $views/docs/description.md | ||
| * (for file at resource/views/docs/description.md) | ||
| */ | ||
| 'description' => 'Description of JsonRpc Server', | ||
| /** The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version) */ | ||
| 'version' => env('VERSION', '1.0.0'), | ||
| /** A URL to the Terms of Service for the API. MUST be in the format of a URL */ | ||
| 'termsOfService' => 'https://terms.com/', | ||
| /** The contact information for the exposed API */ | ||
| 'contact' => [ | ||
| /** The email address of the contact person/organization. MUST be in the format of an email address */ | ||
| 'email' => 'contact@mail.com', | ||
| /** The identifying name of the contact person/organization */ | ||
| 'name' => 'Ivan Ivanov', | ||
| /** The URL pointing to the contact information. MUST be in the format of a URL */ | ||
| 'url' => 'http://mysite.com', | ||
| 'default' => [ | ||
| 'server' => [ | ||
| 'name' => 'server', | ||
| 'url' => 'https://127.0.0.1/api/v1/openrpc', | ||
| 'summary' => 'summary', | ||
| 'description' => 'description', | ||
| ], | ||
| 'info' => [ | ||
| 'version' => '1.0.0', | ||
| 'title' => 'service', | ||
| 'description' => 'description', | ||
| 'contact' => [ | ||
| 'name' => 'name', | ||
| 'url' => 'https://127.0.0.1/contact', | ||
| 'email' => 'name@example.com', | ||
| ], | ||
| 'license' => [ | ||
| 'name' => 'MIT', | ||
| 'url' => 'http://mit.com', | ||
| ], | ||
| 'termsOfService' => 'https://127.0.0.1/termsOfService', | ||
| ], | ||
| 'methodPipes' => [ | ||
| \Tochka\OpenRpc\Descriptors\Method\Pipes\MethodPipe::class, | ||
| \Tochka\OpenRpc\Descriptors\Method\Pipes\ParameterPipe::class, | ||
| \Tochka\OpenRpc\Descriptors\Method\Pipes\ResultPipe::class, | ||
| ], | ||
| 'typeDescriptors' => [ | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\EnumHandler::class, | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\DateTimeHandler::class, | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\ModelHandler::class, | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\TimeZoneHandler::class, | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\CollectionHandler::class, | ||
| \Tochka\OpenRpc\Descriptors\Type\Handlers\ObjectHandler::class, | ||
| ], | ||
| 'cache' => \Tochka\JsonRpc\Helpers\ArrayFileCache::class, | ||
| ], | ||
| /** The license information for the exposed API */ | ||
| 'license' => [ | ||
| /** The license name used for the API */ | ||
| 'name' => 'MIT', | ||
| /** A URL to the license used for the API. MUST be in the format of a URL */ | ||
| 'url' => 'http://mit.com' | ||
| ], | ||
| /** Additional external documentation */ | ||
| 'externalDocumentation' => [ | ||
| /** The URL for the target documentation. Value MUST be in the format of a URL */ | ||
| 'url' => 'https://google.com', | ||
| /** A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation */ | ||
| 'description' => 'Description of external documentation', | ||
| ] | ||
| ]; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <?php | ||
|
|
||
| namespace Tochka\OpenRpc\Cache; | ||
|
|
||
| interface CacheInterface | ||
| { | ||
| public function get(): ?string; | ||
| public function set(object|array $data): void; | ||
| public function clear(): void; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.