mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #1673 from blakeembrey/support-raml
Add spport for RAML language
This commit is contained in:
		@@ -2143,6 +2143,15 @@ R:
 | 
				
			|||||||
  interpreters:
 | 
					  interpreters:
 | 
				
			||||||
  - Rscript
 | 
					  - Rscript
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RAML:
 | 
				
			||||||
 | 
					  type: data
 | 
				
			||||||
 | 
					  lexer: YAML
 | 
				
			||||||
 | 
					  ace_mode: yaml
 | 
				
			||||||
 | 
					  tm_scope: source.yaml
 | 
				
			||||||
 | 
					  color: "#77d9fb"
 | 
				
			||||||
 | 
					  extensions:
 | 
				
			||||||
 | 
					    - .raml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RDoc:
 | 
					RDoc:
 | 
				
			||||||
  type: prose
 | 
					  type: prose
 | 
				
			||||||
  ace_mode: rdoc
 | 
					  ace_mode: rdoc
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										39
									
								
								samples/RAML/api.raml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								samples/RAML/api.raml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					#%RAML 0.8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					title: World Music API
 | 
				
			||||||
 | 
					baseUri: http://example.api.com/{version}
 | 
				
			||||||
 | 
					version: v1
 | 
				
			||||||
 | 
					traits:
 | 
				
			||||||
 | 
					  - paged:
 | 
				
			||||||
 | 
					      queryParameters:
 | 
				
			||||||
 | 
					        pages:
 | 
				
			||||||
 | 
					          description: The number of pages to return
 | 
				
			||||||
 | 
					          type: number
 | 
				
			||||||
 | 
					  - secured: !include http://raml-example.com/secured.yml
 | 
				
			||||||
 | 
					/songs:
 | 
				
			||||||
 | 
					  is: [ paged, secured ]
 | 
				
			||||||
 | 
					  get:
 | 
				
			||||||
 | 
					    queryParameters:
 | 
				
			||||||
 | 
					      genre:
 | 
				
			||||||
 | 
					        description: filter the songs by genre
 | 
				
			||||||
 | 
					  post:
 | 
				
			||||||
 | 
					  /{songId}:
 | 
				
			||||||
 | 
					    get:
 | 
				
			||||||
 | 
					      responses:
 | 
				
			||||||
 | 
					        200:
 | 
				
			||||||
 | 
					          body:
 | 
				
			||||||
 | 
					            application/json:
 | 
				
			||||||
 | 
					              schema: |
 | 
				
			||||||
 | 
					                { "$schema": "http://json-schema.org/schema",
 | 
				
			||||||
 | 
					                  "type": "object",
 | 
				
			||||||
 | 
					                  "description": "A canonical song",
 | 
				
			||||||
 | 
					                  "properties": {
 | 
				
			||||||
 | 
					                    "title":  { "type": "string" },
 | 
				
			||||||
 | 
					                    "artist": { "type": "string" }
 | 
				
			||||||
 | 
					                  },
 | 
				
			||||||
 | 
					                  "required": [ "title", "artist" ]
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            application/xml:
 | 
				
			||||||
 | 
					    delete:
 | 
				
			||||||
 | 
					      description: |
 | 
				
			||||||
 | 
					        This method will *delete* an **individual song**
 | 
				
			||||||
		Reference in New Issue
	
	Block a user