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

Store

PreviousCategoriesNextFeatured

Last updated 2 years ago

  • GETGet Store
  • POSTAdd store
  • PUTUpdate store

Get Store

get

Get the particular store

Query parameters
keystringRequired

unique id of a store.

Responses
200
Successful operation
application/json
get
GET /store HTTP/1.1
Host: api-a.meroku.store
Accept: */*
200

Successful operation

{
  "githubId": "reeshi",
  "featuredSections": {
    "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"
    ]
  },
  "key": "example.dappstore",
  "bannedDAppIds": "example.store.dapp"
}

Add store

post

Adding a new store

Body
namestringRequired

The name of the developer (from GitHub)

Example: r488it
emailstringRequired

The email of the developer (from Github)

Example: name@email.org
accessTokenstringRequired

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

Example: ghu_clhzH0E07dPHKLCxnIC3okyITV0BVk18XwkE
githubIDstringRequired

The GitHub ID of the developer

Example: r488it
orgstringOptional

The GitHub organization to fork the repo to.

Responses
200
Successful operation
application/json
Responsestring
400
Invalid ID supplied
404
DApp not found
405
Validation exception
post
POST /store HTTP/1.1
Host: api-a.meroku.store
Content-Type: application/json
Accept: */*
Content-Length: 482

{
  "name": "r488it",
  "email": "name@email.org",
  "accessToken": "ghu_clhzH0E07dPHKLCxnIC3okyITV0BVk18XwkE",
  "githubID": "r488it",
  "store": {
    "githubId": "reeshi",
    "featuredSections": {
      "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"
      ]
    },
    "key": "example.dappstore",
    "bannedDAppIds": "example.store.dapp"
  },
  "org": "text"
}
text

Update store

put

For updating the existing store

Body
namestringRequired

The name of the developer (from GitHub)

Example: r488it
emailstringRequired

The email of the developer (from Github)

Example: name@email.org
accessTokenstringRequired

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

Example: ghu_clhzH0E07dPHKLCxnIC3okyITV0BVk18XwkE
githubIDstringRequired

The GitHub ID of the developer

Example: r488it
orgstringOptional

The GitHub organization to fork the repo to.

Responses
200
successful operation
application/json
Responsestring
400
Invalid ID supplied
404
DApp not found
405
Validation exception
put
PUT /store HTTP/1.1
Host: api-a.meroku.store
Content-Type: application/json
Accept: */*
Content-Length: 482

{
  "name": "r488it",
  "email": "name@email.org",
  "accessToken": "ghu_clhzH0E07dPHKLCxnIC3okyITV0BVk18XwkE",
  "githubID": "r488it",
  "store": {
    "githubId": "reeshi",
    "featuredSections": {
      "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"
      ]
    },
    "key": "example.dappstore",
    "bannedDAppIds": "example.store.dapp"
  },
  "org": "text"
}
text