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

Featured

PreviousStoreNextDapps

Last updated 2 years ago

  • GETGet Featured Sections
  • POSTDelete a featured Section
  • PUTAdd a featured Section

Get Featured Sections

get

Fetch featured sections of registry OR if you provide storeKey in query it will fetch featured sections from store.

Query parameters
storeKeystringOptional

Unique Id of a particular store. provide only if you want to fetch feature section form a particular store.

Responses
200
Successful operation
application/json
400
Invalid status value
get
GET /store/featured HTTP/1.1
Host: api-a.meroku.store
Accept: */*
[
  {
    "title": "Our Curated list",
    "description": "This is a curated list of dApps that we think you will like. Our curators have used these dApps and found them worthy of your attention.",
    "key": "curated-list-1",
    "dappIds": [
      "example.store.dapp"
    ]
  }
]

Delete a featured Section

post

This is to delete a featured section to dapp

Body
namestringRequired

The name of the developer (from GitHub)

Example: r488it
emailstringRequired

The email of the developer (from Github)

Example: test@example.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 which will be deleted.

Example: curated-list
storeKeystringOptional

Unique Id of a particular store. provide only if you want to delete 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 HTTP/1.1
Host: api-a.meroku.store
Content-Type: application/json
Accept: */*
Content-Length: 179

{
  "name": "r488it",
  "email": "test@example.com",
  "accessToken": "ghu_cSB18uvyUKmNaC0adq3aAwIQTRY9U53RgMI",
  "githubID": "r4881t",
  "sectionKey": "curated-list",
  "storeKey": "example.dappstore"
}
text

Add a featured Section

put

This is to add a featured section to dapp

Body
namestringRequired

The name of the developer (from GitHub)

Example: r488it
emailstringRequired

The email of the developer (from Github)

Example: john@example.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
sectionTitlestringRequired

Title of the Featured Section. This will be displayed on the dApp Store. It should be simple and clear.

Example: Our Curated list
descriptionstringRequired

Description of the Featured Section. This will be displayed on the dApp Store. It should be simple and clear.

Example: This is a curated list of dApps that we think you will like. Our curators have used these dApps and found them worthy of your attention.
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 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
put
PUT /store/featured HTTP/1.1
Host: api-a.meroku.store
Content-Type: application/json
Accept: */*
Content-Length: 371

{
  "name": "r488it",
  "email": "john@example.com",
  "accessToken": "ghu_cSB18uvyUKmNaC0adq3aAwIQTRY9U53RgMI",
  "githubID": "r4881t",
  "sectionTitle": "Our Curated list",
  "description": "This is a curated list of dApps that we think you will like. Our curators have used these dApps and found them worthy of your attention.",
  "dappIds": [
    "example.store.dapp"
  ],
  "storeKey": "example.dappstore"
}
text