Loading...
18 |
19 |
20 | An unhandled error has occurred.
21 |
Reload
22 |
🗙
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 PRCV1 (the main developer)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | PocketBase C# SDK
2 | ======================================================================
3 | This project is currently still under development. It is not recommended to use it in a productive environment. Things can and will change.
4 |
5 | Community-developed C# SDK (Multiplatform) for interacting with the [PocketBase API](https://pocketbase.io/docs)
6 |
7 | - [PocketBase C# SDK](#pocketbase-c-sdk)
8 | - [Installation](#installation)
9 | - [Nuget](#nuget)
10 | - [Usage](#usage)
11 | - [Development](#development)
12 | - [Requirements](#requirements)
13 | - [Steps](#steps)
14 |
15 | # Installation
16 |
17 | ## Nuget
18 |
19 | Coming soon
20 |
21 | # Usage
22 | ```c#
23 | //create a new Client which connects to your PocketBase-API
24 | var client = new PocketBase("http://127.0.0.1:8090");
25 |
26 | //authenticate as a Admin
27 | var admin = await client.Admin.AuthenticateWithPassword("test@test.de", "0123456789");
28 |
29 | //or as a User
30 | var user = await client.User.AuthenticateWithPassword("kekw@kekw.com", "0123456789");
31 |
32 | //query some data (for example, some restaurants)
33 | //note that each CRUD action requires a data type which inherits from the base class 'ItemBaseModel'.
34 | var restaurantList = await client.Records.ListAsync