Commit Graph

123 Commits

Author SHA1 Message Date
Oliver Gorwits
bd9ba3bcb8 broken refactor but need to leave now... 2019-03-22 09:10:19 +00:00
Oliver Gorwits
3e0af5888c separate openapi to own module 2019-03-22 07:38:24 +00:00
Oliver Gorwits
52e2751b50 fix errors for api to be json 2019-03-20 21:18:12 +00:00
Oliver Gorwits
1e32f802f8 remove device/details 2019-03-20 20:52:30 +00:00
Oliver Gorwits
2f61b116b3 add comment 2019-03-20 17:20:03 +00:00
Oliver Gorwits
17f1da8d0a add logout operation 2019-03-20 17:15:52 +00:00
Oliver Gorwits
7ee97d2637 better version of API login, and filtered api calls 2019-03-20 16:38:17 +00:00
Oliver Gorwits
4192271e4f Merge branch 'master' into og-api-tokens-simple 2019-03-20 14:44:39 +00:00
Oliver Gorwits
4ef5691bb5 allow pseudo devices to arpnip 2019-03-19 13:05:47 +00:00
Oliver Gorwits
46d8c52a08 Implement changes for API authentication and Swagger UI (#541)
* initial token-based-api login handler

* add token schema and validation

* initial import of pyro3d api code

* basic Swagger spec support

* Merge in working copy of API/Device.pm

* Fix some error handling for API/Device.pm

* Break out utility functions into separate file, to allow other api portions to use

* Add NodeIP support.

* Add nodeip plugin to config

* remove double define of "plugin:" (#448)

disclaimer: i did not test this is any way, came across it when looking for something else.

* only AuthZ header for api use, and alway regen key on login

* use RFC7235

* workaround for Swagger plugin weird response body

* do not autodiscover swagger routes

* code formatting only

* move api util to utils area

* initial full swagger spec for nodeip search

* add api user role and fix api auth failure response

* update version of swagger-ui to 3.20.3

* add more openapi defs

* fixes to SQL and api spec

* clean up subs

* improvements to login/logout for API

* make api logout work

* add openapi tags to group operations

* allow api params to be generated from DBIC schema spec

* remove API calls for nodes and devices

* remove some poor assumptions about api calls

* tidy up

* remove DDP

* make login and logout similar

* example of api call being handled by ajax call

* make the branch authonly
2019-03-17 20:27:19 +00:00
Oliver Gorwits
33f94eac62 example of api call being handled by ajax call 2019-03-17 08:57:40 +00:00
Oliver Gorwits
fc02f2c2dd make login and logout similar 2019-03-16 18:47:59 +00:00
Oliver Gorwits
857482cd25 remove DDP 2019-03-16 18:08:19 +00:00
Oliver Gorwits
c0322b9bf1 tidy up 2019-03-16 18:04:59 +00:00
Oliver Gorwits
4b8492f4f0 remove some poor assumptions about api calls 2019-03-15 13:00:12 +00:00
Oliver Gorwits
3cf3a6b73a Merge branch 'master' into og-api-tokens-simple 2019-03-11 17:55:31 +00:00
Oliver Gorwits
5b1021b3b5 remove API calls for nodes and devices 2019-03-11 17:48:09 +00:00
Oliver Gorwits
e3af64df77 #521-redux fix wifi date search 2019-03-06 18:42:47 +00:00
Oliver Gorwits
6cdfd80d10 allow undiscovered neighbors report to use discover_{waps,phones} setting 2019-03-03 14:34:00 +00:00
Oliver Gorwits
2bae91f1b6 rename match_devicetype() to match_to_setting() 2019-03-03 12:01:34 +00:00
Oliver Gorwits
7a8bcb094e #521 Search Node Date Range not working 2019-03-02 22:23:39 +00:00
Oliver Gorwits
a643820a62 #428 Port-Channels not showing in netmap 2019-03-02 21:54:27 +00:00
Oliver Gorwits
e7aacddbc6 #498 Map with VLAN filter omits unconnected devices 2019-03-02 20:01:05 +00:00
Oliver Gorwits
ce1b847cea fix bug showing no nodes when only one matches in netmap 2019-03-02 18:47:44 +00:00
Oliver Gorwits
78e30a7926 #500 filtering in device/ports on native vlan duplicates entries 2019-03-02 16:28:15 +00:00
Oliver Gorwits
d4c7579c10 #522 TypeAhead.pm can reference empty data (inphobia) 2019-03-02 14:47:49 +00:00
Oliver Gorwits
77decc23b7 #514 inconsistent results in ip inventory (inphobia) 2019-03-02 14:45:37 +00:00
nick n
6a36baa961 add a new tab to device -> vlans (#483)
* first steps for vlan tab

* export sort_vlans, use strict/warnings

* update manifest, get worker closer to functioning

* remove ie 9 script & extra ./th

* make it work

* cleanup

* readd internet explorer code

* start for csv output

* move things to debug logging instead of info

* use message which was discussed

* fix for address table sorting

* link os

* final touches thx to ollyg

* fetch origin/master

* VLAN is the preferred style for user interface usage

* does a missing libexpat-dev make travis builds complain?

* Revert "does a missing libexpat-dev make travis builds complain?"

This reverts commit 0cebc66f42708ff0f946213aab4bcbcc1b1b1379.
2019-01-14 21:57:37 +00:00
Oliver Gorwits
1b2592321d address https://metacpan.org/pod/distribution/perl/pod/perldelta.pod#Removal-of-use-vars 2019-01-07 22:51:05 +00:00
Oliver Gorwits
6b5d2602b5 allow api params to be generated from DBIC schema spec 2019-01-01 13:36:24 +00:00
Oliver Gorwits
c045a96a47 add openapi tags to group operations 2019-01-01 12:37:19 +00:00
Oliver Gorwits
2ad803da64 make api logout work 2019-01-01 12:28:48 +00:00
Oliver Gorwits
f362b0aee3 improvements to login/logout for API 2019-01-01 12:04:26 +00:00
Oliver Gorwits
3b0a9f6310 clean up subs 2019-01-01 10:41:33 +00:00
Oliver Gorwits
f56c48b83d fixes to SQL and api spec 2018-12-31 23:21:44 +00:00
Oliver Gorwits
0151fc86a7 add more openapi defs 2018-12-31 22:59:13 +00:00
Oliver Gorwits
4691808fa6 add api user role and fix api auth failure response 2018-12-31 19:30:48 +00:00
Oliver Gorwits
1a038079bf initial full swagger spec for nodeip search 2018-12-31 18:43:35 +00:00
Oliver Gorwits
5a4f9d784f move api util to utils area 2018-12-31 18:22:01 +00:00
Oliver Gorwits
92f1d2eb9d code formatting only 2018-12-31 18:21:28 +00:00
Oliver Gorwits
1a66dcccea use RFC7235 2018-12-31 17:43:31 +00:00
Oliver Gorwits
3b7bb65387 only AuthZ header for api use, and alway regen key on login 2018-12-31 17:39:36 +00:00
Ryan Gasik
700cb73111 Add NodeIP support. 2018-10-24 21:06:43 -07:00
Ryan Gasik
acaa3b8c5c Break out utility functions into separate file, to allow other api portions to use 2018-10-24 20:53:29 -07:00
Ryan Gasik
d79411a34d Fix some error handling for API/Device.pm 2018-10-24 20:41:41 -07:00
Ryan Gasik
4d68bffeea Merge in working copy of API/Device.pm 2018-10-21 22:39:29 -07:00
Oliver Gorwits
ee8cd72ef1 basic Swagger spec support 2018-10-21 19:12:06 +01:00
Oliver Gorwits
734166fcef initial import of pyro3d api code 2018-10-21 18:07:20 +01:00
Oliver Gorwits
f01bc6a695 add token schema and validation 2018-10-21 17:46:25 +01:00
Oliver Gorwits
fb4e5c0793 initial token-based-api login handler 2018-10-21 13:37:27 +01:00