To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratormutidomain support
In your .service.yml
list you domains in form hostname: url
To deploy statically on other domain and be able to send API requests
you should turn off Access-Control-Allow-Origin restriction
in config/application.rb (Rails 4)
config.action_dispatch.default_headers = {
'Access-Control-Allow-Origin' => '<YOUR STATIC SERVER>',
'Access-Control-Request-Method' => 'GET, PUT, POST, DELETE, OPTIONS'
}
- Scenarios
-
- json schema gets generated into html preview using "users/destroy"
-
- Given
- an empty directory named "html"
- And
-
a file named "lurker/LurkerApp.service.yml" with:
--- basePath: '' description: '' domains: '[Sandbox] Heroku': 'http://lurker-app.herokuapp.com' '[Real] razum2um.me': 'http://lurker.razum2um.me' name: LurkerApp extensions: {}
- And
-
a file named "lurker/api/v1/users/__id-DELETE.json.yml" with:
--- prefix: users management description: user deletion requestParameters: properties: id: description: '' type: integer example: 1 required: [] responseCodes: - status: 200 successful: true description: '' responseParameters: properties: {} extensions: method: DELETE path_info: "/api/v1/users/1" path_params: action: destroy controller: api/v1/users id: 1 suffix: ''
- When
-
I successfully run
bin/lurker convert
- Then
-
the output should contain these lines:
Converting lurker to html using lurker create index.html create api/v1/users/__id-DELETE.html
- When
- I go to "/lurker/api/v1/users/__id-DELETE.html"
- When
- I select "[Sandbox] Heroku" hostname
- Then
-
I should see:
curl -X DELETE "http://lurker-app.herokuapp.com/api/v1/users/1"
Last published over 7 years ago by razum2um.