json explore.data.gov domains api swagger defintion

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json explore.data.gov domains api swagger defintion相关的知识,希望对你有一定的参考价值。

{
    "apiVersion": "1.0",
    "swaggerVersion": "1.2",
    "basePath": "https://explore.data.gov/resource",
    "resourcePath": "",
    "produces": [
        "application/json"
    ],
    "apis": [
        {
            "path": "/federal-executive-agency-internet-domains.json",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Pull internet domains",
                    "notes": "Returns a list of executive agency internet domain.",
                    "nickname": "getAnalysis",
                    "type": "domain",
                    "parameters": [
			            {
			              "id": "domain_name",
			              "name": "domain_name",
			              "description": "Retrieve all records with domain_name equal to example.gov.",
			              "required": false,
			              "allowMultiple": false,
			              "dataType": "string",
			              "paramType": "query"
			            },
			            {
			              "id": "domain_name_address",
			              "name": "domain_name_address",
			              "description": "Retrieve all records with domain_name_address equal to https://www.example.gov.",
			              "required": false,
			              "allowMultiple": false,
			              "dataType": "string",
			              "paramType": "query"
			            },                    
                        {
                            "name": "federal_agency",
                            "description": "Retrieve all records with federal_agency equal to US Interagency Council on Homelessness.",
                            "required": false,
                            "allowMultiple": false,
                            "dataType": "string",
                            "paramType": "query"
                        },                    
                        {
                            "name": "redirecting",
                            "description": "Retrieve all records with redirecting equal to 302.",
                            "required": false,
                            "allowMultiple": false,
                            "dataType": "string",
                            "paramType": "query"
                        },                    
                        {
                            "name": "redirect_destination",
                            "description": "Retrieve all records with redirect_destination equal to www.example.gov.",
                            "required": false,
                            "allowMultiple": false,
                            "dataType": "string",
                            "paramType": "query"
                        }
                    ],
                    "produces": [
                        "application/json"
                    ],
                    "responseMessages": [
                        {
                            "code": 404,
                            "message": "There are no internet domains."
                        }
                    ]
                }
            ]
        }
    ],
    "models": {
        "domain": {
            "id": "domain",
            "properties": {
                "domain_name_address": {
                    "type": "string"
                },
                "domain_name": {
                    "type": "string"
                },
                "redirecting": {
                    "type": "string"
                },
                "federal_agency": {
                    "type": "string"
                }
            }
        }
    }
}

以上是关于json explore.data.gov domains api swagger defintion的主要内容,如果未能解决你的问题,请参考以下文章

JavaScript入门:前后端交互基础(DOM,JSON,AJAX)

dom字符串转dom对象

React虚拟DOM具体实现——利用节点json描述还原dom结构

从 JSON 请求中删除 DOM 标签

基于 json 数据重新排序 dom 元素的最佳方法

在DOM中嵌入任意JSON的最佳实践?