websIDE
  • webside
    • Overview
  • API
    • General
      • Dialect
      • Version
      • Colors
      • Logo
      • Stats
      • Themes
      • Icons
      • Save Image
    • Changes
      • Retrieve changes
      • Apply a change
    • Changesets
      • Convert chunks to JSON changes
      • Convert JSON changes to chunks
    • Code
      • Autocompletions
        • Retrieve autocompletions
      • Categories
        • Retrieve categories
        • Retrieve usual categories
      • Classes
        • Retrieve classes
        • Retrieve a class
        • Retrieve categories
        • Retrieve variables
        • Retrieve class variables
        • Retrieve instance variables
        • Retrieve selectors
        • Retrieve methods
        • Retrieve method
        • Retrieve method history
        • Retrieve subclasses
        • Retrieve superclasses
        • Retrieve used categories
      • Methods
        • Retrieve methods
      • Packages
        • Retrieve packages
        • Retrieve a package
        • Retrieve package classes
        • Retrieve package methods
      • Search
      • Selectors
        • Find selector in source code
      • Templates
        • Retrieve class template
        • Retrieve method template
    • Debuggers
      • Retrieve active debuggers
      • Create a debugger
      • Delete debugger
      • Retrieve debugger frames
      • Retrieve debugger frame
      • Retrieve frame bindings
      • Restart debugger
      • Resume debugger
      • Step into debugger
      • Step over debugger
      • Step through debugger
      • Terminate debugger
    • Evaluations
      • Retrieve evaluations
      • Evaluate an expression
      • Cancel evaluation
      • Retrieve evaluation
      • Pause evaluation
      • Resume evaluation
    • Extensions
      • Retrieve extensions
      • Changes extensions
      • Export extensions
      • Search extensions
    • Commands
      • Retrieve command definitions
      • Invoke commands
    • Objects
      • Retrieve pinned objects
      • Pin object
      • Retrieve pinned object
      • Retrieve pinned object slots
        • Custom views
      • Unpin an object
      • Unpin all objects
    • Processes
      • Retrieve active processes
    • Profilers
      • Retrieve active profilers
      • Create a new profiler
      • Delete a profiler
      • Retrieve a profiler
      • Retrieve profiler ranking results
      • Retrieve profiler tree results
    • Testing
      • Run tests
      • Retrieve test run status
      • Retrieve test run results
    • Workspaces
      • Retrieve active workspaces
      • Create a new workspace
      • Delete a workspace
      • Retrieve a workspace
      • Update a workspace
      • Retrieve workspace bindings
Powered by GitBook
On this page
  1. API
  2. Code
  3. Classes

Retrieve method history

Retrieve historical changes on a given method.

URL: /classes/{name}/methods/{selector}/history

Method: GET

Success Responses

Code : 200 OK

Content: [change] where change can be one of the following:

{
	"type": "AddMethod",
	"label": "string",
	"package": "string",
	"timestamp": "string",
	"author": "string",
	"sourceCode": "string",
	"changesSomething": "boolean",
	"canBeApplied": "boolean",
	"className": "string",
	"selector": "string",
	"category": "string"
}

Note that type is always AddMethod as these are the changes that can be retrieved from a given method.

Example:: retrieve history of methodHistory in WebsideAPI.

[
    {
        "type": "AddMethod",
        "label": "WebsideAPI ≫ methodHistory",
        "package": "Webside Base",
        "timestamp": "2024-01-17T15:04:03.613-03:00",
        "author": "G Amaral",
        "sourceCode": "methodHistory\r\t| class selector method history |\r\tclass := self requestedClass.\r\tclass ifNil: [^self notFound].\r\tselector := self requestedSelector.\r\tselector ifNil: [^self notFound].\r\t(class includesSelector: selector) ifFalse: [^self notFound].\r\tmethod := class >> selector.\r\thistory := method project changes historyOf: method.\r\t^history collect: #asWebsideJson",
        "changesSomething": false,
        "canBeApplied": true,
        "className": "WebsideAPI",
        "selector": "methodHistory",
        "category": "code endpoints"
    },
    {
        "type": "AddMethod",
        "label": "WebsideAPI ≫ methodHistory",
        "package": "Webside Base",
        "timestamp": "2024-01-17T15:03:58.259-03:00",
        "author": "guille",
        "sourceCode": "methodHistory\r\t| class selector method history |\r\tclass := self requestedClass.\r\tclass ifNil: [^self notFound].\r\tselector := self requestedSelector.\r\tselector ifNil: [^self notFound].\r\tmethod := class >> selector.\r\thistory := method project changes historyOf: method.\r\t^history collect: #asWebsideJson",
        "changesSomething": true,
        "canBeApplied": true,
        "className": "WebsideAPI",
        "selector": "methodHistory",
        "category": "code endpoints"
    }
]
PreviousRetrieve methodNextRetrieve subclasses

Last updated 11 months ago