1
- # netbox-service-mappings
2
- Service Mappings plugin
1
+ # netbox-custom-objects
2
+ Custom Objects plugin
3
3
4
4
1 . Add ` netbox_custom_objects ` to ` PLUGINS ` in ` configuration.py ` .
5
5
@@ -18,33 +18,32 @@ $ ./manage.py migrate
18
18
19
19
## API
20
20
21
- The three relevant models making up the Service Mappings system can be manipulated through CRUD operations using the
22
- standard NetBox API, using endpoints located at: ` /api/plugins/service-mappings / `
21
+ The three relevant models making up the Custom Objects system can be manipulated through CRUD operations using the
22
+ standard NetBox API, using endpoints located at: ` /api/plugins/custom-objects / `
23
23
24
24
``` json
25
25
{
26
- "mapping- type-fields" : " http://127.0.0.1:8000/api/plugins/service-mappings/mapping -type-fields/" ,
27
- "mapping- types" : " http://127.0.0.1:8000/api/plugins/service-mappings/mapping -types/" ,
28
- "mappings " : " http://127.0.0.1:8000/api/plugins/service-mappings/mappings /"
26
+ "custom-object- type-fields" : " http://127.0.0.1:8000/api/plugins/custom-objects/custom-object -type-fields/" ,
27
+ "custom-object- types" : " http://127.0.0.1:8000/api/plugins/custom-objects/custom-object -types/" ,
28
+ "cats " : " http://127.0.0.1:8000/api/plugins/custom-objects/cat /"
29
29
}
30
30
```
31
31
32
- ### Service Mapping Types
32
+ ### Custom Object Types
33
33
34
- Create a Service Mapping Type with a POST call to ` /api/plugins/service-mappings/mapping -types/ ` using a payload
34
+ Create a Custom Object Type with a POST call to ` /api/plugins/custom-object/custom-object -types/ ` using a payload
35
35
similar to the following:
36
36
37
37
``` json
38
38
{
39
39
"name" : " My Service Type" ,
40
- "slug" : " my-service-type"
41
40
}
42
41
```
43
42
44
- ### Mapping Type Fields
43
+ ### Custom Object Type Fields
45
44
46
- Then define the schema of the Service Mapping Type by creating fields of various types, with POST requests to
47
- ` /api/plugins/service-mappings/mapping -type-fields/ ` :
45
+ Then define the schema of the Custom Object Type by creating fields of various types, with POST requests to
46
+ ` /api/plugins/custom-objects/custom-object -type-fields/ ` :
48
47
49
48
``` json
50
49
{
0 commit comments