-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapis-json-spec.txt
More file actions
872 lines (767 loc) · 30.4 KB
/
apis-json-spec.txt
File metadata and controls
872 lines (767 loc) · 30.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
Draft for Comment
Name: API Discovery Format
Informal Name: APIs.json or APIs.yaml
Authors: Kin Lane, Steve Willmott
Date: 11/06/2024
Location: http://apisjson.org/format/apisjson_v0.19.txt
A Simple Format for Publishing API Meta Data on the Web.
Table of Contents
1. Abstract
2. Introduction
3. Specification
3.1 Access method
3.2 Authority
3.2.1 Authoritative
3.2.2 Non-Authoritative
3.2.3 Conflict Resolution
3.2 File Format Description
3.3 Formal Syntax
3.3.1 JSON
3.3.2 Other Formats
3.4 Expiration
3.5 Media Type
3.6 JSON Schema
3.7 Well Known
3.8 Link Relation
3.9 Extensions
4. Examples
5. Security Considerations
6. Reserved Keywords with Definitions
8. Acknowledgements
9. Author's Address
1. Abstract
Web APIs [1] are becoming a crucial part of the Web. Unfortunately however, it remains
very difficult to determine the location of these APIs on servers around the Web by
automated means. The only way to discover APIs and their properties is via human
driven search through public search engines or in hand curated API Directory listings
such as ProgrammableWeb [2]. While these methods work, neither can scale to the potentially
hundreds of thousands and millions of APIs which will be published over the next few years.
The objective of the format described in this document is to provide a simple means
for individuals and organizations to document the location of their
API Services on a given domain in a machine readable way. The format is designed
for public deployment and for consumption by automated software agents (robots).
This document is written in loose RFC style for the purposes of clarity, but
it is not an official recommendation. Discussion around the format takes place
on the API Json Mailing list [3].
2. Introduction
Web APIs have quickly become an important part of Web Infrastructure. However the
amount of machine readable meta-data about the location and capabilities of these APIs
remains extremely limited.
A number of machine readable formats for describing Web API Interfaces have emerged.
Unfortunately however adoption of these formats is not widespread and further, where
they are used it is in turn not clear where to look for these definition files
themselves. This document takes no position on which of these formats is best, but
aims to solve the problem of where to find the descriptions in the first place.
In other words, it means to provide a mechanism to bootstrap meta-data discovery for APIs.
The objective of the format defined in this document is to provide a lightweight means
for individuals and organizations to document the location of their APIs, the associated
descriptions, human and machine readable specification and ancillary information (such
as licensing, maintainers and so forth).
3. Specification
This section defines the API Meta Data Format. The following terminology is used throughout:
* File: instance of a digital file containing data.
* Apis.* file, a file which contains API Meta Data information compatible with this
document and uses one of the defined content types [currently JSON, YAML, Markdown and TXT]. A file
may contain more than one API Specification.
* API Specification: collection of information about a specific API expressed in the
format defined in this document. Uniqueness is determined by the primary root/base
URL of the API.
3.1. Access method
The definitions of API Meta Data MUST be accessible by HTTP or HTTPS or Both from
either the site on which the referenced APIs are operating or another site (see below
for information on Authoritative and Non-Authoritative definitions) as a resource of
Internet Media Type as determined by the content type under
a standard relative path on the server: "/apis.*", where * is determined by the
content type of the file.
For convenience we will refer to this resource as the "/apis.*
file", though the resource need in fact not originate from a file-
system.
Some examples of URLs for sites and URLs for corresponding
"/apis.*" sites:
http://www.foo.com/apis.txt
http://www.foo.com/apis.md
http://www.bar.com:8001/apis.json
http://www.bar.com:8001/apis.yml
If the server response indicates Success (HTTP 2xx Status Code)
the robot must read the content, parse it, and follow any
instructions applicable.
If the server response indicates the resource does not exist (HTTP
Status Code 404), the robot can assume no instructions are
available.
If the robot parses the file it may discover references to further apis.*
files elsewhere on the same filesystem or elsewhere on the Internet. It may
choose to download these files also and take into account the information
contained within them.
While the format is intended to be human readable and may be used by humans, it
is primarily intended for consumption by automated software systems. Such software
systems may be part of search engines, testing frameworks or API using applications.
In keeping with terminology from the robots.txt format they are referred to as robots
from here onwards.
3.2. Authority
3.121 Authoritative
An entry in a apis.* file is AUTHORITATIVE for a given domain if the root domain of the API described by the entry is on the same DNS domain or on a DNS subdomain thereof.
An entry in an apis.* file is AUTHORITATIVE for a given domain if the root domain of API described by entry is added to GitHub organization profile associated with repository.
3.2.2 Non-Authoritative
An entry in an apis.* file for an API is NON-AUTHORITATIVE if it is not AUTHORITATIVE.
3.2.3 Authority by Reference
For Discussion: We may wish to allow the case where a top level apis.json file on a given domain has
pointers to files on other servers which define APIs on the domain of the first
file. These could then be considered authoritative. This is complex but might be a real
use case.
3.2.4. Conflict Resolution
In cases where a robot discovers more than one entry in separate apis.* files for a
a specific API, priority on the validity of information should generally be resolved
as follows:
* Authoritative entries have priority over non-authoritative.
* Where two or more authoritative entries exist on different subdomains, the
entry in the file closest to the specific domain of the root domain of the API
shall have priority.
Example for an API with DNS domain http://mainapi.commerce.company.com/ where entries
are present at:
* http://company.com/apis.json
* http://commerce.company.com/apis.json
The later would be interpreted as the most Authoritative.
3.3. Formal Syntax
3.3.1. JSON or YAML Format
This is a proposed specification for an apis.json or apis.yaml file, which can be placed in the
root of any domain, providing a single inventory of all API resources available within
that domain, as well as pointers to other associated api.json files.
A file shall be in JSON or YAML format and contain the following elements:
* aid [Mandatory]: A unique identifier for the collection, consisting of [root domain]:[string] (ie. apis.json:spec-example)
* name [Mandatory]: text string of human readable name for the collection of APIs
* description [Mandatory]: text human readable description of the collection of APIs.
* image [Optional]: Web URL leading to an image to be used to represent the collection of
APIs defined in this file.
* url [Mandatory]: Web URL indicating the location of the latest version of this file
* tags (collection) Optional]:
this is a list of descriptive strings which identify the contents of the APIs.json file. Represented
as an array.
* created [Mandatory]: date of creation of the file
* modified [Mandatory]: date of last modification of the file
* type [Optional]: Type of collection (Index [of a single API], Collection [of multiple APIs], Blueprint [of a new API]).
* position [Optional]: The position held by the maintainer of an APIs.json.
* access [Optional]: The access available for the APIs.json being defined.
* specificationVersion [Mandatory]: version of the APIs.json specification in use.
* apis (collection) [Optional]: list of APIs identified in the file, each containing:
* aid [Mandatory]: A unique identifier for the api, consisting of [root domain]:[string] (ie. apis.json:spec-api)
* name [Mandatory]: name of the API
* description [Mandatory]: human readable text description of the API.
* image [Optional]: URL of an image which can be used as an "icon" for the API if displayed by a search engine.
* created [Optional]: date of creation of the api
* modified [Optional]: date of last modification of the api
* humanUrl: Web URL corresponding to human readable information about the API.
* baseUrl: Web URL corresponding to the root URL of the API or primary endpoint.
* version [Optional]: String representing the version number of the API this description refers to.
* tags: (collection) [Optional]: this is a list of descriptive strings which identify the API.
as an array.
* properties (collection):
- name [Optional]: The display name of the property.
- description [Optional]: human readable text description of the property.
- type: please see reserved keywords below.
- mediaType [Optional]: IANA media type representing the property.
- url [Optional]: The URL for the property. * must be url or data
- data [Optional]: The data for the property. * must be url or data
- tags: (collection) [Optional]: this is a list of descriptive strings which identify the property.
* overlays (collection) [Optional]: an optional list of overlays to apply to individual APIs.
- type [Optional]: The type of overlay being made available.
- url [Optional]: The URL for the property. * must be url or data
* contact (collection)
- [Person or Organization - see below]
* common (collection) [Optional]: a list of common properties for use across all APIs and tools.
- name [Optional]: The display name of the property.
- description [Optional]: human readable text description of the property.
- type: please see reserved keywords below.
- mediaType [Optional]: IANA media type representing the property.
- url or value.
- data [Optional]: The data for the property. * must be url or data
- tags: (collection) [Optional]: this is a list of descriptive strings which identify the property.
* overlays (collection) [Optional]: an optional list of overlays to apply to primary APIs.json.
- type [Optional]: The type of overlay being made available.
- url [Optional]: The URL for the property.
* include (collection) [Optional]
- name [Mandatory]: name of the APIs.json file referenced.
- url [Mandatory]: Web URL of the file.
* networks (collection) [Optional]: an optional list of related API nodes to search in a network.
- name [Optional]: The name of network being made available.
- url [Optional]: The URL for the network search node.
* maintainers (collection) [VCARD]
* [Person or Organization - see below]
The above elements determine the information to be provided (examples are provided lower down). In
addition the format reserves keywords for types. These are listed in Section 6.
The Person or Organization is defined as containing:
* fn [Optional]: String Value corresponding to the Full Name name of the individual / organization.
* email [Optional]: String Value corresponding to the email address of the individual / organization
* url [Optional]: String Value corresponding to a web page about the individual individual / organization
* org [Optional]: String Value representing the name of the organization associated with the cCard.
* adr [Optional]: String Value corresponding to the physical address of the individual / organization.
* tel [Optional]: String Value corresponding to the phone number including country code of the individual / organization.
* x-twitter [Optional]: String Value corresponding to the twitter username of the individual / organization (convention do not use the "@" symbol). Note - these are X- since this is the way they are / would be in vCard.
* x-github [Optional]: String Value corresponding to the github username of the individual / organization. Note - these are X- since this is the way they are / would be in vCard.
* photo [Optional]: URL corresponding to an image which could be used to represent the individual / organization.
* vCard [Optional]: URL pointing to a vCard Objective RFC6350
The labelled values are all taken from the vCard specification.
3.3.2. Other Formats
No Other Formats are currently planned
3.4. Expiration
Robots may cache /apis.* files, but if they do they must
periodically verify the cached copy is fresh before using its
contents.
Standard HTTP cache-control mechanisms can be used by both origin
server and robots to influence the caching of the /apis.* file.
Specifically robots should take note of Expires header set by the
origin server.
If no cache-control directives are present robots should default to
an expiry of 7 days.
3.5. Media Type
It is intended that if there is sufficient traction, the media type "application/apis+json" or "application/x-yaml" will be
submitted to IANA as per RFC: http://tools.ietf.org/html/rfc4288
3.6. JSON Schema
A JSON schema is under development for the format.
3.7. Well Known
It is intended that if there is sufficient traction, the "well known" location "/apis.json" or "/apis.yaml" will be
submitted as per RFC: http://tools.ietf.org/html/rfc5785
3.8. Link Relation
In order for a Web site to reference its API description, it is recommended that it includes a header or
in-line reference to the APIs.json resource using one of the api link relation, e.g.:
* <link rel="api" type="application/text/plain" href="https://example.com/apis.txt" />
* <link rel="api" type="text/markdown" href="https://example.com/apis.md" />
* <link rel="api" type="application/apis+json" href="https://example.com/apis.json" />
* <link rel="api" type="application/apis+yaml" href="https://example.com/apis.yaml" />
It is intended that if there is sufficient traction, the link relation “api” will be
submitted to IANA as per RFC: http://tools.ietf.org/html/rfc5988
3.9. Extensions
TBD
4. Examples
Here is an example api.json file:
{
"aid": "apis.json",
"name": "Example API",
"type": "Index",
"description": "This is an example APIs.json file, demonstrating what is possible with the API discovery specification.",
"image": "https://kinlane-productions.s3.amazonaws.com/apis-json/apis-json-logo.jpg",
"tags": [
"Application Programming Interface",
"API"
],
"created": "2024-11-06",
"modified": "2024-11-06",
"url": "http://example.com/apis.json",
"specificationVersion": "0.19",
"apis": [
{
"aid": "apis.json:example-api",
"name": "Example API",
"description": "This provides details about a specific API, telling what is possible.",
"image": "https://kinlane-productions.s3.amazonaws.com/apis-json/apis-json-logo.jpg",
"humanURL": "http://example.com",
"baseURL": "http://api.example.com",
"tags": [
"API",
"Application Programming Interface"
],
"properties": [
{
"type": "Documentation",
"url": "https://example.com/documentation"
},
{
"type": "OpenAPI",
"url": "http://example.com/openapi.yml"
},
{
"type": "Swagger",
"url": "http://example.com/swagger.yml"
},
{
"type": "JSONSchema",
"url": "http://example.com/json-schema.json"
},
{
"type": "GraphQLSchema",
"url": "http://example.com/graphqlql.schema"
},
{
"type": "PostmanCollection",
"url": "http://example.com/postman-collection.json"
},
{
"type": "AsyncAPI",
"url": "http://example.com/asyncapi.json"
},
{
"type": "RAML",
"url": "http://example.com/raml.yml"
},
{
"type": "Blueprint",
"url": "http://example.com/blueprint.apib"
},
{
"type": "WADL",
"url": "http://example.com/wadl.xml"
},
{
"type": "WSDL",
"url": "http://example.com/api.wsdl"
},
{
"type": "ALPS",
"url": "http://example.com/api.alps"
},
{
"type": "OpenAIPluginManifest",
"url": "https://example.com/openaiplugin.yml"
},
{
"type": "JSONLD",
"url": "https://example.com/json-ld.json"
},
{
"type": "JSONForms",
"url": "http://example.com/json-forms"
},
{
"type": "Arazzo",
"url": "http://example.com/arazzo"
},
{
"type": "Compare",
"url": "http://example.com/compare"
},
{
"type": "RunInInsomnia",
"url": "http://example.com/run-in-insomnia"
},
{
"type": "Evolution",
"url": "http://example.com/evolution"
},
{
"type": "DataContract",
"url": "http://example.com/data-contract"
},
{
"type": "ServerlessWorkflow",
"url": "http://example.com/serverless-workflow"
}
],
"overlays": [
{
"type": "APIs.io Search",
"url": "https://example.com/apis-io-search"
},
{
"type": "API Evangelist Rating",
"url": "http://example.com/api-evangelist-ratings"
}
],
"contact": [
{
"FN": "APIs.json",
"email": "info@apisjson.org"
}
]
}
],
"common": [
{
"type": "Signup",
"url": "https://example.com/signup"
},
{
"type": "Login",
"url": "https://example.com/login"
},
{
"type": "Authentication",
"url": "http://example.com/authentication"
},
{
"type": "Blog",
"url": "http://example.com/blog"
},
{
"type": "BlogFeed",
"url": "http://example.com/blog-feed"
},
{
"type": "Pricing",
"url": "http://example.com/pricing"
},
{
"type": "GettingStarted",
"url": "http://example.com/getting-started"
},
{
"type": "Versioning",
"url": "http://example.com/versioning"
},
{
"type": "TermsOfService",
"url": "http://example.com/terms-of-service"
},
{
"type": "InterfaceLicense",
"url": "http://example.com/interfacce-license"
},
{
"type": "PrivacyPolicy",
"url": "http://example.com/privacy-policy"
},
{
"type": "DeprecationPolicy",
"url": "http://example.com/deprecation-policy"
},
{
"type": "ServiceLevelAgreement",
"url": "http://example.com/service-level-agreement"
},
{
"type": "Security",
"url": "http://example.com/security"
},
{
"type": "SDKs",
"url": "http://example.com/sdks"
},
{
"type": "StatusPage",
"url": "http://example.com/status-page"
},
{
"type": "RateLimits",
"url": "http://example.com/rate-limits"
},
{
"type": "Forums",
"url": "http://example.com/forums"
},
{
"type": "Support",
"url": "http://example.com/support"
},
{
"type": "ChangeLog",
"url": "http://example.com/change-log"
},
{
"type": "RoadMap",
"url": "http://example.com/road-map"
},
{
"type": "Contact",
"url": "http://example.com/contact"
},
{
"type": "ErrorCodes",
"url": "http://example.com/error-codes"
},
{
"type": "GitHubOrg",
"url": "http://example.com/github-org"
},
{
"type": "GitHubRepo",
"url": "http://example.com/github-repo"
},
{
"type": "Twitter",
"url": "http://example.com/twitter"
},
{
"type": "AlertsTwitterHandle",
"url": "http://example.com/alerts-twitter-handle"
},
{
"type": "Webhooks",
"url": "http://example.com/webhooks"
},
{
"type": "UseCases",
"url": "http://example.com/use-cases"
},
{
"type": "Plans",
"url": "http://example.com/plans"
}
],
"overlays": [
{
"type": "APIs.io Search",
"url": "https://example.com/apis-io-search"
},
{
"type": "API Evangelist Ratings",
"url": "http://example.com/api-evangelist-ratings"
}
],
"include": [
{
"name": "Another Example API",
"url": "http://example.com/apis.json"
}
],
"maintainers": [
{
"FN": "Kin Lane",
"X-twitter": "apievangelist",
"email": "info@apievangelist.com"
}
]
}
Here is an example api.yaml file:
aid: apis.json
name: Example API
type: Index
description: |-
This is an example APIs.json file, demonstrating what is possible with the API discovery specification.
image: https://kinlane-productions.s3.amazonaws.com/apis-json/apis-json-logo.jpg
tags:
- Application Programming Interface
- API
created: '2024-11-06'
modified: '2024-11-06'
url: http://example.com/apis.json
specificationVersion: '0.19'
apis:
- aid: apis.json:example-api
name: Example API
description: This provides details about a specific API, telling what is possible.
image: https://kinlane-productions.s3.amazonaws.com/apis-json/apis-json-logo.jpg
humanURL: http://example.com
baseURL: http://api.example.com
tags:
- API
- Application Programming Interface
properties:
- type: Documentation
url: https://example.com/documentation
- type: OpenAPI
url: http://example.com/openapi.yml
- type: Swagger
url: http://example.com/swagger.yml
- type: JSONSchema
url: http://example.com/json-schema.json
- type: GraphQLSchema
url: http://example.com/graphqlql.schema
- type: PostmanCollection
url: http://example.com/postman-collection.json
- type: AsyncAPI
url: http://example.com/asyncapi.json
- type: RAML
url: http://example.com/raml.yml
- type: Blueprint
url: http://example.com/blueprint.apib
- type: WADL
url: http://example.com/wadl.xml
- type: WSDL
url: http://example.com/api.wsdl
- type: ALPS
url: http://example.com/api.alps
- type: OpenAIPluginManifest
url: https://example.com/openaiplugin.yml
- type: JSONLD
url: https://example.com/json-ld.json
- type: JSONForms
url: http://example.com/json-forms
- type: Arazzo
url: http://example.com/arazzo
- type: Compare
url: http://example.com/compare
- type: RunInInsomnia
url: http://example.com/run-in-insomnia
- type: Evolution
url: http://example.com/evolution
- type: DataContract
url: http://example.com/data-contract
- type: ServerlessWorkflow
url: http://example.com/serverless-workflow
overlays:
- type: APIs.io Search
url: https://example.com/apis-io-search
- type: API Evangelist Rating
url: http://example.com/api-evangelist-ratings
contact:
- FN: APIs.json
email: info@apisjson.org
common:
- type: Signup
url: https://example.com/signup
- type: Login
url: https://example.com/login
- type: Authentication
url: http://example.com/authentication
- type: Blog
url: http://example.com/blog
- type: BlogFeed
url: http://example.com/blog-feed
- type: Pricing
url: http://example.com/pricing
- type: GettingStarted
url: http://example.com/getting-started
- type: Versioning
url: http://example.com/versioning
- type: TermsOfService
url: http://example.com/terms-of-service
- type: InterfaceLicense
url: http://example.com/interfacce-license
- type: PrivacyPolicy
url: http://example.com/privacy-policy
- type: DeprecationPolicy
url: http://example.com/deprecation-policy
- type: ServiceLevelAgreement
url: http://example.com/service-level-agreement
- type: Security
url: http://example.com/security
- type: SDKs
url: http://example.com/sdks
- type: StatusPage
url: http://example.com/status-page
- type: RateLimits
url: http://example.com/rate-limits
- type: Forums
url: http://example.com/forums
- type: Support
url: http://example.com/support
- type: ChangeLog
url: http://example.com/change-log
- type: RoadMap
url: http://example.com/road-map
- type: Contact
url: http://example.com/contact
- type: ErrorCodes
url: http://example.com/error-codes
- type: GitHubOrg
url: http://example.com/github-org
- type: GitHubRepo
url: http://example.com/github-repo
- type: Twitter
url: http://example.com/twitter
- type: AlertsTwitterHandle
url: http://example.com/alerts-twitter-handle
- type: Webhooks
url: http://example.com/webhooks
- type: UseCases
url: http://example.com/use-cases
- type: Plans
url: http://example.com/plans
overlays:
- type: APIs.io Search
url: https://example.com/apis-io-search
- type: API Evangelist Ratings
url: http://example.com/api-evangelist-ratings
include:
- name: Another Example API
url: http://example.com/apis.json
maintainers:
- FN: Kin Lane
X-twitter: apievangelist
email: info@apievangelist.com
5. Security Considerations
Deploying files compliant with this recommendation on your domain may
generate certain security risks. The recommendation is not
intended to protect APIs, other types of resources or secure
access in any way. The objective of the recommendation is to
provide simple means to identify where APIs may be located on a
given domain.
As such external parties accessing the specification
files will be able to determine the location of the API endpoints
referenced within the file and hence may attempt to access them.
All such visible endpoints should be secured in an appropriate manner.
6. Reserved Keywords with Definitions
This list can be found at htt://apisjson.org/format/reservedwords, and may be updated from time to time and maintenaned exernally.
7. References
[1] http://en.wikipedia.org/wiki/Web_API
[2] http://www.programmableweb.com
[3] https://groups.google.com/forum/#!forum/apisjson
[4] http://tools.ietf.org/html/rfc6350
8. Acknowledgements
The specification provided here was inspired by conversation in the API Community at events such as the API Strategy and Practice Conferences, API Days conferences, Nordic APIs conferences, Gluecon, Defrag and others.
9. Authors' Address
Kin Lane,
API Evangelist
http://www.apievangelist.com/
email:
Steven Willmott
3scale networks
http://www.3scale.net/
email: steve@3scale.net
----RESERVED WORDS
Reserved Words for APIs.json / APIS.yaml Specification
* Version 1
Definition Elements:
* Name
* HumanURL
* BaseURL
* Description
* Image
* Version
* Tags
Properties Elements:
* Swagger
* OpenAPI
* JSONSchema
* GraphQLSchema
* PostmanCollection
* PostmanWorkspace
* AsyncAPI
* RAML
* Blueprint
* WADL
* WSDL
* ALPS
* OpenAIPluginManifest
* JSONLD
* JSONForms
* Arazzo
* Compare
* InsomniaCollection
* BrunoCollection
* Evolution
* DataContract
* ServerlessWorkflow
* GettingStarted
* Documentation
* Authentication
* Versioning
* Signup
* Login
* TermsOfService
* InterfaceLicense
* PrivacyPolicy
* DeprecationPolicy
* ServiceLevelAgreement
* Security
* SDKs
* StatusPage
* Pricing
* Plans
* RateLimits
* Blog
* BlogFeed
* Forums
* Support
* ChangeLog
* RoadMap
* Contact
* ErrorCodes
* GitHubOrg
* GitHubRepo
* Twitter
* AlertsTwitterHandle
* Webhooks
* Integrations
* UseCases
Contact Elements:
* Any vCard Element
Maintainer Elements:
* name
* twitter
* github
* email
* url
* organizationName
* organizationUrl
* address
* phoneNumber
* image