https://github.com/banyc/rest_mysql
A simple web API server applying REST standard
https://github.com/banyc/rest_mysql
dotnet dotnet-core rest rest-api webapi
Last synced: over 1 year ago
JSON representation
A simple web API server applying REST standard
- Host: GitHub
- URL: https://github.com/banyc/rest_mysql
- Owner: Banyc
- Created: 2020-04-27T04:52:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T01:39:57.000Z (about 3 years ago)
- Last Synced: 2025-01-20T05:49:07.930Z (over 1 year ago)
- Topics: dotnet, dotnet-core, rest, rest-api, webapi
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST_MySQL
## API details
```
Method name API call
getList GET http://my.api.url/api/people/?sort=["name","ASC"]&range=[0, 24]&filter={"name":"m"}
getOne GET http://my.api.url/api/people/123
getMany GET http://my.api.url/api/people/?filter={"uid":[2,4,3]}
getManyReference GET http://my.api.url/api/people?filter={"name":"Tom"}
create POST http://my.api.url/api/people/
update PUT http://my.api.url/api/people/123
updateMany Multiple calls to PUT http://my.api.url/api/people/123
delete DELETE http://my.api.url/api/people/123
deteleMany Multiple calls to DELETE http://my.api.url/api/people/123
```
When creating, put new data to the body in json format.
## Tutorial
## generate controller
```
dotnet aspnet-codegenerator controller -name PeopleController -async -api -m Person -dc PersonContext -outDir Controllers
```
## Credit
- tYoshiyuki's [dotnet-core-react-admin](https://github.com/tYoshiyuki/dotnet-core-react-admin)
## TODO
- [ ] Enable `getMany`