Giter Site home page Giter Site logo

myrapi's People

Contributors

fuuzetsu avatar proger avatar qoelet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

aakhmerov

myrapi's Issues

DNS delete doesn't work

No matter what we do, we either get a real 403 (wrong credentials), a 403 with pretty message (right credentials but posting to the domain rather than to subdomain) or a 200 but with an error message in the body. Strangely, update which takes the same identifying information (domain name, id, modified date) works fine.

Sent e-mail to support. This ticket is to track delete.

smart-create

(Follow up from #4)

I think this will be a good interface for smart-create:

myrapi smart-create --subdomain abc.example.com --type CNAME --ttl 300 \
    --values "abc1.example.com abc2.example.com abc3.example.com"

For each value, the command should check if a matching record exists (based on subdomain and value) and call create or update accordingly.

After everything is done, the command should check the number of records for that subdomain versus the number of values given, and emits a warning if they don't match.

Provide a mechanism to search for a DNS name

This is needed to query the values associated with a certain name. The list command can be abused for this information (e.g list repeatedly until all pages are fetched, then filter from the result). It would be nicer, though, if the full list is provided via an option, or a get command is implemented.

How to run?

Hi all,

I am not a haskell developer, but I would like to give api wrapper a run to at least see list of parameters. And I got stuck during build process.

Trying under Ubuntu, here is what I did:

cabal update
cabal install

I am always getting same error message

src/Myracloud/Types.hs:21:18:
Could not find module ‘Servant.Common.Text’
Perhaps you meant
Servant.Common.Req (from servant-client-0.8@serva_JQifRGzBlJd8gexEP3Zop8)
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
myrapi-0.1.0.0 failed during the building phase. The exception was:
ExitFailure 1

any hint?

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

Thanks in agvance

Improve error message for duplicated subdomains

I tried to create an A record for a subdomain that already has a CNAME record:

"ERROR: Failed with \"HTTP PUT request returned invalid json: The key \\\"path\\\" was not found\""

I guess there is a message in the result of the API call. Let's just print that?

Add support for DNS update

As createing a subdomain that already exists doesn't do "the right thing" (update the existing DNS record - see also #2), update is needed to simulate a "correct" create command, e.g. search (#3) for abc.zalora.com, if that doesn't exist, create it, otherwise update it to the supplied values.

Hack servant-client to DELETE properly

Just a self reminder:

  • Make it accept 200 and other status codes as valid
  • Allow for parsing of return body

Should be fairly simple at least in first case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.