iglocska
11ee95aeb3
new: [API] Added attribute_timestamp flag to attributes/restSearch
...
Explanation of the 4 timestamp filters:
timestamp: Filters on attribute AND event timestamp
event_timestamp: Filters on event timestamp
attribute_timestamp: Filters on attribute timestamp
publish_timestamp: Filters on event.publish_timestamp
2019-11-11 14:43:47 +01:00
iglocska
463b98c275
new: [API] SQL dump now includes two modes
...
- sql_dump:1 - append the SQL dump to the response
- sql_dump:2 - only return the SQL dump in the response
2019-11-11 08:19:00 +01:00
iglocska
9f3d41b595
new: [API] Cleaner API debugging via the API
...
- passing sql:1 as a url parameter will try to add the sql_dump key to the response if SQL debugging is enabled
- allows for the easier debugging of for example search queries
2019-11-11 08:10:28 +01:00
mokaddem
015ec7d989
Merge branch '2.4' of github.com:MISP/MISP into zoidberg-timeline
2019-10-08 14:12:38 +02:00
iglocska
a8c57a8316
new: [API] Added rate limiting option to the API
...
- / role setting
- can be enabled/disabled and if enabled a limit can be set
- limit counter / 15 minutes starting from the first query
- x-headers inform the user about their limit/remaining queries/reset in seconds
2019-10-08 11:43:56 +02:00
mokaddem
b44b369eec
Merge remote-tracking branch 'origin/2.4' into zoidberg-timeline
2019-10-02 14:35:00 +02:00
mokaddem
bb3cf85776
Merge branch '2.4' into zoidberg-timeline
2019-10-02 11:23:04 +02:00
iglocska
946602a696
new: [User settings] Added user settings system
...
- set settings / user
- settings can be set by user themselves or their org admin / site admin
- added first setting: publish_alert_filter
- accepts boolean branched filter options
- supports deep logical trees
- OR/NOT/AND
- currently supports filtering on tags and the creator organisation
2019-09-25 11:50:54 +02:00
iglocska
0b799a43db
fix: [API] remove weird line breaks from the API descriptions
2019-09-20 11:53:03 +02:00
mokaddem
cfafc2e51f
Merge branch '2.4' of github.com:MISP/MISP into decaying
2019-09-12 13:35:35 +02:00
iglocska
32873d7ebc
fix: [API] Empty strings should be embedded in an array for the JSON output
2019-09-11 16:41:42 +02:00
mokaddem
1d378fd7bd
Merge remote-tracking branch 'origin/2.4' into decaying
2019-09-06 16:21:17 +02:00
mokaddem
515f0572df
chg: [decaying] Added alias `score` to override on-the-fly the treshold
...
of a model
2019-09-06 14:55:12 +02:00
mokaddem
3f57d600d0
chg: [decaying] `includeFullModel` parameter support in the UI
2019-09-06 11:43:08 +02:00
Richie B2B
f6b18ccada
Fix Declaration of RestResponseComponent warning
2019-08-30 19:39:05 +02:00
iglocska
181bda4698
new: [requestAccess] Made the requestAccess endpoint more API friendly and some UI improvements
...
- better handling of empty parameters
- added the mock functionality to both API and UI, this will generate the e-mail to be sent and return it with no actual sending happening
- defaulting to mock if emailing is disabled
- fixed some minor bugs
2019-08-30 11:10:59 +02:00
iglocska
1f9fcd209d
fix: [API] Added gpgkey as a valid parameter for requestAccess in the API description
2019-08-30 10:53:37 +02:00
iglocska
f49c38a7fd
chg: [field rename] Renamed all community fields with redundancy to something more simple (community_uuid -> uuid, etc)
2019-08-30 09:46:22 +02:00
iglocska
cc3fe7d8cf
chg: [restresponse] Added tooltips to the translatable strings, added communities/requestAccess
2019-08-30 09:36:50 +02:00
mokaddem
791ef0d21c
chg: [decaying:rest] Renamed `decayed` into `excludeDecayed` for better
...
usability
2019-07-25 16:21:12 +02:00
mokaddem
28f080e581
new: [decaying:rest] Filtering out of decayed attributes
2019-07-25 16:13:42 +02:00
mokaddem
8611c2069f
new: [restResponse] Added entries in Attribute/RestSearch for decaying
...
model support
2019-07-25 11:52:16 +02:00
iglocska
aafb44a4e2
fix: [bug] RestClient notice error fixed
2019-07-12 16:34:01 +02:00
mokaddem
2c57c1138e
Merge branch '2.4' of github.com:MISP/MISP into zoidberg-timeline
2019-07-11 09:59:57 +02:00
iglocska
2fc7aafd8a
chg: [docs] Added excludeLocalTags to events/restSearch
2019-07-08 16:00:34 +02:00
mokaddem
e9feb6612a
chg: [restResponse] Updated doc about first_seen and last_seen
2019-07-04 13:50:16 +02:00
mokaddem
ded0463498
fix: [restResponse] Added support of *-seen fields
2019-06-13 16:11:00 +02:00
mokaddem
88eb7ee433
fix: [object:quickAttributeAdd] Fixed response to be of JSON type and improved layout
2019-06-13 10:34:22 +02:00
mokaddem
e7f3d0d9df
new: [timeline/*-seen] Initial import of the timeline code from the
...
zoidberg branch
2019-06-13 09:16:34 +02:00
iglocska
25d8d6cf94
new: [API] added new restSearch filter - date
...
- deprecated to and from
- date works similarly to timestamp, accepted syntax options:
- time ranges in the shorthand format (7d or 24h, etc)
- timestamps
- fallback parsing for other formats (2019-01-01, "fortnight ago", etc)
- date ranges using lists [14d, 7d]
2019-06-07 09:49:52 +02:00
iglocska
aeb906b494
fix: [API] Weird responses from JSON objects fixed when data returned is empty
2019-05-30 13:49:04 +02:00
iglocska
e8f5d65499
fix: [API] Wrong JSON output when /events/index returns empty result, fixes #4690
2019-05-30 10:59:29 +02:00
mokaddem
93793be69b
chg: [restResponse] Added documentation for adding tags on Objects
2019-05-24 14:39:13 +02:00
iglocska
eba48be685
fix: [UI] Fixed checklocks polluting the top bar
2019-05-23 11:23:42 +02:00
iglocska
0fd8cee847
fix: [API] Allow more flexibility on the return content types
...
- also set RPZ as txt
2019-05-22 08:56:41 +02:00
mokaddem
f86cc0b2b2
fix: [restClient] nationality is not a integer anymore
2019-04-12 09:32:10 +02:00
mokaddem
ffb31c425d
fix: [RestClient:queryBuilder] Distribution level in the query builder. Fix #4280
2019-03-27 12:02:57 +01:00
iglocska
66ad17a1ee
new: [API] exposed change_pw function to the API, fixes #4256
2019-03-02 23:47:13 +01:00
iglocska
eb0abc4451
fix: [API] Invalid URL parameter suggested in rest client templates for the attribute edit endpoint, fixes #4159
2019-02-17 16:17:52 +01:00
Hannah Ward
3bb3a59e1c
fix: Expose x-result-count to CORS
2019-02-15 14:07:59 +00:00
Hannah Ward
3a7911eb33
fix: re-add CORS headers on REST Response
2019-02-14 18:05:28 +00:00
Christophe Vandeplas
67efc70bf5
fix: [style] consistent space indentation
2019-02-10 13:08:55 +01:00
mokaddem
b062601bf1
chg: [rest] Bumped `sighting/add{values}`` documentation
2019-01-29 14:24:49 +01:00
iglocska
3ccb1d97b6
chg: [automation] described feed previews via the API template system
2019-01-11 05:04:51 +01:00
iglocska
262066ecad
fix: [cleanup] Fixed a few issues
...
- unnecesary access to controller from component fixed (load component instead)
- confusion between private and public variables resolved
- some minor fixes for rules
2018-12-31 08:02:00 +01:00
Sami Mokaddem
00f4cd13c2
chg: [restResponse] removed space in parameters
2018-12-18 11:33:51 +01:00
Sami Mokaddem
52346f00ef
fix+new [restClient] fixed merge glitch and added support of
...
`includeProposals`
2018-12-17 17:15:05 +01:00
Sami Mokaddem
ed4f752d3a
Merge remote-tracking branch 'origin/2.4' into querybuilder
2018-12-17 16:36:27 +01:00
iglocska
ba74597e87
fix: [Restresponse] fixed XML converter
2018-12-12 19:23:40 +01:00
Sami Mokaddem
191c1e1715
chg: [querybuilder] injected tags are now injected by name instead of ID (allowing sql LIKE)
2018-12-11 14:54:28 +01:00
iglocska
601e05bb4a
new: [Rest] Added system for GET requests in the templating system
2018-12-01 09:23:03 +01:00
iglocska
b5e27db081
new: [ReST] Added statistics
2018-11-30 12:15:08 +01:00
iglocska
2d0259ce13
fix: [CS] coding standards script re-run
2018-11-23 14:11:33 +01:00
iglocska
5220dcec72
new: [API] Various enhancements and fixes to the APIs
...
- Added result count to restsearch API via the x-result-count header
- Added the includeProposals parameter to the attribute level restsearch
- Readability of events controller improved
- Fixed a bug blocking malware samples from being added using /events/add when the encrypt=1 flag was set for raw sample inclusion
2018-11-23 13:44:19 +01:00
iglocska
63940564e0
fix: [API templates] Clarification about the serversettings API
2018-11-19 22:04:00 +01:00
mokaddem
8befc07fb5
new: [restClient] Transform query to json, more descriptions and layout changes
...
- Added a lightweight query parser to construct the JSON body from the query builder
- Added more help text on API fields
- Added help hoover on API fields (when applicable)
- Added `optgroup` in template select
- Slight CSS modification on the overall page
- Changed behavior of template fetching (template existance is checked locally, do not wait before pulling the API info HTML)
2018-11-09 08:58:58 +01:00
mokaddem
c48afbccb1
chg: [rest client] re-ordered fields by alphabetical order
2018-11-07 11:03:25 +01:00
mokaddem
3c203e05d9
chg: [rest client] added some overwrite functions
2018-11-07 11:02:30 +01:00
mokaddem
7f5225b154
new: [rest client] added first draft of querybuilder widget
2018-11-06 16:54:17 +01:00
mokaddem
a39aa685f1
fix : #3774 [restResponse] added missing `includeEventTags` entry
2018-10-31 10:16:41 +01:00
Alexandre Dulaunoy
4998bb42ec
chg: [sighting restSearch] API documentation fixed (/get is now /restSearch)
2018-10-30 07:01:23 +01:00
Sami Mokaddem
84b96f0ef8
fix: [sighting/api] added missing sighting source parameter
2018-10-23 18:26:10 +02:00
Sami Mokaddem
5763a74b96
chg: [sighting/api] improved comments
2018-10-23 13:39:29 +02:00
Sami Mokaddem
d5be7e8ad9
chg: [RestResponse] bump
2018-10-23 13:30:32 +02:00
Sami Mokaddem
99e5f560a8
new: [sighting/api] trying to follow the new API architecture. JSON
...
export is broken but CSV is working. WIP...
2018-10-23 11:24:03 +02:00
Sami Mokaddem
731a4d5e2b
new: [Sightings/API] Added possiblity to get sightings based on a
...
timerange/source/...
2018-10-22 23:27:58 +02:00
iglocska
702d4360f6
Merge branch '2.4' of github.com:MISP/MISP into 2.4
2018-10-21 22:47:59 +02:00
iglocska
572b0d13a4
new: [API description] Describe how to run diagnostics on MISP via the API
2018-10-20 15:58:43 +02:00
Tom King
8925e88581
fix: Check if the format is xml or application/xml on __sendResponse
2018-10-19 09:54:51 +01:00
iglocska
7a01de5359
new: [API] Added a way to use the API to throw values at the warninglist for quick evaluations of the values
2018-10-16 17:57:14 +02:00
iglocska
b4f084f9fe
new: [API documentation] Added some missing API templates
2018-10-13 22:42:20 +02:00
iglocska
09ec9aecd6
new: [API] Added the log index/search to the API
...
- described in the templates / rest client page
2018-10-11 20:20:27 +02:00
iglocska
b011973997
new: [API] Added returnFormat descriptions in a programmatic way to the API info
2018-10-09 12:40:23 +02:00
iglocska
3fd1779694
new: [API] documentation added for the new APIs
2018-10-05 16:44:39 +02:00
iglocska
74916368b5
chg: [API] new restresponse library addition fixed (send file)
2018-10-01 14:48:00 +02:00
iglocska
ca46873664
new: [API] added sendFile function to rest response component
2018-09-30 22:26:19 +02:00
iglocska
0642c1aa84
new: [API] enable/disable warninglists by name substrings instead of IDs, fixes #3706
...
- {"name": ["alexa", "iana"], "enabled": 1}
2018-09-24 23:10:40 +02:00
iglocska
d6fd845df9
new: [API] Added API description for the warninglist toggleEnable API
2018-09-19 12:21:44 +02:00
iglocska
57c1712e44
fix: [API] Added rpz to restsearch API description
...
- also added text to events/restSearch
2018-09-15 22:02:47 +02:00
iglocska
e4d9766505
fix: [REST client] Correctly detect camelised parameters as single values instead of lists
2018-09-05 09:17:02 +02:00
iglocska
d437040b00
new: [API] Restresponse component function added to enumerate available APIs for the REST client
...
- also, added API descriptions for the restsearch functionalities
2018-09-05 07:43:00 +02:00
iglocska
c91f1a5412
new: [REST client] Resolve urls and show API description if applicable
2018-09-01 23:53:03 +02:00
iglocska
331ac48306
chg: [restResponse] Updated restResponse library to produce nicer exceptions
...
- more in-line with the standard exceptions
2018-08-06 10:47:58 +02:00
iglocska
a81894f14c
chg: [CS] Changed to PSR-2
...
- to make contributions easier, adopted PSR-2
- used php-cs-fixer to rework the style
- *sniff sniff* Goodbye tab indentation
2018-07-19 11:48:22 +02:00
Sami Mokaddem
61cab26e18
Merge remote-tracking branch 'upstream/2.4' into sharingGraph
2018-07-09 12:14:20 +00:00
iglocska
f48adaf2bc
fix: [API] Removed unused optional field from the organisation API descriptions.
2018-07-09 00:45:04 +02:00
Sami Mokaddem
75dd257941
chg: [eventGraph] renaming EventNetworkHistory into simply EventGraph
2018-07-06 13:17:59 +00:00
Sami Mokaddem
04caa5056a
new: [eventGraph] SharingGraph: added skeleton of Model/Controller for
...
saving and sharing the network among organisations (+ javascript
interaction functions)
2018-06-28 07:49:17 +00:00
iglocska
728c8bbb1d
fix: Fixed /servers/add via REST API not working, fixes #3202
...
- corrected list of parameters
- added sane defaults so that only the minimum list of fields is actually required
- fixed a bunch of stuff that was just plain broken with this API
2018-04-28 21:53:29 +02:00
iglocska
4022285e06
new: Added Feed management API
...
- add/edit/delete feeds via the API
- new APIs are RestResponseComponent aware
- GET on add/edit to receive usage information
2018-04-23 14:57:59 +02:00
iglocska
ed70624354
new: Added event/attribute add/edit to the restresponse describe functionality
2018-04-02 21:53:08 +02:00
iglocska
4945e8646d
new: Describe the new changes to the deleteAttributes API
2018-03-13 05:17:14 +01:00
iglocska
70f43d32d1
new: Added self-description of the deleteAttributes API to the api component
2018-03-13 04:56:58 +01:00
iglocska
7d09ab575c
new: RestResponse::describe() now uses generic URLs with optional url parameters instead of showing the currently accessed ID
2018-02-27 10:28:39 +01:00
iglocska
d82d52a4e2
fix: Added /tags/add to restresponse
2018-02-27 09:04:03 +01:00
iglocska
8b7ce009ef
new: Allow overriding the action names in the stringified restresponse messages
...
- for example: 'addOrg' => 'add Organisation to'
2018-02-02 08:44:38 +01:00
iglocska
f0f9f121d6
Merge branch 'feature/sg_api' into 2.4
2018-01-13 14:26:57 +01:00
iglocska
8d71c37510
new: Add API description to sightings/add, fixes #2806
2018-01-12 11:28:14 +01:00
iglocska
0245668d52
fix: Rework of the restresponse URL generator
...
- correctly handle multi-word controllers
2017-12-27 15:31:12 +01:00
iglocska
d181e0a34a
fix: Fixed CSV content type
2017-12-05 11:09:57 +01:00