Commit Graph

291 Commits (48b84a04fd79641648cdd3b8b4b9328a33d8cc81)

Author SHA1 Message Date
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 8a223f6ace fix: [ACL] ACL updated 2018-11-23 15:52:18 +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 a39aa685f1 fix: #3774 [restResponse] added missing `includeEventTags` entry 2018-10-31 10:16:41 +01:00
mokaddem 5c1522bc74 fix: [acl] bumped ACLComponent 2018-10-30 22:00:04 +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 d1fb94c332 fix: [ACL] bumped queryACL 2018-10-23 13:28:48 +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 e7ae566c40 fix: [ACL] Added exportSearch to the ACL 2018-10-04 23:07:44 +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 e61b7911b4 new: [blacklisting] pass parameters via named parameters to filter the index
- /eventBlacklists/index/event_uuid:[my_event_uuid]
2018-09-16 22:06:40 +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 8280994a03 fix: [ACL] Appease Travis (admin only function explicitly named) 2018-09-14 08:30:05 +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 17e16e34f1 new: [ACL] Added soft validation for available API enumeration 2018-09-05 07:42:20 +02:00
iglocska 630a1a0150 fix: [ACL] getApiInfo added to acl 2018-09-02 05:54:40 +02:00
iglocska 17e538be05 Merge branch '2.4' of github.com:MISP/MISP into 2.4 2018-09-01 23:53:39 +02:00
iglocska c91f1a5412 new: [REST client] Resolve urls and show API description if applicable 2018-09-01 23:53:03 +02:00
iglocska 40d7c216d8 fix: [ACL] exclude afterfilter from the api checks 2018-08-31 16:08:46 +02:00
iglocska 0694263e15 Merge branch '2.4' into feature/api_rework 2018-08-09 16:51:20 +02:00
iglocska c8fcb16881 new: [feature] Built in REST client added to test / interact with the API directly from MISP
- no more shitty chrome extensions that crash during trainings, rejoice!
2018-08-08 11:29:38 +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 692b410f92 chg: [eventGraph] refacto after comments from the Overmind 2018-07-10 08:43:38 +00: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 f836b5650e Merge remote-tracking branch 'upstream/2.4' into sharingGraph 2018-07-06 09:23:50 +00:00
Sami Mokaddem e1c9b21b8e chg: [ACL] bumped to reflect networkHistory controller 2018-07-06 09:12:26 +00:00
Sami Mokaddem 93ba5617ea chg: [eventGraph] Implemented saving/deleting feature 2018-07-05 11:57:28 +00:00
iglocska c3158b50ba new: [edit strategy API] To support a smoother integration with the Hive, new API that describes what the edit strategy is for an event
- GET on /events/getEditStrategy/[id]
  - where id can be either a local ID or a UUID

- returns a JSON dictionary with the following fields:
  - strategy: edit | extend (edit if it's an own event, extend otherwise)
  - extensions: list of dictionaries with existing extensions created by the user's org (containing the id, uuid, info fields)

- The algorithms implementing this should prioritise as such:

1. Check if user can edit the event (strategy == edit) - if yes, edit
2. If no, check if extensions exist - if yes, edit one of those
3. If no, create a new extension to the original event
2018-07-02 17:29:53 +02:00