docs: Clean up
This commit is contained in:
		
							parent
							
								
									bb10adef79
								
							
						
					
					
						commit
						af2024816f
					
				
							
								
								
									
										23
									
								
								README.md
								
								
								
								
							
							
						
						
									
										23
									
								
								README.md
								
								
								
								
							|  | @ -1,22 +1,21 @@ | ||||||
| A library for Dart developers. | # Matrix API Lite | ||||||
| 
 | 
 | ||||||
| Created from templates made available by Stagehand under a BSD-style | This package is a dead simple data model over the client-server specification of https://matrix.org and is mostly used as a base for a more complete Matrix SDK. | ||||||
| [license](https://github.com/dart-lang/stagehand/blob/master/LICENSE). | It doesn't contain any logic and just provides methods for all API endpoints and json parser for all objects. It is intended to be as close to the specificaton | ||||||
|  | as possible so we get a 1:1 relationship with the API. More complex logic like a sync loop or a data model for rooms should be implemented in a more complete | ||||||
|  | Matrix SDK. | ||||||
| 
 | 
 | ||||||
| ## Usage | ## Usage | ||||||
| 
 | 
 | ||||||
| A simple usage example: | A simple usage example: | ||||||
| 
 | 
 | ||||||
| ```dart | ```dart | ||||||
| import 'package:matrix_api_lite/matrix_api_lite.dart'; | import 'package:matrix_api_lite/src/matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| main() { | void main() async { | ||||||
|   var awesome = new Awesome(); |   final api = MatrixApi(homeserver: Uri.parse('https://matrix.org')); | ||||||
|  |   final capabilities = await api.requestServerCapabilities(); | ||||||
|  |   print(capabilities.toJson()); | ||||||
| } | } | ||||||
|  | 
 | ||||||
| ``` | ``` | ||||||
| 
 |  | ||||||
| ## Features and bugs |  | ||||||
| 
 |  | ||||||
| Please file feature requests and bugs at the [issue tracker][tracker]. |  | ||||||
| 
 |  | ||||||
| [tracker]: http://example.com/issues/replaceme |  | ||||||
|  |  | ||||||
|  | @ -1,5 +1,3 @@ | ||||||
| //import 'package:matrix_api_lite/matrix_api_lite.dart'; |  | ||||||
| 
 |  | ||||||
| import 'package:matrix_api_lite/src/matrix_api.dart'; | import 'package:matrix_api_lite/src/matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() async { | void main() async { | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| name: matrix_api_lite | name: matrix_api_lite | ||||||
| description: A starting point for Dart libraries or applications. | description: Dead simple data model for the matrix.org client-server API. | ||||||
| # version: 1.0.0 | version: 0.1.0 | ||||||
| # homepage: https://www.example.com | homepage: https://famedly.com | ||||||
| 
 | 
 | ||||||
| environment: | environment: | ||||||
|   sdk: '>=2.10.0 <3.0.0' |   sdk: '>=2.10.0 <3.0.0' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue