https://github.com/adsazad/freeradius-rest
REST API for created to create, edit and delete data in Freeradius.
https://github.com/adsazad/freeradius-rest
freeradius nodejs rest-api restful-api
Last synced: 7 months ago
JSON representation
REST API for created to create, edit and delete data in Freeradius.
- Host: GitHub
- URL: https://github.com/adsazad/freeradius-rest
- Owner: adsazad
- License: mit
- Created: 2021-08-14T08:24:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T09:08:50.000Z (about 3 years ago)
- Last Synced: 2025-01-10T21:25:55.251Z (9 months ago)
- Topics: freeradius, nodejs, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 3.09 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# REST API for freeradius under-development
## User
### List User
```
https://localhost:8080/user
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|### Create User
```
https://localhost:8080/user/create
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
|radusername | Username for user you are creating|
|radpassword| Password for user you are creating|### Change User Password
```
https://localhost:8080/user/changepassword
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
|radusername | Username for user you are creating|
|radnewpassword| Password for user you are creating|### Assign/Change user group to user
```
https://localhost:8080/user/assignusergrouptouser
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
|radusername | Username for user you are creating|
|groupname| Radius radgroupname |## Profiles
### List UserGroups
```
https://localhost:8080/usergroup
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|### Get UserGroup Check And Reply Attributes
```
https://localhost:8080/usergroup/attributes
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
|usergroup| Name of UserGroup you want to get attributes of|## IP Pool
### List IP Pools
```
https://localhost:8080/ippools
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|### Add Ip Pool
```
https://localhost:8080/ippools/add
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
|poolName| Pool Name|
|framedIpAddress| Ip address for pool|## NAS
### List NAS
```
https://localhost:8080/nas
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|### Create NAS
```
https://localhost:8080/nas/create
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
| nasname | IP Address of nas|
|secret| Secret|
| shortname| Short Name for the nas|
|type| Type attr for nas|
|ports| Ports for nas|### Delete NAS
```
https://localhost:8080/nas/delete
```
Method: `POST`
|Attributes|Description|
|----------|------------|
|secret| .env secret|
| nasname | IP Address of nas|