mozilla / mig

Distributed & real time digital forensics at the speed of the cloud

Home Page:http://mig.mozilla.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify API responses

jvehent opened this issue · comments

The API currently uses collection+json as a response format. We never really benefited from this pseudo-standard and it's rather awkward to use. We should go back to a simpler json dump without much structure in API responses.

Hi,
I have some interest in Information Security and to learn more about this field i thought about helping a open source project like this.
I've already compiled the code and looked around, however i can't find out how the json should look like after this change and how much does the actual solution differs from a simple json.
Can you give me some clues?
Thank You

This will be a large-ish refactor, as the cljs library is used throughout mig-api.

Locations where cljs is used directly are:

  • client/client.go
  • mig-api/action_endpoints.go
  • mig-api/investigator_endpoints.go
  • mig-api/agent_endpoints.go
  • mig-api/api.go
  • mig-api/command_endpoints.go
  • mig-api/search.go
  • mig-api/manifest_endpoints.go
  • mig-loader/loader.go