API Docs
DocsGithubSupportMeroku Protocol
  • About
  • API reference
    • Dapp
      • DeleteApp
      • Upload
      • Build
      • Rate
      • SearchById
      • Categories
    • Store
      • Featured
        • Dapps
      • DeleteStore
      • BannedDapps
      • Dapp
      • Title
        • /
    • App
      • Installed
      • InstallUrl
    • O
      • View
      • Download
    • Domainverification
      • GetVerificationId
      • Verify
    • Api
      • V1
        • Dapp
          • Search
          • Autocomplete
  • Specification
  • SDK
    • NodeJS
  • ../Meroku Docs
Powered by GitBook
On this page
  1. API reference
  2. Store
  3. Featured

Dapps

PreviousFeaturedNextDeleteStore

Last updated 2 years ago

Toggle dApps in featured section

post

This is to toggle the dApps for a featured section. If these dapps are not listed in the featured section, they will be added. If they are already added, they will be removed.

If the section by the key does not exist, will return a HTTP 400 error.

Body
namestringRequired

The name of the developer (from GitHub)

Example: r488it
emailstringRequired

The email of the developer (from Github)

Example: example@email.com
accessTokenstringRequired

The JWT access token of the developer (from Github) for user to server API Calls

Example: ghu_cSB18uvyUKmNaC0adq3aAwIQTRY9U53RgMI
githubIDstringRequired

The GitHub ID of the developer

Example: r4881t
sectionKeystringRequired

Key of the featured section where the dapp will be added.

Example: curated-list
dappIdsstring[]Required

List of dApp IDs that are part of this featured section. The dApp IDs should be the same as the ones in the dApp Store's dApps list. All the dApps in this list should be published.

Example: example.store.dapp
storeKeystringOptional

Unique Id of a particular store. provide only if you want to add dapps to feature section in the particular store.

Example: example.dappstore
Responses
200
successful operation
application/json
Responsestring
400
Invalid ID supplied
404
DApp not found
405
Validation exception
post
POST /store/featured/dapps HTTP/1.1
Host: api-a.meroku.store
Content-Type: application/json
Accept: */*
Content-Length: 213

{
  "name": "r488it",
  "email": "example@email.com",
  "accessToken": "ghu_cSB18uvyUKmNaC0adq3aAwIQTRY9U53RgMI",
  "githubID": "r4881t",
  "sectionKey": "curated-list",
  "dappIds": [
    "example.store.dapp"
  ],
  "storeKey": "example.dappstore"
}
text