Last active
December 1, 2021 22:46
-
-
Save mshick/2fdf8a47391d9a3be7a2d299a2a3b495 to your computer and use it in GitHub Desktop.
sc-7107/feature/need-a-filter
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
| { | |
| "projectId": "a037983b-8031-4514-9d11-09e6732460bf", | |
| "dataKey": "AQIDAHhcZWXOdlBglkxBhI23ElO/clC/kuw5ynjXDSqJgfTz8gEEGgyOo5Lm1oAGvckP9LIMAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMdCyfGi/NLeAUXOJ9AgEQgDtX2BJbiLmSLDObo6YEqQHRuP7yqUYdFUcaPL1lhpxNicEZgcNLaX7XNj0T4vYo+KDobkwLB8+QcMoc0Q==", | |
| "version": 3, | |
| "created": "2021-09-30T16:59:46.716Z", | |
| "updated": "2021-12-01T22:46:29.578Z", | |
| "defaultLocale": "en-us", | |
| "locales": ["en-us"], | |
| "apiVersion": "2", | |
| "schemaVersion": "3.10.0", | |
| "queries": { | |
| "Rick_characters": { | |
| "shape": "Rick_Characters", | |
| "resolver": { | |
| "name": "rest:get", | |
| "service": "rick", | |
| "searchParams": { | |
| "ops": [{ "path": "$", "mapping": "$args" }], | |
| "serialize": { "defaults": { "style": "form", "explode": true } } | |
| }, | |
| "path": "/character", | |
| "results": { | |
| "ops": [ | |
| { | |
| "path": "results", | |
| "mapping": [ | |
| ["get", { "path": "$finalResolver.results" }], | |
| ["filter", { "predicate": ["status", "Alive"] }] | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| "description": "Returns a list of characters.", | |
| "args": { | |
| "type": "object", | |
| "properties": { | |
| "page": { "type": "number" }, | |
| "filter": { | |
| "type": "object", | |
| "properties": { | |
| "status": { "type": "string" }, | |
| "species": { "type": "string" }, | |
| "type": { "type": "string" }, | |
| "gender": { "type": "string" } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "mutations": {}, | |
| "shapes": { | |
| "Rick_Character": { | |
| "id": "Rick_Character", | |
| "name": "Rick_Character", | |
| "title": "Rick_Character", | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "id": { "type": "string" }, | |
| "status": { "type": "string" }, | |
| "species": { "type": "string" }, | |
| "type": { "type": "string" }, | |
| "gender": { "type": "string" }, | |
| "image": { "type": "string" }, | |
| "created": { "type": "string" }, | |
| "name": { "type": "string" }, | |
| "firstName": { "type": "string" }, | |
| "lastName": { "type": "string" } | |
| } | |
| } | |
| }, | |
| "Rick_Characters": { | |
| "id": "Rick_Characters", | |
| "name": "Rick_Characters", | |
| "title": "Rick_Characters", | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "results": { | |
| "type": "array", | |
| "items": { "$ref": "#/shapes/Rick_Character/schema" } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "workflows": {}, | |
| "forms": {}, | |
| "services": { | |
| "rick": { | |
| "id": "rest", | |
| "provider": "generic", | |
| "title": "REST", | |
| "namespace": "REST", | |
| "serviceType": "rest", | |
| "authenticationType": "none", | |
| "options": { "endpoint": "https://rickandmortyapi.com/api" } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment