CraftMyWebsite - API v1


GET

/v1/cms/latest

Return the latest CMW version

GET

/v1/cms/previous/:version

Return the previous CMW version based on your CMW version

  • version => string

PUT

/v1/cms/oneClickInstall

Return the latest CMW version for OneClickInstall

POST

/v1/cms/update

Update your website

  • target_version_id => int
  • user_id => ?int
  • website_key => ?string

GET

/v1/cms/versions

Return the latest CMW version

POST

/v1/cms/download/website


GET

/v1/market/resources/:id

Get resource by id

  • id => int

GET

/v1/market/resources/slug/:slug

Get resource by id

  • slug => string

GET

/v1/market/resources/author/:id

Get resource by author id

  • id => int

GET

/v1/market/resources

Get all resources

GET

/v1/market/resources/status/:status

Get resources filtered by status

  • status => int

PUT

/v1/market/resources/status/:resourceId/:status

Update resources status

  • id => int
  • status => int

PUT

/v1/market/resources/status/:resourceId/:versionNameEncoded/:status

Update resources version status

  • id => int
  • versionNameEncoded => string
  • status => int

GET

/v1/market/resources/names

Get all resources. Return only resource id and name.

GET

/v1/market/resources/tags

Get all resources. Return only resource id and name.

GET

/v1/market/resources/filtered/:type

Get filtered resources

  • type => int

GET

/v1/market/resources/filtered/:type/:status

Get filtered resources by status

  • type => int
  • status => int

GET

/v1/market/resources/updates/:id/:version

Get resource updates

  • id => int
  • version => string

PUT

/v1/market/resources/install/:id

Install resource

  • id => int

GET

/v1/market/resources/bundle/:id

Get a whole bundle by id

  • id => int

GET

/v1/market/resources/bundles

Get all bundles

PUT

/v1/market/resources/bundle/install/:id

Install bundle

  • id => int

GET

/v1/network/ip

Return the client ip address

GET

/v1/network/check/port/:ip/:port

Check if port is open

  • ip => string
  • port => int