OpenAPI (Swagger) definition for Scryfall, a Magic: The Gathering search engine.
You may add these clients as submodules to your own code.
To generate your own clients
- Install AutoRest via
npm
(npm install -g autorest
) - Run:
autorest README.md
You may also run AutoRest in Docker by running:
docker run --rm -w /var/autorest -v ${PWD}:/var/autorest azuresdk/autorest
The following are the settings for this using this API with AutoRest
input-file: swagger.yaml
namespace: scryfall
csharp:
namespace: Scryfall.API
output-folder: CSharp
go:
output-folder: Go
java:
namespace: com.scryfall.api
output-folder: Java
nodejs:
output-folder: NodeJS
typescript:
output-folder: TypeScript
python:
output-folder: Python
ruby:
output-folder: Ruby
php:
output-folder: PHP
directive:
- from: swagger-document
where: $.info.title
set: ScryfallClient
reason: Set friendly client class names.