Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #474 from raml-org/raml-10-rc2
Browse files Browse the repository at this point in the history
Publish RAML 1.0 RC2 content
  • Loading branch information
sichvoge committed May 5, 2016
2 parents 04f13b6 + e9e4cc2 commit 969c95a
Show file tree
Hide file tree
Showing 3 changed files with 1,583 additions and 1,346 deletions.
20 changes: 9 additions & 11 deletions versions/raml-08/raml-08.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ baseUriParameters:
enum: [ "api-content" ]
```

In a resource structure of resources and nested resources with their methods, the most specific baseUriParameter fully overrides any baseUriParameter definition made before. In the following example the resource `/user/{userId}/image` overrides the definition made in `/users`.
In a resource structure of resources and nested resources with their methods, the most specific baseUriParameter fully overrides any baseUriParameter definition made before. In the following example the resource `/users/{userId}/image` overrides the definition made in `/users`.

```
#%RAML 0.8
Expand All @@ -601,7 +601,7 @@ baseUri: https://{apiDomain}.someapi.com
enum: [ "static" ]
```
In the following example, the `PUT` method overrides the definition made in `/user/{userId}/image`.
In the following example, the `PUT` method overrides the definition made in `/users/{userId}/image`.
```
#%RAML 0.8
Expand All @@ -619,9 +619,9 @@ baseUri: https://{apiDomain}.someapi.com
apiDomain:
enum: [ "static" ]
get:
displayName: retrieve a user's picture
description: retrieve a user's picture
put:
displayName: update a user's picture
description: update a user's picture
baseUriParameters:
apiDomain:
enum: [ "content-update" ]
Expand Down Expand Up @@ -935,7 +935,7 @@ The *schema* key CANNOT be specified if a body's media type is *application/x-ww
All parsers of RAML MUST be able to interpret JSON Schema [JSON_SCHEMA] and XML Schema [XML_SCHEMA].
Schema MAY be declared inline or in an external file. However, if the schema is sufficiently large so as to make it difficult for a person to read the API definition, or the schema is reused across multiple APIs or across multiple miles in the same API, the !include user-defined data type SHOULD be used instead of including the content inline.
Schema MAY be declared inline or in an external file. However, if the schema is sufficiently large so as to make it difficult for a person to read the API definition, or the schema is reused across multiple APIs or across multiple files in the same API, the !include user-defined data type SHOULD be used instead of including the content inline.
This example shows an inline schema declaration.
Expand Down Expand Up @@ -1050,8 +1050,6 @@ For APIs without *a priori* knowledge of the response types for their responses,
200:
body:
"*/*":
description: |
Returns the media file.
```
Responses MAY contain a *description* property that further clarifies why the response was emitted. Response descriptions are particularly useful for describing error conditions.
Expand Down Expand Up @@ -1117,7 +1115,7 @@ This example shows a 503 error response that includes a custom header.
description: |
The number of seconds to wait before you can attempt to make a request again.
type: integer
required: yes
required: true
minimum: 1
maximum: 3600
example: 34
Expand Down Expand Up @@ -1189,7 +1187,7 @@ traits:
required: true
```
The following example builds on the previous one, but the the resource types and traits are defined in external files that are included by using the RAML !include data type.
The following example builds on the previous one, but the resource types and traits are defined in external files that are included by using the RAML !include data type.
```yaml
#%RAML 0.8
Expand Down Expand Up @@ -1264,8 +1262,8 @@ title: Example API
version: v1
mediaType: application/json
schemas:
users: !include schemas/users.json
user: !include schemas/user.json
- users: !include schemas/users.json
- user: !include schemas/user.json
resourceTypes:
- collection:
get:
Expand Down
Binary file modified versions/raml-10/images/typesHierarchy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 969c95a

Please sign in to comment.