This is the current draft of the RCS service contract. It outlines the expected endpoints and payloads but it is far from finalized.
Success Code: 200
Request Body: Empty
Response Body: JSON Object
The response will have a JSON configuration fragment to be merged into the RAMP configuration.
Error conditions: - invalid language code: 400 Bad Request, response body empty - smallkey not found: 404 Not Found, response body empty
Success Code: 200
Request Body: Empty
Response Body: JSON Array
The response will be an array of JSON objects, each object will be a JSON configuration fragment to be merged into the RAMP config.
Error conditions:
Success Code: 201
Request Body: JSON Object
Response Body: Empty
Error Conditions:
The body of the request should conform to: > {"version":"1.0.0","payload_type":("feature","wms"),"en":(payload),"fr":(payload) }
The feature payload should conform to:
> {"service_url":(URL to ESRI REST Service),"service_name":"Layer Name","display_field":"Layer Attribute"}
The feature payload should conform to:
{"service_url":(URL to WMS Service),"layer":"Layer Identifier","legend_format":"MIME type","feature_info_type":(?)}
Success Code: 204
Request Body: Empty
Response Body: Empty
Error Conditions: